npmWorst: High6 advisories
moment: known vulnerabilities
moment has 6 reviewed security advisories in the GitHub Advisory Database — 3 high, 3 moderate. The most recent was published 2026-09-15. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the moment versions running across your servers, containers and images, and ranks what to patch first.
How to fix moment
Upgrade moment to a release at or above the fixed version shown for each advisory below. For npm:
npm install moment@2.31.0 (or run npm audit fix)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (6)
moment vulnerable to Path Traversal via crafted non-string locale name
Moderate 5.9 CWE-27
— Affected: from 2.29.2 up to 2.31.0. Fixed in 2.31.0. Published 2026-09-15. GHSA-4p3w-j4w9-5jqw · CVE-2026-17495
Moment.js vulnerable to Inefficient Regular Expression Complexity
High 7.5 CWE-1333 CWE-400
— Affected: from 2.18.0 up to 2.29.4. Fixed in 2.29.4. Published 2022-07-06. GHSA-wc69-rhjr-hc9g · CVE-2022-31129
Path Traversal: 'dir/../../filename' in moment.locale
High 7.5 CWE-22 CWE-27
— Affected: before 2.29.2. Fixed in 2.29.2. Published 2022-04-04. GHSA-8hfj-j24r-96c4 · CVE-2022-24785
Moderate severity vulnerability that affects moment
Moderate
— Affected: before 2.11.2. Fixed in 2.11.2. Published 2018-07-31. GHSA-hxf5-mg84-pj4m
Regular Expression Denial of Service in moment
High 7.5 CWE-400
— Affected: before 2.19.3. Fixed in 2.19.3. Published 2018-03-04. GHSA-446m-mv8f-q348 · CVE-2017-18214
Regular Expression Denial of Service in moment
Moderate 6.5 CWE-400
— Affected: before 2.11.2. Fixed in 2.11.2. Published 2017-01-23. GHSA-87vv-r9j6-g5qv · CVE-2016-4055
Find moment across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.