Skip to main content
HIGH

CVE-2022-24785

CVSS v3

7.5

HIGH

EPSS Score

13.9 %

exploit probability, as of 2026-10-18

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for moment.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • momentnpmall versions · fixed in 2.29.2
  • Moment.jsNuGetall versions · fixed in 2.29.2

Vendor advisories

  • CVE-2022-24785 Red Hat Product Security743 products fixed · 92 known affected

    Moment.js: Path traversal in moment.locale

    kiali as a component of OpenShift Service Mesh 2.0 · kiali.src as a component of OpenShift Service Mesh 2.0 · servicemesh-grafana as a component of OpenShift Service Mesh 2.0

  • RHSA-2025:4437 Red Hat Product Security54 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.13 security update

  • RHSA-2025:4226 Red Hat Product Security34 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.1.10 on RHEL 7 security update

  • RHSA-2023:3954 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Fuse 7.12 release and security update

  • RHSA-2023:3642 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat Ceph Storage 6.1 Container security and bug fix update

  • RHSA-2023:1043 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat Single Sign-On 7.6.2 security update on RHEL 7

18 more advisories

Full record on NVD

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.

Technical details

Published
2022-04-04

Frequently asked questions

What is CVE-2022-24785?

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.

Is CVE-2022-24785 actively exploited?

Active exploitation of CVE-2022-24785 has not been confirmed. Its EPSS score was 13.9% on 2026-10-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-24785?

CVE-2022-24785 has a CVSS v3 base score of 7.5 (HIGH severity).

Running moment? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month