HighGHSA-446m-mv8f-q348CVE-2017-18214
Regular Expression Denial of Service in moment
Published 5 Mar 2018 · Updated 8 Nov 2023
Is your project on an affected moment?
Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
momentnpm
- Affected
- <2.19.3
- Fixed in
- 2.19.3
Update to the fixed version for your release line, for example:
npm install moment@2.19.3Details
Affected versions of moment are vulnerable to a low severity regular expression denial of service when parsing dates as strings.
Recommendation
Update to version 2.19.3 or later.
Is GHSA-446m-mv8f-q348 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected moment, and gives you the command that fixes it.
More advisories for moment
- MediumCVE-2026-17495moment vulnerable to Path Traversal via crafted non-string locale name · 29 Sept 2026
- HighCVE-2022-31129Moment.js vulnerable to Inefficient Regular Expression Complexity · 6 Jul 2022
- HighCVE-2022-24785Path Traversal: 'dir/../../filename' in moment.locale · 4 Apr 2022
- MediumCVE-2016-4055Regular Expression Denial of Service in moment · 24 Oct 2017
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2017-18214
- Linkgithub.com/moment/moment/issues/4163
- Linkgithub.com/moment/moment/pull/4326
- Linkgithub.com/moment/moment/commit/69ed9d44957fa6ab12b73d2ae29d286a857b80eb
- Advisorygithub.com/advisories/GHSA-446m-mv8f-q348
- Packagegithub.com/moment/moment
- Linkwww.npmjs.com/advisories/532
- Linkwww.tenable.com/security/tns-2019-02
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.