color-string@1.4.0 vulnerabilities

Parser and generator for CSS color strings

Direct Vulnerabilities

Known vulnerabilities in the color-string package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Regular Expression Denial of Service (ReDoS)

color-string is a Parser and generator for CSS color strings

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the hwb regular expression in the cs.get.hwb function in index.js. The affected regular expression exhibits quadratic worst-case time complexity.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade color-string to version 1.5.5 or higher.

<1.5.5