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

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

On Hacker News

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.