{"id":"CVE-2025-59145","published":"2025-09-15T20:32:43Z","modified":"2025-09-15T20:39:58Z","title":"color-name@2.0.1 contains malware after npm account takeover","vendor":"colorjs","product":"color-name","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00577,"percentile":0.48457,"provenance":"source"},"cwes":[{"id":"CWE-506","name":"Embedded Malicious Code"}],"references":[{"url":"https://github.com/colorjs/color-name/security/advisories/GHSA-5fvm-p68v-5wmh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/debug-js/debug/issues/1005","tags":["x_refsource_MISC"]},{"url":"https://socket.dev/blog/npm-author-qix-compromised-in-major-supply-chain-attack","tags":["x_refsource_MISC"]},{"url":"https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromised","tags":["x_refsource_MISC"]},{"url":"https://www.ox.security/blog/npm-packages-compromised","tags":["x_refsource_MISC"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":9.69},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"colorjs","affectedVersions":[{"vendor":"colorjs","product":"color-name","versions":["= 2.0.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-15T20:39:50.044627Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"color-name","vulnerableRanges":[">=2.0.1, <2.0.2"],"patched":["2.0.2"],"from":["GHSA-5fvm-p68v-5wmh"],"provenance":"source"}],"summary":{"text":"The color-name npm package, published by colorjs, contains a malicious version 2.0.1 that was released after a publishing account was compromised through phishing, and its payload targets browser-based cryptocurrency transactions and wallets such as MetaMask. An attacker can exploit this over the network without authentication or special privileges, but only where the affected package is used in a browser context, either directly or through a bundling tool, and the malicious code must be executed in the user's browser, which is the user-interaction and configuration condition.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:10Z"},"euvd":{"id":"EUVD-2025-29260","exploited":false,"provenance":"source"}}