CVE-2022-24785

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductMoment
PublishedApr 4, 2022
First seenApr 4, 2022

How to fix

Affected products

ProductAffected versionsFixed in
momentjs moment1.0.1 ≤ v < 2.29.22.29.2
tenable tenable.scv < 5.21.05.21.0
netapp active_iqNo range specified—
fedoraproject fedora35, 36—
debian debian_linux10.0—
momentnpmv < 2.29.22.29.2
Moment.jsNuGetv < 2.29.22.29.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.