moment Known Vulnerabilities & Fixes
moment has 2 known security vulnerabilities in npm (Node.js). Upgrade to version 2.29.4 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.
Low Immediate Risk
No actively exploited vulnerabilities detected. Monitor and update in your next maintenance window.
Recommended safe version: 2.29.4
Upgrading to 2.29.4 or later resolves all 2 known vulnerabilities in moment. Run: npm install moment@2.29.4
Is moment in your project?
Check if you're affected and upgrade to 2.29.4 to stay secure.
Security Summary
- 2 affected version ranges have been identified across these 2 advisories.
- 100% of known issues have a published fixed version.
- Remediation: npm update moment
Vulnerabilities
2 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Apr 4, 2022, most recently Jul 6, 2022 (93 days apart).
| CVE / GHSA | Severity | Affected | Fixed In |
|---|---|---|---|
| CVE-2022-24785 Path Traversal: 'dir/../../filename' in moment.locale | HIGH | All versions | 2.29.2 |
| CVE-2022-31129 Moment.js vulnerable to Inefficient Regular Expression Complexity | HIGH | All versions | 2.29.4 |
About This Data
Vulnerability data for moment is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.
CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Related npm (Node.js) Packages
Other packages in this ecosystem, ranked by shared vulnerabilities where available.
Check Your Dependencies
Scan your project to check if you're using a vulnerable version of moment.