CVE-2025-59330
JavaScript vulnerability analysis and mitigation

Overview

On September 8, 2025, the npm package error-ex version 1.3.3 was compromised after a phishing attack targeting the maintainer's publishing account. The package, which allows error subclassing and stack customization, was modified to include malicious code while maintaining identical functionality to the previous patch version (GitHub Advisory).

Technical details

The malicious version 1.3.3 contained a payload that attempted to redirect cryptocurrency transactions to attacker-controlled addresses specifically within browser environments. The attack only targeted browser contexts where the package was used either through direct inclusion or via bundling tools like Babel, Rollup, Vite, and Next.js. Local environments, server environments, and command line applications were not affected. The malware specifically targeted cryptocurrency transactions and wallets such as MetaMask (Socket Blog).

Impact

The compromised package error-ex receives approximately 47.17 million downloads per week, making this a significant supply chain attack. The malware specifically impacted users who integrated the package in browser environments, potentially compromising cryptocurrency transactions by redirecting them to attacker-controlled addresses (Aikido Blog).

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 1.3.4 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 their caches (GitHub Advisory).

Community reactions

The incident was widely discussed in the security community, with multiple security firms and researchers publishing detailed analyses. The attack was part of a larger campaign that affected several popular npm packages, drawing significant attention to the ongoing challenges of supply chain security in the npm ecosystem (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