Vulnerability 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 Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Momentjs | Moment | >= 1.0.1, < 2.29.2 |
| Tenable | Tenable.Sc | < 5.21.0 |
| Netapp | Active Iq | - |
| Fedoraproject | Fedora | 35 |
| Debian | Debian Linux | 10.0 |
Related Weaknesses (CWE)
References
- https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5Patch
- https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2023/01/msg00035.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://security.netapp.com/advisory/ntap-20220513-0006/Third Party Advisory
- https://www.tenable.com/security/tns-2022-09PatchRelease NotesThird Party Advisory
- https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5Patch
- https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2023/01/msg00035.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://security.netapp.com/advisory/ntap-20220513-0006/Third Party Advisory
- https://security.netapp.com/advisory/ntap-20241108-0002/
- https://www.tenable.com/security/tns-2022-09PatchRelease NotesThird Party Advisory
FAQ
What is CVE-2022-24785?
CVE-2022-24785 is a vulnerability with a CVSS score of 7.5 (HIGH). 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....
How severe is CVE-2022-24785?
CVE-2022-24785 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-24785?
Check the references section above for vendor advisories and patch information. Affected products include: Momentjs Moment, Tenable Tenable.Sc, Netapp Active Iq, Fedoraproject Fedora, Debian Debian Linux.