Security readout for executives and security teams
Plain-English summary
Moment.js could load a locale using an unsafe path when server-side applications pass user-controlled locale names directly to Moment. In affected versions, that can let an attacker influence file resolution outside intended locale files. The CVSS impact is high for integrity, but the provided sources do not show active exploitation.
Executive priority
Treat this as a high-priority dependency remediation for internet-facing or multi-tenant Node.js services that accept locale preferences. It is less urgent where Moment is absent, patched, or never receives user-controlled locale input.
Technical view
CVE-2022-24785 is CWE-22/CWE-27 path traversal in moment npm versions >=1.0.1 and <2.29.2. The risky pattern is server-side locale switching with unsanitized user input. Moment 2.29.2 patches the issue, and the advisory says the patch can be applied to affected versions.
Likely exposure
Exposure is most likely in Node.js server applications using moment before 2.29.2 and accepting locale values from HTTP parameters, headers, profiles, or tenant settings. The provided description especially calls out npm server users; it does not identify client-only browser use as the primary affected scenario.
Exploitation context
The bundle marks KEV false and provides no cited evidence of active exploitation. Practical risk depends on whether an application exposes user-controlled locale selection into Moment on the server.
Researcher notes
Focus validation on data flow, not only package version. The vulnerable condition needs affected moment versions plus unsanitized user-controlled locale selection. The sources provide patch and workaround direction but no exploit-in-the-wild evidence.
Mitigation direction
- Upgrade moment to version 2.29.2 or later.
- Backport the referenced patch if immediate upgrade is not feasible.
- Sanitize user-provided locale names before passing them to Moment.js.
- Review vendor advisories for packaged or embedded moment dependencies.
Validation and detection
- Inventory direct and transitive moment versions in server-side JavaScript applications.
- Search code paths where request-controlled locale values reach Moment.js.
- Confirm production packages resolve moment to 2.29.2 or later.
- Check appliance and Linux distribution advisories for embedded node-moment packages.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CWE-22: File access and web shell behavior lookup
File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Open ATT&CK lookupCWE-27: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Open ATT&CK lookupFile access behavior lookup
The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
Open ATT&CK lookupCVE-2022-24785 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- High
- CVSS
- 7.5 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N3.93.6Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
7.5HighVector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Source materials
- CVE List V5 sourceCVE List V5
- https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4CVE reference
- https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5CVE reference
- https://www.tenable.com/security/tns-2022-09CVE reference
- https://security.netapp.com/advisory/ntap-20220513-0006/CVE reference
- FEDORA-2022-85aa8e5706CVE reference · vendor-advisory
- FEDORA-2022-35b698150cCVE reference · vendor-advisory
- [debian-lts-announce] 20230130 [SECURITY] [DLA 3295-1] node-moment security updateCVE reference · mailing-list
- https://security.netapp.com/advisory/ntap-20241108-0002/CVE reference
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Path Traversal: 'dir/../../filename'
Path Traversal: 'dir/../../filename' represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
