Regular Expression Denial of Service in underscore.string
Priority LOW 38CWE-400Published · Updated
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-400.
Summary
Versions of `underscore.string` prior to *3.3.5* are vulnerable to Regular Expression Denial of Service (ReDoS). The function `unescapeHTML` is vulnerable to ReDoS due to an overly-broad regex. The slowdown is approximately 2s for 50,000 characters but grows exponentially with larger inputs. ## Recommendation Upgrade to version 3.3.5 or higher.
Why it matters now
Fix Fixed underscore.string (npm): 3.3.5
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | underscore.string (npm) | before 3.3.5 | 3.3.5 | Patch available | GHSA-v2p6-4mp7-3r9v |
- underscore.string (npm) Vendor— Affected before 3.3.5 Fixed in 3.3.5 Patch available GHSA-v2p6-4mp7-3r9v
Remediation
- Fix · GHSA-v2p6-4mp7-3r9v underscore.string (npm) Fixed in 3.3.5 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-v2p6-4mp7-3r9v
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences