CVE-2016-4055 · mitre
CVE-2016-4055
The duration function in the moment package before 2.11.2 for Node.js allows remote attackers to cause a denial of service (CPU consumption) via a long string, aka a "regular expression Denial of Service (ReDoS)."
Published 2017-01-23, last changed 2026-06-17. Weakness: CWE-400.
How to fix
Upgrade to a fixed version: moment 2.11.2 (npm). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in moment/moment by dd9cff0104. The fix changed source code, but no function could be located in it. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2017-01-23 | Published |
| 2017-10-24 | Package advisory GHSA-87vv-r9j6-g5qv |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 10.2% |
| 2026-12-01 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-87vv-r9j6-g5qv | moment (npm) | 2.11.2 |
Also known as: GHSA-87vv-r9j6-g5qv
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-17495 | 2026-09-15 | 5.9 | moment vulnerable to Path Traversal via crafted non-string locale name |
| CVE-2022-31129 | 2022-07-06 | 7.5 | Inefficient Regular Expression Complexity in moment |
| CVE-2022-24785 | 2022-04-04 | 7.5 | Path Traversal in Moment.js |
| CVE-2017-18214 | 2018-03-04 | 7.5 | same package: moment (npm) |
| CVE-2026-106806 | 2026-11-02 | 7.5 | same weakness (CWE-400) from the same CNA (mitre) |
| CVE-2026-106807 | 2026-11-02 | 5.3 | same weakness (CWE-400) from the same CNA (mitre) |
| CVE-2026-106805 | 2026-11-02 | 7.5 | same weakness (CWE-400) from the same CNA (mitre) |
| CVE-2026-117184 | 2026-10-30 | 7.5 | same weakness (CWE-400) from the same CNA (mitre) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-4055, or call /api/v1/vulnerabilities/CVE-2016-4055. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.