Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2022-31129 Details

Description

moment is a JavaScript date library for parsing, validating, manipulating, and formatting dates. Affected versions of moment were found to use an inefficient parsing algorithm. Specifically using string-to-date parsing in moment (more specifically rfc2822 parsing, which is tried by default) has quadratic (N^2) complexity on specific inputs. Users may notice a noticeable slowdown is observed with inputs above 10k characters. Users who pass user-provided strings without sanity length checks to moment constructor are vulnerable to (Re)DoS attacks. The problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. Users are advised to upgrade. Users unable to upgrade should consider limiting date lengths accepted from user input.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
https://github.com/moment/moment/commit/9a3b5894f3d5d602948ac8a02e4ee528a49ca3a3 CVEPatchThird Party Advisory
https://github.com/moment/moment/pull/6015#issuecomment-1152961973 CVEExploitIssue TrackingPatchThird Party Advisory
https://github.com/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9g CVEIssue TrackingThird Party Advisory
https://huntr.dev/bounties/f0952b67-f2ff-44a9-a9cd-99e0a87cb633/ CVEExploitIssue TrackingPatchThird Party Advisory
https://lists.debian.org/debian-lts-announce/2023/01/msg00035.html CVEMailing ListThird Party Advisory

see all 21 references

Weakness Enumeration

CWE-IDCWE NameSource
CWE-1333Inefficient Regular Expression Complexity[email protected]
CWE-400Uncontrolled Resource Consumption[email protected]

Affected Products

ProductVersions
momentjs moment
>= 2.18.0, < 2.29.4

CPE

  • cpe:2.3:a:momentjs:moment:*:*:*:*:*:node.js:*:*
  • cpe:2.3:a:momentjs:moment:*:*:*:*:*:nuget:*:*

Remediation

  • No remediation found in references.
fedoraproject fedora
35
36
37

CPE

  • cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
debian debian linux
10.0

CPE

  • cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

16 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2022-31129
NVD Published Date:
Jul 6, 2022
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2022-31129 Details - Not Deferred