CVE-2022-24785
node-moment - security update
7.5
HIGH
CVSS 3.1
EPSS 2.0%
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.
How to fix CVE-2022-24785
To remediate CVE-2022-24785, upgrade the affected package to a fixed version below.
- —upgrade to 2.29.1+ds-2+deb11u1 or later
- —upgrade to 2.24.0+ds-1+deb10u1 or later
- —upgrade to 2.29.2 or later
- —upgrade to 2.29.2 or later
Is CVE-2022-24785 being exploited?
Low — EPSS is 2.0%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- from 0, < 2.29.1+ds-2+deb11u1
- from 0, < 2.24.0+ds-1+deb10u1
- from 0, < 2.29.2
- from 0, < 2.29.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |