color-string@0.3.0 vulnerabilities

Parser and generator for CSS color strings

  • latest version

    2.0.1

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    4 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    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