CVE-2025-59162
color-convert@3.1.1 contains malware after npm account takeover
Also known as GHSA-ch7m-m9rf-8gvv, GHSA-pxx3-g568-hxr4, MAL-2025-46971
Mitigation
- Upgrade color-convert to 3.1.2 or later.
Who should check
- Projects that depend on npm package color-convert (>= 3.1.1, < 3.1.2)
- Anyone running Qix- color-convert = 3.1.1
Vulnerability facts
- Affected
- color-convert >= 3.1.1, < 3.1.2
- Fixed in
- 3.1.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.8 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:A/U:RedOpen in CVSS calculator
Show all 13 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: Low
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- Exploit maturity: Attacked
- U: Red
- EPSS
- 0.72% chance of exploitation in 30 days (percentile 50, 2026-11-26)
- CWE
- CWE-506
- Modified
Description
color-convert provides plain color conversion functions in JavaScript. On 8 September 2025, the npm publishing account for color-convert was taken over after a phishing attack. Version 3.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, preventing further downloads from npm proper. 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. Users should update to the latest patch version, completely remove their node_modules directory, clean their package manager's global cache, and rebuild any browser bundles from scratch. Those operating private registries or registry mirrors should purge the offending versions from any caches. This issue is resolved in 3.1.2.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm color-convert | >= 3.1.1, < 3.1.2 | 3.1.2 | osv |
| Qix- color-convert | = 3.1.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-59162. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-59162.md Affected: color-convert >= 3.1.1, < 3.1.2 Fixed in: 3.1.2 Steps: 1. Search this machine and project for color-convert (npm), Qix- color-convert: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2025-59162 being exploited?
There is no confirmed exploitation: CVE-2025-59162 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.72% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-59162?
High: CVSS 8.8 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-59162?
color-convert >= 3.1.1, < 3.1.2.
Is there a fix for CVE-2025-59162?
Yes. Fixed in 3.1.2. Upgrade color-convert to 3.1.2 or later.
How do I check if I'm affected by CVE-2025-59162?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.