Security readout for executives and security teams
Plain-English summary
Moment.js can be slowed dramatically when it parses very long, specially shaped date strings. Systems that pass user-controlled text directly into Moment may let an unauthenticated attacker consume server resources and degrade availability. The issue is fixed in Moment 2.29.4.
Executive priority
Treat as a high-priority availability issue for internet-facing services that parse user-submitted dates. Remediation is straightforward when direct dependencies can be upgraded, but embedded or packaged copies require vendor tracking.
Technical view
CVE-2022-31129 is a CWE-400 resource-consumption flaw in Moment versions 2.18.0 through before 2.29.4. The default string-to-date path can try RFC2822 parsing with quadratic complexity on specific long inputs, creating a ReDoS-style availability risk. CVSS is 7.5.
Likely exposure
Exposure is most likely in JavaScript applications, APIs, or server-side rendering paths that use affected Moment versions and parse user-supplied date strings without length limits. Bundled downstream packages may also expose the vulnerable library.
Exploitation context
The source bundle does not show CISA KEV listing or confirmed active exploitation. The issue is remotely triggerable without authentication in vulnerable applications, but only where attacker-controlled strings reach Moment parsing without practical input limits.
Researcher notes
Focus validation on reachability, not just dependency presence. The vulnerable behavior requires long attacker-controlled strings reaching Moment's string parsing path. Avoid assuming product exposure solely from a bundled library without proving a user-controlled parsing path.
Mitigation direction
- Upgrade Moment to 2.29.4 or later.
- Apply downstream vendor security updates where Moment is packaged.
- Limit accepted date input length before calling Moment.
- Prefer strict, expected date formats for user input.
- Monitor vendor advisories for products embedding Moment.
Validation and detection
- Inventory application and transitive dependencies for Moment versions.
- Check package lockfiles and deployed artifacts for versions below 2.29.4.
- Trace user-controlled date fields into Moment parsing calls.
- Confirm input validation rejects unusually long date strings.
- Review downstream OS or appliance advisories if Moment is packaged there.
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-400: 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 lookupCVE-2022-31129 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:N/A:H
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:N/A:H3.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:N/A:H
Source materials
- CVE List V5 sourceCVE List V5
- https://github.com/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9gCVE reference
- https://github.com/moment/moment/pull/6015#issuecomment-1152961973CVE reference
- https://github.com/moment/moment/commit/9a3b5894f3d5d602948ac8a02e4ee528a49ca3a3CVE reference
- https://huntr.dev/bounties/f0952b67-f2ff-44a9-a9cd-99e0a87cb633/CVE reference
- FEDORA-2022-85aa8e5706CVE reference · vendor-advisory
- FEDORA-2022-35b698150cCVE reference · vendor-advisory
- FEDORA-2022-b9ef7c3c3cCVE reference · vendor-advisory
- FEDORA-2022-798fd95813CVE reference · vendor-advisory
- https://security.netapp.com/advisory/ntap-20221014-0003/CVE reference
- [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.
Uncontrolled Resource Consumption
Uncontrolled Resource Consumption represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
