CVE-2016-4055: Regular Expression Denial of Service in moment
6.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.87086%
CWE
Published
10/24/2017
Updated
2/3/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
moment | npm | < 2.11.2 | 2.11.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The CVE explicitly states the vulnerability is triggered through moment.duration()
with crafted input. The proof of concept demonstrates ReDoS by passing a long string of digits, indicating the duration parsing regex is the attack vector. While exact pre-patch code isn't available, historical context shows duration parsing regex improvements were made in the patched version (2.11.2). The function's role in input parsing and the CVE's specificity give high confidence.