# color-string (npm)

Parser and generator for CSS color strings

- Latest: 2.1.4 (2025-11-15)
- Licence: MIT
- Downloads: 330591201 last month
- Advisories on the latest version: 0

- CVE-2025-59142 HIGH: color-string@2.1.1 contains malware after npm account takeover Fixed in 2.1.2.
- CVE-2025-59142 : Malicious code in color-string (npm)
- CVE-2021-29060 MODERATE: Regular Expression Denial of Service (ReDOS) Fixed in 1.5.5.

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.
