# CVE-2025-59145: color-name@2.0.1 contains malware after npm account takeover

- Severity: High 8.8 (CVSS:4.0, scored by GitHub_M) `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:Red`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 48% of CVEs (2026-12-01)
- Published: 2025-09-15T20:32:43.877Z
- Modified: 2026-09-30T23:10:00.237Z
- Also known as: GHSA-5fvm-p68v-5wmh, GHSA-m99c-cfww-cxqx, MAL-2025-46972
- Weaknesses: CWE-506
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

color-name is a JSON with CSS color names. On 8 September 2025, an npm publishing account for color-name was taken over after a phishing attack. Version 2.0.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. See references below for more information on the payload. 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 2.0.2.

(As written by CVE List.)

## Affected

- colorjs color-name: = 2.0.1
- color-name (npm): from 2.0.1 before 2.0.2

## Every score

- GitHub_M: CVSS:4.0 8.8 High `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:Red`
- GitHub: CVSS:4.0 High `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:Red`

## References

- <https://github.com/colorjs/color-name/security/advisories/GHSA-5fvm-p68v-5wmh> (web)
- <https://github.com/debug-js/debug/issues/1005> (web)
- <https://socket.dev/blog/npm-author-qix-compromised-in-major-supply-chain-attack> (web)
- <https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromised> (web)
- <https://www.ox.security/blog/npm-packages-compromised> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59145> (advisory)
- <https://github.com/colorjs/color-name> (package)

## Sources

- CVE List: [CVE-2025-59145](https://www.cve.org/CVERecord?id=CVE-2025-59145), CVE Terms of Use, modified 2025-09-15
- GitHub Advisory Database: [GHSA-5fvm-p68v-5wmh](https://github.com/advisories/GHSA-5fvm-p68v-5wmh), CC-BY-4.0, modified 2025-09-16
- NVD: [CVE-2025-59145](https://nvd.nist.gov/vuln/detail/CVE-2025-59145), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2025-59145 · Whole record: https://cve.day/CVE-2025-59145.json · Rebuilt by cve.day 2026-11-25T22:59:04.678Z
