CVE-2022-24785: Debian Linux
High severity, CVSS 7.5. EPSS: 2.7% probability of exploitation activity 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.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Momentjs Moment, from 1.0.1, before 2.29.2: fixed in 2.29.2
- Tenable Tenable.sc, before 5.21.0: fixed in 5.21.0
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)
Affected packages
Published 2022-04-04. Last modified 2026-06-17.