CVE-2022-24785: Debian Linux

High severity, CVSS 7.5. EPSS: 13.9% chance of exploitation in the next 30 days.

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.

Affected products

  • Debian Debian Linux: version 10.0 only
  • Fedoraproject Fedora: version 35 only; version 36 only
  • Momentjs Moment: from 1.0.1, before 2.29.2 (fixed in 2.29.2)
  • Netapp Active Iq: affected versions not specified
  • Tenable Tenable.sc: before 5.21.0 (fixed in 5.21.0)

Published 2022-04-04. Last modified 2026-06-17.