CVE-2022-24785 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 23, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-27 | Path Traversal: 'dir/../../filename' | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| momentjs moment | >= 1.0.1, < 2.29.2 |
CPE
Remediation
| |
| tenable tenable.sc | < 5.21.0 |
CPE
Remediation
| |
| netapp active iq | All versions |
CPE
Remediation
| |
| fedoraproject fedora | 35 36 |
CPE
Remediation
| |
| debian debian linux | 10.0 |
CPE
Remediation
| |
Change History
13 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| Feb 16, 2023 | Modified Analysis | [email protected] |
| Jan 31, 2023 | CVE Modified | [email protected] |
| Jul 30, 2022 | Modified Analysis | [email protected] |
| Jul 23, 2022 | CVE Modified | [email protected] |
| May 13, 2022 | CVE Modified | [email protected] |
| Apr 20, 2022 | CVE Modified | [email protected] |
| Apr 12, 2022 | Initial Analysis | [email protected] |