HIGH · 7.5

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....

Vulnerability 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.

CVSS Score

7.5

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE

Affected Products

VendorProductVersions
MomentjsMoment>= 1.0.1, < 2.29.2
TenableTenable.Sc< 5.21.0
NetappActive Iq-
FedoraprojectFedora35
DebianDebian Linux10.0

Related Weaknesses (CWE)

References

FAQ

What is CVE-2022-24785?

CVE-2022-24785 is a vulnerability with a CVSS score of 7.5 (HIGH). 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....

How severe is CVE-2022-24785?

CVE-2022-24785 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.

Is there a patch for CVE-2022-24785?

Check the references section above for vendor advisories and patch information. Affected products include: Momentjs Moment, Tenable Tenable.Sc, Netapp Active Iq, Fedoraproject Fedora, Debian Debian Linux.