
CVE catalog
CVE-2022-24785
node-moment: CVE-2022-24785
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 13.84% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-moment | sid | 2.31.0+ds1-1 | fixed |
| Debian | node-moment | forky | 2.31.0+ds1-1 | fixed |
| Debian | node-moment | trixie | 2.29.4+ds-1 | fixed |
| Debian | node-moment | bookworm | 2.29.4+ds-1 | fixed |
| Ubuntu | node-moment | 18.04 | 2.18.1+ds-1 | vulnerable |
| Ubuntu | node-moment | 18.04 | 2.19.1+ds-1 | vulnerable |
| Ubuntu | node-moment | 18.04 | 2.19.2+ds-1 | vulnerable |
| Ubuntu | node-moment | 18.04 | 2.19.3+ds-1 | vulnerable |
| Ubuntu | node-moment | 18.04 | 2.19.4+ds-1 | vulnerable |
| Ubuntu | node-moment | 18.04 | 2.20.1+ds-1 | vulnerable |
| Ubuntu | node-moment | 18.04 | 2.20.1+ds-1ubuntu0.1 | fixed |
| Ubuntu | node-moment | 20.04 | 2.24.0+ds-1 | vulnerable |
| Ubuntu | node-moment | 20.04 | 2.24.0+ds-2 | vulnerable |
| Ubuntu | node-moment | 20.04 | 2.24.0+ds-2ubuntu0.1 | fixed |
| Ubuntu | node-moment | 22.04 | 2.29.1+ds-2 | vulnerable |
| Ubuntu | node-moment | 22.04 | 2.29.1+ds-3 | vulnerable |
| Ubuntu | node-moment | 22.04 | 2.29.1+ds-3ubuntu0.2 | fixed |
| Ubuntu | nikola | 16.04 | 7.6.0-3 | vulnerable |
| Ubuntu | nikola | 16.04 | 7.6.4-1 | vulnerable |
| Ubuntu | node-moment | pro | 2.10.6+dfsg-1 | vulnerable |
| Ubuntu | node-moment | pro | 2.11.0+ds-1 | vulnerable |
| Ubuntu | node-moment | pro | 2.11.0+ds-1ubuntu0.1~esm1 | vulnerable |
| Ubuntu | node-moment | 18.04 | 2.18.1+ds-1 | vulnerable |
| Ubuntu | node-moment | 18.04 | 2.19.1+ds-1 | vulnerable |
| Ubuntu | node-moment | 18.04 | 2.19.2+ds-1 | vulnerable |
| Ubuntu | node-moment | 18.04 | 2.19.3+ds-1 | vulnerable |
| Ubuntu | node-moment | 18.04 | 2.19.4+ds-1 | vulnerable |
| Ubuntu | node-moment | 18.04 | 2.20.1+ds-1 | vulnerable |
| Ubuntu | node-moment | 18.04 | 2.20.1+ds-1ubuntu0.1 | fixed |
| Ubuntu | node-moment | 20.04 | 2.24.0+ds-1 | vulnerable |
| Ubuntu | node-moment | 20.04 | 2.24.0+ds-2 | vulnerable |
| Ubuntu | node-moment | 20.04 | 2.24.0+ds-2ubuntu0.1 | fixed |
| Ubuntu | node-moment | 22.04 | 2.29.1+ds-2 | vulnerable |
| Ubuntu | node-moment | 22.04 | 2.29.1+ds-3 | vulnerable |
| Ubuntu | node-moment | 22.04 | 2.29.1+ds-3ubuntu0.2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-moment | source | sid | 2.29.2+ds-1 | not yet assigned | Not reported | [1009327] |
| Debian | node-moment | source | forky | 2.29.2+ds-1 | not yet assigned | Not reported | [1009327] |
| Debian | node-moment | source | trixie | 2.29.2+ds-1 | not yet assigned | Not reported | [1009327] |
| Debian | node-moment | source | bookworm | 2.29.2+ds-1 | not yet assigned | Not reported | [1009327] |
| Ubuntu | node-moment | deb | 18.04 | 2.20.1+ds-1ubuntu0.1 | Not reported | USN-5559-1 | Not reported |
| Ubuntu | node-moment | deb | 20.04 | 2.24.0+ds-2ubuntu0.1 | Not reported | USN-5559-1 | Not reported |
| Ubuntu | node-moment | deb | 22.04 | 2.29.1+ds-3ubuntu0.2 | Not reported | USN-5559-1 | Not reported |
| Ubuntu | node-moment | deb | 18.04 | 2.20.1+ds-1ubuntu0.1 | Not reported | UBUNTU-CVE-2022-24785 | Not reported |
| Ubuntu | node-moment | deb | 20.04 | 2.24.0+ds-2ubuntu0.1 | Not reported | UBUNTU-CVE-2022-24785 | Not reported |
| Ubuntu | node-moment | deb | 22.04 | 2.29.1+ds-3ubuntu0.2 | Not reported | UBUNTU-CVE-2022-24785 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libjs-moment]Fixed
Source package: [node-moment]
Details (2)
2.29.4+ds-1· all · bookwormFixed · Fixed:
2.29.2+ds-1dsa · node-moment · debian · bookworm
2.29.4+ds-1· all · bookwormFixed · Fixed:
2.29.2+ds-1dsa · node-moment · debian · bookworm
- [node-moment]Fixed
Details (2)
2.29.4+ds-1· all · bookwormFixed · Fixed:
2.29.2+ds-1dsa · node-moment · debian · bookworm
2.29.4+ds-1· all · bookwormFixed · Fixed:
2.29.2+ds-1dsa · node-moment · debian · bookworm
Observed:
References
- [https://osv.dev/vulnerability/DLA-3295-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-24785]
- [https://osv.dev/vulnerability/USN-5559-1]
- [https://security-tracker.debian.org/tracker/CVE-2022-24785]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-24785.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-0026.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]