Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦
📦 npm.NET NuGet
Not in CISA KEV
HIGH severity

CVE-2022-24785 — moment

HIGHFix: moment/moment@4211bfc

CVE-2022-24785 is a high-severity (CVSS 7.5) Path Traversal vulnerability in moment. EPSS puts its 30-day exploitation probability at 13.9% (97th percentile). A fix is available for moment — see the affected versions and patch details below.

Path Traversal in Moment.js

Also known asGHSA-8hfj-j24r-96c4
Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
None indexed
Exploitation data as of Oct 22, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2022-24785.

EPSS Exploitation Probability

via FIRST.org ↗
13.9%probability of exploitation in next 30 days
Moderate Risk0.00%
Lower risk than most CVEs97th percentile — riskier than 97% of all scored CVEsHighest risk
0.00%5.84%11.7%17.5%2.3%13.9%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2022-24785 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 394,803 CVEs with a current EPSS score, this one falls in the 10–50% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

2 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

71Kother npm packages depend on this — each one inherits the vulnerability until it's patched upstream
momentnpm
22.6Mdownloads / week

Description

Impact

This vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg fr is directly used to switch moment locale.

Patches

This problem is patched in 2.29.2, and the patch can be applied to all affected versions (from 1.0.1 up until 2.29.1, inclusive).

Workarounds

Sanitize user-provided locale name before passing it to moment.js.

References

Are there any links users can visit to find out more?

For more information

If you have any questions or comments about this advisory:

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
📦npmmomentall versions2.29.2npm install moment@2.29.2
.NETNuGetMoment.jsall versions2.29.2dotnet add package Moment.js --version 2.29.2

Affected Products

5 products · 7 configurations
OS
debian linuxdebian
1 version
10.0
OS
fedorafedoraproject
2 versions
3536
Application
momentmomentjs
≥ 1.0.1 && < 2.29.2
range
Application
active iqnetapp
all
Application
tenable.sctenable
< 5.21.0
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for moment, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update moment to 2.29.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-24785 is resolved across your whole dependency graph.

  3. Workarounds

    Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

In Quay 3.10 and above, no version of affected momentjs is present.

Workaround published by Red Hat
Sanitize the user-provided locale name before passing it to Moment.js.
Source: Red Hat security advisory for CVE-2022-24785 (CC BY 4.0)
ProductFixed inAdvisory
OpenShift Service Mesh 2.0servicemesh-prometheus-0:2.14.0-18.el8.1RHSA-2022:6272
OpenShift Service Mesh 2.1openshift-service-mesh/kiali-rhel8:1.36.10-2RHSA-2022:5006
OpenShift Service Mesh 2.1servicemesh-prometheus-0:2.23.0-9.el8RHSA-2022:6277
Red Hat Ceph Storage 5.3ceph-2:16.2.10-94.el8cpRHSA-2023:0076
Red Hat Ceph Storage 6.1rhceph/rhceph-6-dashboard-rhel9:6-75RHSA-2023:3642
Red Hat Fuse 7.11.1Moment.jsRHSA-2022:8652
Red Hat Fuse 7.12see advisoryRHSA-2023:3954
Red Hat JBoss Enterprise Application Platformorg.jboss.hal/hal-console:3.3.12.Final-redhat-00001RHSA-2022:4922

Frequently Asked Questions

### Impact This vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg `fr` is directly used to switch moment locale. ### Patches This problem is patched in 2.29.2, and the patch can be applied to all affected versions (from 1.0.1 up until 2.29.1, inclusive). ### Workarounds Sanitize user-provided locale name before passing it to moment.js. ### References _Are there any links users can visit to find out more?_ ### For more information If you have any questions or comments about this advisory: * Open an issue in [moment repo](https://github.com/
O3 Security · Impact-Aware SCA

Is CVE-2022-24785 in your dependencies?

Find it across npm, NuGet, including transitive dependencies.

CVE-2022-24785: moment — Fixed in 2.29.2