Vulnerability
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.
21 advisories report this vulnerability, across 6 ecosystems.
Advisories
- CGA-42vc-qppf-fw65
- CGA-6rgj-5pwx-7q4f
- CGA-r76h-g92c-x48h
- CGA-wh97-vqhc-w9cc
-
DEBIAN-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…
-
DLA-3295-1
node-moment - security update
-
GHSA-8hfj-j24r-96c4
Path Traversal: 'dir/../../filename' in moment.locale
-
RHSA-2022:4918
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.5 security update on RHEL 7
-
RHSA-2022:4919
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.5 security update on RHEL 8
-
RHSA-2022:6272
Red Hat Security Advisory: Red Hat OpenShift Service Mesh 2.0.11 security update
-
RHSA-2022:6277
Red Hat Security Advisory: Red Hat OpenShift Service Mesh 2.1.5 security update
-
RHSA-2023:0076
Red Hat Security Advisory: Red Hat Ceph Storage 5.3 security update and Bug Fix
-
RHSA-2023:1043
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.2 security update on RHEL 7
-
RHSA-2023:1044
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.2 security update on RHEL 8
-
RHSA-2023:1045
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.2 security update on RHEL 9
-
RHSA-2025:4226
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.1.10 on RHEL 7 security update
-
RHSA-2025:4437
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.13 security update
-
RHVEX-CVE-2022-24785
Moment.js: Path traversal in moment.locale
-
UBUNTU-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…
-
USN-5559-1
node-moment vulnerabilities
-
USN-9117-1
node-moment vulnerability
References
- https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5
- https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4
- https://lists.debian.org/debian-lts-announce/2023/01/msg00035.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5/
- https://security.netapp.com/advisory/ntap-20220513-0006/
- https://www.tenable.com/security/tns-2022-09
- https://security.netapp.com/advisory/ntap-20241108-0002/