7.5

CVE-2022-24785: Path Traversal in Moment.js

Modified
AliasesRHSA-2023:0076UBUNTU-CVE-2022-24785DEBIAN-CVE-2022-24785
Published 04-04-2022Last modified 03-11-2025

Vulnerability summary

CVE-2022-24785 is a high (CVSS 7.5) vulnerability in debian debian_linux. EPSS estimates a 13.84% chance of exploitation in the next 30 days, higher than 96.5% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 14% (FIRST, 03-11-2026)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
13.84%
0%100%
Medium · -0.06 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 13 · Related 2

Timeline

  1. 04-04-2022
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last modifiedVulnerability information updated.

Description

Moment.js is a JavaScript date library for parsing, validating, manipulating, and formatting dates. A path traversal vulnerability impacts npm (server) users of Moment.js between versions 1.0.1 and 2.29.1, especially if a user-provided locale string is directly used to switch moment locale. This problem is patched in 2.29.2, and the patch can be applied to all affected versions. As a workaround, sanitize the user-provided locale name before passing it to Moment.js.

CVSS metrics

9 scores · 8 sources · 2 versions

EPSS trend

Probability

13.84%

Chance of exploitation in the next 30 days

Percentile

97%

Versus all other CVEs

30-day change

Decrease -0.06 pp

From 13.90% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Redhat70 products
  • ceph< 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp
  • ceph-base< 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp
  • ceph-base-debuginfo< 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp
  • ceph-common< 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp
  • ceph-common-debuginfo< 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp
Chainguard2 products
  • wazuh-dashboard-security-plugin< 4.14.6-r5
  • wazuh-dashboard-security-plugin-fips< 4.14.6-r2
Debian2 products
Ubuntu2 products
  • nikolaAll versions (No fix recorded)
  • node-momentAll versions (No fix recorded) | < 2.20.1+ds-1ubuntu0.1 | < 2.24.0+ds-2ubuntu0.1 | < 2.29.1+ds-3ubuntu0.2
Fedoraproject1 product
Moment1 product
Momentjs1 product
Netapp1 product
Npm1 product
  • moment< 2.29.2
NuGet1 product
  • Moment.js< 2.29.2
Tenable1 product

11 vendors · 83 products

References

126 links
Show all 100 references

Showing 100 of 126.