vitest-preview-pro-all (npm) · Malicious Code
Affects vitest-preview-pro-allSource GCVE Database
Malicious package : remove vitest-preview-pro-all and rotate any secrets on hosts that installed it.
Data as of 6 Aug 2026, 18:45 UTC
Malicious package
Published to npm · OSV MAL-2026-13405
What to do
Remove vitest-preview-pro-all from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmvitest-preview-pro-all | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package 'vitest-preview-pro-all' version 10.0.3 contains malicious code that executes arbitrary remote code during installation. Its postinstall script runs obfuscated JavaScript which fetches and executes attacker-controlled code from a mutable third-party source. The package impersonates the legitimate 'nodemailer' library to disguise its malicious intent.