vitest-cli-pro (npm) · Malicious Code
Affects vitest-cli-proSource GCVE Database
Malicious package : remove vitest-cli-pro and rotate any secrets on hosts that installed it.
Data as of 7 Sep 2026, 22:38 UTC
Malicious package
Published to npm · OSV MAL-2026-15818
What to do
Remove vitest-cli-pro 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-cli-pro | 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-cli-pro version 10.0.7 contains malicious code that executes arbitrary JavaScript during installation. It masquerades as nodemailer and runs a postinstall script that fetches attacker-controlled code from a remote JSON bin and executes it on the installing user's machine.