THREATPORT/VULNERABILITY/CVE-2022-31129
HIGH SEVERITY

CVE-2022-31129

Moment vulnerability

CVSS
7.5
EPSS
4.9%
EPSS pct
91th
Exploited
No known
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.
Affected vendor
Momentjs
Affected product
Moment
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness type (CWE)
  • CWE-400 — Uncontrolled Resource Consumption
  • CWE-1333 — Inefficient Regular Expression Complexity
Published
2022-07-06

Risk analysis

Based on its CVSS vector, this vulnerability is exploitable over the network, low attack complexity, requiring no privileges, no user interaction. Successful exploitation leads to high impact to availability.

Its EPSS score of 4.9% reflects a lower probability of exploitation activity in the wild over the next 30 days, placing it above 91% of all scored CVEs.

Check your external exposure to CVE-2022-31129

  • Confirm whether Momentjs Moment is running on any internet-facing host or subdomain.
  • Match discovered service fingerprints against the version affected by CVE-2022-31129.
  • Prioritise remediation if the asset is public, business-critical, or near authentication/payment flows.

How ThreatPort helps with CVE-2022-31129

ThreatPort's external attack surface scanner checks your internet-facing assets — agentlessly, from the outside in — for the exposed services and versions that CVE-2022-31129 affects, then prioritises the finding by real risk using CISA KEV and FIRST.org EPSS.

Run a free external exposure scan

Are you exposed to CVE-2022-31129?

Run an instant, non-intrusive external scan to check your attack surface for CVE-2022-31129.

Start free scan

No credit card. Agentless.