npm package
moment 2.29.2 vulnerabilities, and the version that fixes all of them
moment 2.29.2 has 2 known vulnerabilities (1 rated high or critical); 2.31.0 fixes all of them.
npm (opens in a new tab) describes it as “Parse, validate, manipulate, and display dates”
- Known vulnerabilities
- 2
- 1 rated high or critical
- Released
- Apr 3, 2022
- Latest is 2.31.0
- Downloads last week
- 47.4K
- Under 1% of moment downloads
- Licence
- MIT
- Dependencies
- None
- Resolved by deps.dev
What to upgrade to
2.31.0 is the closest release with no known vulnerabilities.
2.31.0Upgrade to this
Fixes all 2 known vulnerabilities and the newest 2.x release and the latest release. Released Sep 15, 2026.
No known vulnerabilities
2.31.0 came out on Sep 15, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates
Hand the fix to your coding agent
One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.
Findings
- CriticalVulnerability
2 known vulnerabilities in moment 2.29.2
EPSS: top 8%1 rated high or critical. Most serious: CVE-2022-31129, Moment.js vulnerable to Inefficient Regular Expression Complexity. Upgrading to 2.31.0 fixes all of them.
- LowOutdated
moment 2.29.2 is a minor version behind
Latest release is 2.31.0.
Every advisory for moment 2.29.2
Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.
CriticalCVE-2022-31129 on OSV.dev (opens in a new tab)GHSA-wc69-rhjr-hc9gEPSS: top 8%
Moment.js vulnerable to Inefficient Regular Expression Complexity
Fixed in 2.29.4. Published Jul 6, 2022.
WarningCVE-2026-17495 on OSV.dev (opens in a new tab)GHSA-4p3w-j4w9-5jqwEPSS: top 73%
moment vulnerable to Path Traversal via crafted non-string locale name
Fixed in 2.31.0. Published Sep 29, 2026.
Who is still on a vulnerable moment
74% of last week’s 40.8M moment downloads went to versions with known vulnerabilities.
From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.
Is moment the only one?
Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.
How this page is checked
StackPrism asks OSV.dev which advisories affect exactly moment 2.29.2, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.
Last checked against npm, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.