CVE-2025-59331
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-09-15

Last updated on: 2025-09-16

Assigner: GitHub, Inc.

Description
is-arrayish checks if an object can be used like an Array. On 8 September 2025, an npm publishing account for is-arrayish was taken over after a phishing attack. Version 0.3.3 was published, functionally identical to the previous patch version, but with a malware payload added attempting to redirect cryptocurrency transactions to the attacker's own addresses from within browser environments. Local environments, server environments, command line applications, etc. are not affected. If the package was used in a browser context (e.g. a direct <script> inclusion, or via a bundling tool such as Babel, Rollup, Vite, Next.js, etc.) there is a chance the malware still exists and such bundles will need to be rebuilt. The malware seemingly only targets cryptocurrency transactions and wallets such as MetaMask. See references below for more information on the payload. npm removed the offending package from the registry over the course of the day on 8 September, preventing further downloads from npm proper. On 13 September, the package owner published new patch versions to help cache-bust those using private registries who 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. This issue is resolved in 0.3.4.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-09-15
Last Modified
2025-09-16
Generated
2026-05-06
AI Q&A
2025-09-15
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 19 associated CPEs
Vendor Product Version / Range
ansi-styles ansi-styles 6.2.2
proto-tinker-wc proto-tinker-wc 1.8.7
color-convert color-convert 3.1.1
supports-color supports-color 10.2.1
color-string color-string 2.1.1
wrap-ansi wrap-ansi 9.0.1
chalk-template chalk-template 1.1.1
ansi-regex ansi-regex 6.2.1
strip-ansi strip-ansi 7.1.1
supports-hyperlinks supports-hyperlinks 4.1.1
error-ex error-ex 1.3.3
simple-swizzle simple-swizzle 0.2.3
chalk chalk 5.6.1
qix is-arrayish 0.3.4
has-ansi has-ansi 6.0.1
debug-js debug 4.4.2
color-name color-name 2.0.1
slice-ansi slice-ansi 7.1.1
qix is-arrayish 0.3.3
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-506 The product contains code that appears to be malicious in nature.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

CVE-2025-59331 is a vulnerability in the npm package is-arrayish where the attacker's phishing attack led to the takeover of the package's publishing account. The attacker published version 0.3.3 containing malware that intercepts and redirects cryptocurrency transactions within browser environments to the attacker's addresses. This malware targets wallets like MetaMask and affects only browser contexts, not local, server, or command-line environments. The compromised version was removed from npm, and a clean patch version 0.3.4 was released to fix the issue. [1]


How can this vulnerability impact me? :

If you use the is-arrayish package in a browser environment, this vulnerability can lead to malware redirecting your cryptocurrency transactions to an attacker's wallet, potentially causing financial loss. Local, server, or command-line uses are not affected. Users with affected browser bundles need to update to version 0.3.4, clear caches, and rebuild bundles to remove the malware. [1]


How can this vulnerability be detected on my network or system? Can you suggest some commands?

Detection involves identifying if the compromised version 0.3.3 of is-arrayish is present in browser bundles or projects. You can check your package.json and package-lock.json or yarn.lock files for is-arrayish version 0.3.3. Additionally, search your built browser bundles for suspicious code related to cryptocurrency transaction redirection. Commands to detect the compromised package version include: `npm ls is-arrayish` or `yarn list is-arrayish`. To search for the malware payload in bundles, you might use `grep -r 'is-arrayish' ./dist` or similar in your build output directories. [1]


What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include: 1) Update is-arrayish to version 0.3.4 or later. 2) Completely remove your node_modules directory. 3) Clear your package manager's global cache (e.g., `npm cache clean --force` or `yarn cache clean`). 4) Rebuild all browser bundles from scratch to ensure no compromised code remains. 5) If you operate private registries or mirrors, purge the compromised version 0.3.3 from caches. These steps ensure removal of the malware payload and prevent further infection. [1]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart