CVE-2025-59145 Details
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.
A phishing attack led to the takeover of an npm publishing account for the 'color-name' package, which is a JSON file containing CSS color names. The compromised version 2.0.1 was published on September 8, 2025, introducing malware that targeted cryptocurrency transactions by redirecting funds to the attacker's wallet addresses. This malicious version was active in browser environments, including those using bundling tools like Babel, Rollup, Vite, and Next.js. The malware specifically aimed at wallets such as MetaMask, and could still be present in browser bundles if the compromised package had been included.
Users should update to 'color-name' version 2.0.2, remove the 'node_modules' directory, clean the package manager's global cache, and rebuild any browser bundles from scratch. Those using private registries or mirrors should purge the compromised versions from their caches.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 15, 2025CISA-ADP
Assessed Sep 15, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/colorjs/color-name/security/advisories/GHSA-5fvm-p68v-5wmh | [email protected] | AdvisoryRemedyVendor |
| https://github.com/debug-js/debug/issues/1005 | [email protected] | ExploitIssue TrackingVendor |
| https://socket.dev/blog/npm-author-qix-compromised-in-major-supply-chain-attack | [email protected] | BundleMedia CoverageTechnical Analysis |
| https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromised | [email protected] | BundleMedia CoverageRemedy |
| https://www.ox.security/blog/npm-packages-compromised | [email protected] | BundleTechnical Analysis |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-506 | Embedded Malicious Code | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| color-name | All versions |
CPE
Remediation
| |
| debug | 4.4.2 (semver) |
CPE
Remediation
| |
| chalk | 5.6.1 (semver) |
CPE
Remediation
| |
| chalk-template | 1.1.1 (semver) |
CPE
Remediation
| |
| color-convert | 3.1.1 (semver) |
CPE
Remediation
| |
| color-string | 2.1.1 (semver) |
CPE
Remediation
| |
| error-ex | 1.3.3 (semver) |
CPE
Remediation
| |
| is-arrayish | 0.3.3 (semver) |
CPE
Remediation
| |
| simple-swizzle | 0.2.3 (semver) |
CPE
Remediation
| |
| supports-hyperlinks | 4.1.1 (semver) |
CPE
Remediation
| |
| strip-ansi | 7.1.1 (semver) |
CPE
Remediation
| |
| wrap-ansi | 9.0.1 (semver) |
CPE
Remediation
| |
| ansi-regex | 6.2.1 (semver) |
CPE
Remediation
| |
| ansi-styles | 6.2.2 (semver) |
CPE
Remediation
| |
| supports-color | 10.2.1 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 30, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 15, 2025 | New CVE Received | [email protected] |
Volerion