What’s Vulnerable › Vulnerabilities
CVE-2021-29060: Regular Expression Denial of Service (ReDOS)
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-06-21 · updated 2026-06-17
- Weakness: CWE-770
Description
A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Color-String version 1.5.5 and below which occurs when the application is provided and checks a crafted invalid HWB string.
Affected products
- Color-String Project Color-String: before 1.5.5 — fixed in 1.5.5
- Npm Color-String: before 1.5.5 — fixed in 1.5.5
How to fix
Upgrade to a fixed version: Color-String Project Color-String 1.5.5; Npm Color-String 1.5.5. Check the vendor advisory for mitigations.
References
- https://github.com/Qix-/color-string/commit/0789e21284c33d89ebc4ab4ca6f759b9375ac9d3
- https://github.com/yetingli/PoCs/blob/main/CVE-2021-29060/Color-String.md
- https://github.com/yetingli/SaveResults/blob/main/js/color-string.js
- https://www.npmjs.com/package/color-string
- https://github.com/Qix-/color-string/commit/0789e21284c33d89ebc4ab4ca6f759b9375ac9d3
- https://github.com/yetingli/PoCs/blob/main/CVE-2021-29060/Color-String.md
- https://github.com/yetingli/SaveResults/blob/main/js/color-string.js
- https://www.npmjs.com/package/color-string
Get alerted when CVE-2021-29060 or the next vulnerability affects your stack