CVE-2025-59162
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-59162 affects the color-convert npm package, discovered on September 8, 2025. The vulnerability emerged when the npm publishing account for color-convert was compromised through a phishing attack. Version 3.1.1 was published containing malicious code that attempts to redirect cryptocurrency transactions to attacker-controlled addresses within browser environments (GitHub Advisory).

Technical details

The malicious version 3.1.1 was functionally identical to the previous patch version but included a malware payload specifically targeting browser environments. The malware only activates in browser contexts, whether through direct inclusion or via bundling tools like Babel, Rollup, Vite, or Next.js. The payload is designed to intercept and manipulate cryptocurrency transactions, particularly targeting cryptocurrency wallets such as MetaMask (Socket Blog).

Impact

The compromised package receives approximately 193.5 million downloads per week, making this a significant supply chain attack. The malware specifically targets cryptocurrency transactions in browser environments, attempting to redirect funds to attacker-controlled addresses. Local environments, server environments, and command line applications are not affected by this vulnerability (Socket Blog).

Mitigation and workarounds

npm removed the malicious package version 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 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 (GitHub Advisory).

Community reactions

The incident has been widely discussed in the security community, with multiple security firms and researchers analyzing and reporting on the compromise. The attack was particularly notable as it targeted a popular package with billions of weekly downloads, demonstrating the potential impact of supply chain attacks in the npm ecosystem (Socket Blog, Debug Issue).

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-59145HIGH8.8
  • JavaScriptJavaScript
  • color-name
NoYesSep 15, 2025
CVE-2025-59331HIGH8.8
  • JavaScriptJavaScript
  • is-arrayish
NoYesSep 15, 2025
CVE-2025-59330HIGH8.8
  • JavaScriptJavaScript
  • error-ex
NoYesSep 15, 2025
CVE-2025-59162HIGH8.8
  • JavaScriptJavaScript
  • color-convert
NoYesSep 15, 2025
CVE-2025-9862MEDIUM6.1
  • JavaScriptJavaScript
  • ghost
NoYesSep 15, 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