JavaScript Vulnerability in Color Conversion Tool by Qix
CVE-2025-59162
What is CVE-2025-59162?
The color-convert library, known for its plain color conversion functionality in JavaScript, was compromised following a phishing attack on its npm publishing account on September 8, 2025. The attacker published version 3.1.1, which mimicked the previous version but contained a malicious payload aimed at redirecting cryptocurrency transactions via browser environments. Although local and server environments remain unaffected, users who integrated the impacted version within browser contexts are at risk, particularly those utilizing popular bundling tools like Babel and Rollup. Following the disclosure, npm promptly removed the malicious package, but users are urged to upgrade to version 3.1.2, delete any existing node_modules directories, purge package manager caches, and rebuild affected browser bundles to mitigate risks associated with the malware targeting cryptocurrency wallets like MetaMask.
Affected Version(s)
color-convert = 3.1.1