Malicious code in color-string (npm)
The package was compromised and malicious code added. --- _-= Per source details. Do not edit below this line.=-_ ## Source: ghsa-malware (f96d7c74748e121e50b19198355b3f8f9f8ba84bcfd1731896fcf4b9ebc76370) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2025-59142US | — | — | ||
color-string is a parser and generator for CSS color strings. On 8 September 2025, the npm publishing account for color-string was taken over after a phishing attack. Version 2.1.1… | ||||
references
External citations — patches, advisories, analysis.
- https://github.com/Qix-/color-string/security/advisories/GHSA-286p-vc9p-p5qvWEB
- https://github.com/advisories/GHSA-3q87-f72r-3gm6ADVISORY
- https://github.com/github/advisory-database/issues/6099WEB
- https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromisedARTICLE
- https://www.bleepingcomputer.com/news/security/hackers-hijack-npm-packages-with-2-billion-weekly-downloads-in-supply-chain-attack/ARTICLE
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan