Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-31129

published high CVSS 3.1 · 7.5

Inefficient Regular Expression Complexity in moment

Published
06 Jul 2022, 00:00:00 UTC
Updated
03 Nov 2025, 21:46:17 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
moment — moment >= 2.18.0, < 2.29.4 Affected Not stated GitHub_M
Debian buster node-moment Advisory build 2.24.0+ds-1+deb10u1 DLA-3295-1
Ubuntu bionic libjs-moment Advisory build 2.20.1+ds-1ubuntu0.1 USN-5559-1
Ubuntu bionic node-moment Advisory build 2.20.1+ds-1ubuntu0.1 USN-5559-1
Ubuntu focal libjs-moment Advisory build 2.24.0+ds-2ubuntu0.1 USN-5559-1
Ubuntu focal node-moment Advisory build 2.24.0+ds-2ubuntu0.1 USN-5559-1
Ubuntu jammy libjs-moment Advisory build 2.29.1+ds-3ubuntu0.2 USN-5559-1
Ubuntu jammy node-moment Advisory build 2.29.1+ds-3ubuntu0.2 USN-5559-1
Show 1 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu jammy postfixadmin Advisory build 3.3.10-2ubuntu0.1~esm1 USN-6550-1

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

5

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.5 / 10
Severity
high
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
moment moment >= 2.18.0, < 2.29.4 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-400 CWE-400: Uncontrolled Resource Consumption (GitHub_M · cna)

References

11

Provider assertions

3

GitHub_M · cna

Inefficient Regular Expression Complexity in moment

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
d5370fab0857050f997171ca773a8b31a1a7b85cb745fe83df94feda2d4ed789
Ingested
23 Sep 2026, 08:00:25 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected