CVE-2025-59143
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-09-15

Last updated on: 2025-09-16

Assigner: GitHub, Inc.

Description
color is a Javascript color conversion and manipulation library. On 8 September 2025, the npm publishing account for color was taken over after a phishing attack. Version 5.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. 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 issues has been resolved in 5.0.2.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-09-15
Last Modified
2025-09-16
Generated
2026-05-07
AI Q&A
2025-09-15
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 3 associated CPEs
Vendor Product Version / Range
qix color 5.0.1
debug debug 4.4.2
qix color 5.0.2
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-506 The product contains code that appears to be malicious in nature.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability involves the npm package 'color' version 5.0.1, which was compromised after a phishing attack on the maintainer's npm publishing account. The attacker published a malicious version containing malware that attempts to redirect cryptocurrency transactions to attacker-controlled addresses, but only when the package is used in browser environments (e.g., via direct script inclusion or bundling tools like Babel, Rollup, Vite, Next.js). Local, server, or command-line environments are not affected. The malware specifically targets cryptocurrency wallets such as MetaMask. [1]


How can this vulnerability impact me? :

If you use the compromised version 5.0.1 of the 'color' package in a browser context, your cryptocurrency transactions could be redirected to attacker-controlled addresses, potentially resulting in financial loss. This affects users who include the package directly in browser scripts or bundle it with tools like Babel, Rollup, Vite, or Next.js. Local, server, or command-line uses are not impacted. To mitigate, users should update to version 5.0.2, delete node_modules, clear package manager caches, and rebuild browser bundles. [1]


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability can be detected by checking if the compromised version 5.0.1 of the 'color' npm package is present in your project, especially if used in browser contexts. You can inspect your package.json and package-lock.json or yarn.lock files for version 5.0.1 of 'color'. Additionally, scanning your browser bundles for unexpected code that attempts to redirect cryptocurrency transactions could help. Specific commands include: 1) npm list color to see installed versions; 2) grep or search your bundled JavaScript files for suspicious code related to cryptocurrency redirection; 3) checking your node_modules directory for version 5.0.1 of 'color'. [1]


What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include: 1) Updating the 'color' package to version 5.0.2 or later; 2) Completely removing your node_modules directory; 3) Cleaning your package manager's global cache; 4) Rebuilding any browser bundles from scratch to ensure no malicious code remains; 5) If you operate private registries or mirrors, purge any cached copies of the compromised version 5.0.1. These steps help remove the malware payload and prevent its execution in browser environments. [1]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart