CVE-2025-59162
JavaScript vulnerability analysis and mitigation

Overview

On September 8, 2025, the npm publishing account for color-convert was compromised through a phishing attack. The attacker published version 3.1.1, which was functionally identical to the previous patch version but contained a malicious payload designed to redirect cryptocurrency transactions to attacker-controlled addresses within browser environments (GitHub Advisory, Socket Blog).

Technical details

The malicious version 3.1.1 contained obfuscated code that only activated in browser environments, leaving local environments, server environments, and command line applications unaffected. The malware specifically targeted cryptocurrency transactions and wallets like MetaMask, attempting to intercept and redirect funds to attacker-controlled addresses. The package receives approximately 193.5 million downloads per week, making this a significant supply chain attack (Socket Blog).

Impact

The vulnerability affects applications using color-convert in browser contexts, particularly through bundling tools like Babel, Rollup, Vite, and Next.js. The malware specifically targets cryptocurrency transactions, attempting to redirect funds to attacker-controlled wallets without user awareness. Given the package's widespread use with billions of weekly downloads, the potential impact is substantial (GitHub Advisory).

Mitigation and workarounds

npm removed the malicious package from the registry on September 8, preventing further downloads. On September 13, the package owner published version 3.1.2 to help cache-bust private registries that might still have the compromised version. 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 should purge the offending versions from their caches (GitHub Advisory).

Community reactions

The incident was widely discussed in the security community, particularly due to its impact on the JavaScript ecosystem. The compromise was initially detected by Socket's security monitoring system and quickly reported across various security platforms. The incident highlighted the ongoing challenges of supply chain security in the npm ecosystem (Socket Blog, Aikido Blog).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management