ADVISORIES

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
    CVE-2022-24785 Chainguard Updated 5 November 2026
  • CGA-6rgj-5pwx-7q4f
    CVE-2022-24785 Chainguard Updated 5 November 2026
  • CGA-r76h-g92c-x48h
    CVE-2022-24785 Chainguard Updated 5 November 2026
  • CGA-wh97-vqhc-w9cc
    CVE-2022-24785 Chainguard Updated 5 November 2026
  • 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…

    CVE-2022-24785 Debian Updated 20 November 2026
  • DLA-3295-1

    node-moment - security update

    CVE-2022-24785CVE-2022-31129 Debian Updated 20 November 2026
  • GHSA-8hfj-j24r-96c4

    Path Traversal: 'dir/../../filename' in moment.locale

    High CVE-2022-24785 NuGetnpm Updated 10 September 2026
  • RHSA-2022:4918

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

    CVE-2020-36518CVE-2021-37136CVE-2021-37137CVE-2021-42392 Red Hat Updated 23 November 2026
  • RHSA-2022:4919

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.5 security update on RHEL 8

    CVE-2020-36518CVE-2021-37136CVE-2021-37137CVE-2021-42392 Red Hat Updated 23 November 2026
  • RHSA-2022:6272

    Red Hat Security Advisory: Red Hat OpenShift Service Mesh 2.0.11 security update

    CVE-2022-24785CVE-2022-31129 Red Hat Updated 23 November 2026
  • RHSA-2022:6277

    Red Hat Security Advisory: Red Hat OpenShift Service Mesh 2.1.5 security update

    CVE-2022-24675CVE-2022-24785CVE-2022-24921CVE-2022-28327 Red Hat Updated 23 November 2026
  • RHSA-2023:0076

    Red Hat Security Advisory: Red Hat Ceph Storage 5.3 security update and Bug Fix

    CVE-2022-24785 Red Hat Updated 23 November 2026
  • RHSA-2023:1043

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

    Known exploited CVE-2018-14040CVE-2018-14042CVE-2019-11358CVE-2020-11022 Red Hat Updated 23 November 2026
  • RHSA-2023:1044

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

    Known exploited CVE-2018-14040CVE-2018-14042CVE-2019-11358CVE-2020-11022 Red Hat Updated 23 November 2026
  • RHSA-2023:1045

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

    Known exploited CVE-2018-14040CVE-2018-14042CVE-2019-11358CVE-2020-11022 Red Hat Updated 23 November 2026
  • RHSA-2025:4226

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

    CVE-2021-3690CVE-2021-37714CVE-2021-3859CVE-2021-40690 Red Hat Updated 23 November 2026
  • RHSA-2025:4437

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

    CVE-2022-0084CVE-2022-23913CVE-2022-24785CVE-2022-25647 Red Hat Updated 23 November 2026
  • RHVEX-CVE-2022-24785

    Moment.js: Path traversal in moment.locale

    Moderate CVE-2022-24785 Red Hat Updated 23 November 2026
  • 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…

    CVE-2022-24785 Ubuntu Updated 18 November 2026
  • USN-5559-1

    node-moment vulnerabilities

    CVE-2022-24785CVE-2022-31129 Ubuntu Updated 27 April 2026
  • USN-9117-1

    node-moment vulnerability

    CVE-2022-24785 Ubuntu Updated 18 November 2026

References