CVE-2025-59331
JavaScript vulnerability analysis and mitigation

Overview

On September 8, 2025, the npm publishing account for is-arrayish was compromised through a phishing attack. The attacker published version 0.3.3, 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 0.3.3 contained obfuscated code that specifically targeted browser environments, leaving local environments, server environments, and command line applications unaffected. The malware was designed to intercept and manipulate cryptocurrency transactions, particularly targeting cryptocurrency wallets such as MetaMask. The package received a CVSS v4.0 score of 8.8 (HIGH) with the vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:A/U:Red (GitHub Advisory).

Impact

The vulnerability affects applications that use is-arrayish in a browser context, including those using bundling tools such as Babel, Rollup, Vite, and Next.js. The malware specifically targets cryptocurrency transactions and wallets, attempting to redirect funds to attacker-controlled addresses (GitHub Advisory, 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 0.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 any caches (GitHub Advisory).

Community reactions

The incident was widely reported across the security community, with multiple security firms and researchers analyzing and documenting the attack. The compromise was particularly notable as it affected several popular npm packages with billions of weekly downloads collectively (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-68130HIGH8.5
  • JavaScriptJavaScript
  • @trpc/server
NoYesDec 16, 2025
CVE-2025-68150HIGH8.3
  • JavaScriptJavaScript
  • parse-server
NoYesDec 16, 2025
CVE-2025-68154HIGH8.1
  • JavaScriptJavaScript
  • systeminformation
NoYesDec 16, 2025
CVE-2025-68113MEDIUM6.5
  • JavaScriptJavaScript
  • github.com/altcha-org/altcha-lib-go
NoYesDec 16, 2025
CVE-2025-68115MEDIUM5.3
  • JavaScriptJavaScript
  • parse-server
NoYesDec 16, 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