Description
In the npm package color-string, there is a ReDos (Regular Expression Denial of Service) vulnerability regarding an exponential time complexity for linearly increasing input lengths for hwb() color strings.
Recommendation
Update the color-string package to the latest compatible version. Followings are version details:
- Affected version(s): < 1.5.5
- Patched version(s): 1.5.5
References
Related Issues
- html-parse-stringify and html-parse-stringify2 vulnerable to Regular expression denial of service (ReDoS) - CVE-2021-23346
- html-parse-stringify and html-parse-stringify2 vulnerable to Regular expression denial of service (ReDoS) - html-parse-stringify - CVE-2021-23346
- Regular Expression Denial of Service (REDoS) in Marked - CVE-2021-21306
- Regular Expression Denial of Service (ReDoS) in Prism - CVE-2021-32723
You might also like:
- Tags:
- npm
- color-string
Anything's wrong? Let us know Last updated on February 01, 2023


