npm package
moment vulnerabilities by version
The latest release, 2.31.0 (Sep 15, 2026), has no known vulnerabilities. 74% of last week’s 40.8M downloads went to versions with known vulnerabilities. OSV.dev lists 5 advisories for moment; the newest was published on Sep 29, 2026.
npm (opens in a new tab) describes it as “Parse, validate, manipulate, and display dates”
- Latest release
- 2.31.0
- Sep 15, 2026, no known vulnerabilities
- Downloads last week
- 40.8M
- All versions, from npm
- Advisories on OSV.dev
- 5
- Newest Sep 29, 2026
- Licence
- MIT
Most-downloaded versions last week
From npm’s per-version download counts for the last 7 days, each checked against OSV.dev. Open a version for its advisories and what to upgrade to.
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.
Release lines
The newest release of each major line, from the registry. moment doesn’t publish support dates we can check.
Newest advisories
The 5 most recently published, with the versions each one affects.
WarningCVE-2026-17495 on OSV.dev (opens in a new tab)GHSA-4p3w-j4w9-5jqw
moment vulnerable to Path Traversal via crafted non-string locale name
Affects >= 2.29.2, < 2.31.0. Published Sep 29, 2026.
CriticalCVE-2022-31129 on OSV.dev (opens in a new tab)GHSA-wc69-rhjr-hc9g
Moment.js vulnerable to Inefficient Regular Expression Complexity
Affects >= 2.18.0, < 2.29.4. Published Jul 6, 2022.
CriticalCVE-2022-24785 on OSV.dev (opens in a new tab)GHSA-8hfj-j24r-96c4
Path Traversal: 'dir/../../filename' in moment.locale
Affects < 2.29.2. Published Apr 4, 2022.
CriticalCVE-2017-18214 on OSV.dev (opens in a new tab)GHSA-446m-mv8f-q348
Regular Expression Denial of Service in moment
Affects < 2.19.3. Published Mar 5, 2018.
WarningCVE-2016-4055 on OSV.dev (opens in a new tab)GHSA-87vv-r9j6-g5qv
Regular Expression Denial of Service in moment
Affects < 2.11.2. Published Oct 24, 2017.
Which moment do you have?
Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task for your coding agent. Free, no sign-up.
How this page is checked
StackPrism reads every OSV.dev advisory for moment, merges duplicates filed under several ids, and asks OSV.dev which ones affect each version listed. Releases and their dates come from deps.dev, downloads from npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.