Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2022-31129
momentjs moment

Score7.5 High
CVSS 3.1
Exploit probability (EPSS)4.7%
within the next 30 days
CategoryDenial of service
Published6 July 2022
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, without logging in, without any user interaction.

A successful attack has high impact: crashing the system or making it unavailable.

Weakness type: Uncontrolled resource consumption.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official 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.

CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-400 – Uncontrolled resource consumption, CWE-1333 – Inefficient regular expression (ReDoS)

Affected products

VendorProductVersions
momentjsmoment>=2.18.0 <2.29.4
fedoraprojectfedora35
fedoraprojectfedora36
fedoraprojectfedora37
debiandebian linux10.0

Sources

Latest in the same category

  • CVE-2026-140231 High 7.1
    node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, decompression within the ratio limit is buffered in memory without backpressure, and zero-size entries queue without bound. A service that…
    Denial of service · 1 December 2026
  • CVE-2026-140230 High 7.1
    node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, extraction of a crafted archive with a shallow entry path and deeply nested entry.linkpath bypasses the maxDepth guard and drives quadratic…
    Denial of service · 1 December 2026
  • CVE-2026-140229 High 7.1
    node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, when node-tar processes compressed attacker-controlled input, node zlib can materialize the inflated output before maxDecompressionRatio is…
    Denial of service · 1 December 2026
  • CVE-2026-140119 High 7.1
    node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, on non-Windows hosts, asynchronous Unpack extraction of an attacker-controlled archive with a deeply nested linkpath reaches the quadratic…
    Denial of service · 1 December 2026
  • CVE-2026-140118 High 7.1
    node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, on POSIX hosts, asynchronous extraction of an attacker-controlled archive with a deeply nested linkpath causes PathReservations.getDirs() to…
    Denial of service · 1 December 2026
  • CVE-2026-123780 High 7.5
    Issue summary: A peer that can make an OpenSSL TLS or DTLS server process repeated ClientHellos on the same connection, causes the server to append every message to a per-connection buffer without any limit. This…
    Denial of service · 1 December 2026