Install
moment
Parse, validate, manipulate, and display dates
2.31.0Latest, 15 Sep 2026
221MDownloads, last month
0Advisories on the latest
5Advisories, all versions
MITLicence
48KStars
6.1/10OpenSSF Scorecard
Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Moderate | moment vulnerable to Path Traversal via crafted non-string locale name CVE-2026-17495 | Fixed in 2.31.0 | 29 Sep 2026 |
| High | Moment.js vulnerable to Inefficient Regular Expression Complexity CVE-2022-31129 | Fixed in 2.29.4 | 6 Jul 2022 |
| High | Path Traversal: 'dir/../../filename' in moment.locale CVE-2022-24785 | Fixed in 2.29.2 | 4 Apr 2022 |
| High | Regular Expression Denial of Service in moment CVE-2017-18214 | Fixed in 2.19.3 | 5 Mar 2018 |
| Moderate | Regular Expression Denial of Service in moment CVE-2016-4055 | Fixed in 2.11.2 | 24 Oct 2017 |
In the news
- Delimitation Showdown: Why PM Modi's Lunch With Women MPs Comes At A Crucial Political Moment ndtv.com, 30 Nov 2026
- Car crash moment Sky News presenter laughs in Labour MP’s face express.co.uk, 30 Nov 2026
- Core Web Vitals Basics (LCP, INP, CLS): What Moment of the Page Does Each Metric Measure? dev.to, 29 Nov 2026
- Moment 'thieves steal delivery van while driver drops off packages' as police launch probe dailymail.com, 29 Nov 2026
- Meghan Markle channels her laid-back Montecito style for cosy festive moment geo.tv, 28 Nov 2026
On Hacker News
- We now consider Moment.js to be a legacy project in maintenance mode 1129 points, 257 comments, 15 Sep 2020
- That awkward moment when Apple mocked good hardware and poor people 1078 points, 567 comments, 23 Mar 2016
- Ask HN: Comment here about whatever you're passionate about at the moment 982 points, 753 comments, 6 Nov 2022
- Large language models are having their Stable Diffusion moment 811 points, 369 comments, 11 Mar 2023
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.