[email protected] contains malware after npm account takeover
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-506.
Summary
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 was published, functionally identical to the previous patch version, but with a malware payload added attempting to redirect cryptocurrency transactions to the attacker's own addresses from within browser environments. Local environments, server environments, command line applications, etc. are not affected. If the package was used in a browser context (e.g. a direct <script> inclusion, or via a bundling tool such as Babel, Rollup, Vite, Next.js, etc.) there is a chance the malware still exists and such bundles will need to be rebuilt. The malware seemingly only targets cryptocurrency transactions and wallets such as MetaMask. npm removed the offending package from the registry over the course of the day on 8 September. On 13 September, the package owner published new patch versions to help cache-bust those using private registries who might still have the compromised version cached. This issue has been resolved in 2.1.2.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Qix- | color-string | = 2.1.1 | — | No fix listed | CNA |
| — | color-string (npm) | 2.1.1 to before 2.1.2 | 2.1.2 | Patch available | GHSA-286p-vc9p-p5qv |
- color-string VendorQix- Affected = 2.1.1 Fixed in — No fix listed CNA
- color-string (npm) Vendor— Affected 2.1.1 to before 2.1.2 Fixed in 2.1.2 Patch available GHSA-286p-vc9p-p5qv
Remediation
- Fix · GHSA-286p-vc9p-p5qv color-string (npm) Fixed in 2.1.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 17 products
- Logging Subsystem for Red Hat OpenShift
- Migration Toolkit for Applications 8
- OpenShift Serverless
- Red Hat AMQ Broker 7
- Red Hat Developer Hub 1
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Fuse 7
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Dev Spaces
- Red Hat OpenShift GitOps
- Red Hat Single Sign-On 7
- streams for Apache Kafka 2
- streams for Apache Kafka 3
Timeline
- 2026-10-02 Threatist record created from CVE-2025-59142
- 2026-10-03 Alias added: GHSA-286p-vc9p-p5qv
- 2026-10-27 Affected versions changed · Red Hat
References
Other 6
- https://github.com/Qix-/color-string/security/advisories/GHSA-286p-vc9p-p5qv
- https://github.com/debug-js/debug/issues/1005
- https://socket.dev/blog/npm-author-qix-compromised-in-major-supply-chain-attack
- https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromised
- https://www.ox.security/blog/npm-packages-compromised
- https://github.com/Qix-/color-string
More Qix- vulnerabilities
- TI-2025-36893 [email protected] contains malware after npm account takeover CVSS 4.0HIGH 8.8
- TI-2025-36892 [email protected] contains malware after npm account takeover CVSS 4.0HIGH 8.8
- TI-2025-36766 [email protected] contains malware after npm account takeover CVSS 4.0HIGH 8.8
- TI-2025-36748 [email protected] contains malware after npm account takeover CVSS 4.0HIGH 8.8
- TI-2025-36746 [email protected] contains malware after npm account takeover CVSS 4.0HIGH 8.8
- TI-2025-36745 [email protected] contains malware after npm account takeover CVSS 4.0HIGH 8.8
Sources
- CVE-2025-59142 · CVE Program
- CVE-2025-59142 · NVD
- FIRST EPSS
- GHSA-286p-vc9p-p5qv · GitHub Advisory Database · CC BY 4.0
- CVE-2025-59142 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences