CVE-2019-1010266: Regular Expression Denial of Service (ReDoS) in lodash
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.42047%
CWE
Published
7/19/2019
Updated
1/9/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
lodash | npm | < 4.17.11 | 4.17.11 |
lodash-es | npm | < 4.17.11 | 4.17.11 |
lodash-amd | npm | < 4.17.11 | 4.17.11 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability was explicitly linked to the _.words implementation in the lodash changelog entry for 4.17.11. The commit 5c08f18 shows the regex pattern in reHasUnicodeWord was modified from /[A-Z]{2,}[a-z]/ to /[A-Z]{2}[a-z]/ to prevent excessive backtracking. The added performance test in test.js specifically validates _.words' handling of 50k-character strings, confirming this was the attack vector. The CVE description's reference to 'date handler' appears to be an error, as all technical evidence points to the words function and unicode word detection logic.