CVE-2025-59140 json
backslash@0.2.1 contains malware after npm account takeover
published 2025-09-15 13 mo ago modified 2026-06-17 4 mo ago also GHSA-53mq-f4w3-f7qv , GHSA-m2xf-jp99-f298 , EUVD-2025-29229
- cvss
- 8.8
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 35%
- public exploits
- 0
- none known
Summary
backlash parses collected strings with escapes. On 8 September 2025, the npm publishing account for backslash was taken over after a phishing attack. Version 0.2.1 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. 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 upgrade 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 issues is resolved in 0.2.2.
Patch / fix
- npm backslash 0.2.2
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-59140 updated
backslash: backslash@0.2.1 contains malware after npm account takeover
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 13 mo ago
Exploit prediction
0.41% chance of exploitation in the next 30 days, higher than 35% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.8 | 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 |
| CNA | 4.0 | 8.8 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Red |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | backslash | >=0.2.1, <0.2.2 |
0.2.2 |
Affected products
- Qix- node-backslash
Classification
- Weakness
-
- CWE-506 Embedded Malicious Code
References
-
github.com
/Qix-/node-backslash/security/advisories/GHSA-53mq-f4w3-f7qv
web
-
github.com
/debug-js/debug/issues/1005
web
-
socket.dev
/blog/npm-author-qix-compromised-in-major-supply-chain-attack
web
-
aikido.dev
/blog/npm-debug-and-chalk-packages-compromised
web
-
ox.security
/blog/npm-packages-compromised
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-59140
advisory
-
github.com
/Qix-/node-backslash
package
Sources
- CVE List CVE-2025-59140
- GitHub Advisory GHSA-53mq-f4w3-f7qv
- NVD CVE-2025-59140
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.