color-string@0.3.0 vulnerabilities

Parser and generator for CSS color strings

  • latest version

    2.1.4

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    28 days ago

  • licenses detected

  • Direct Vulnerabilities

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

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable 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