GHSA-v2p6-4mp7-3r9v
medium
Regular Expression Denial of Service in underscore.string
- Severity
- medium rating by GitHub
- Published
- Last changed
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| underscore.string (npm) | before 3.3.5 | GitHub Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-v2p6-4mp7-3r9v changed 2020-08-31 | CC-BY-4.0 |