Skip to main content
MalwarePublished

vitest-cli-dev (npm) · Malicious Code

Affects vitest-cli-devSource GCVE Database

0

Malicious package : remove vitest-cli-dev and rotate any secrets on hosts that installed it.

Data as of 7 Sep 2026, 16:23 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-15870

What to do

Remove vitest-cli-dev 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

ProductAffectedFixed in
npmvitest-cli-devAffected
  • =10.0.7
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-dev@10.0.7 is a typosquatting malicious package impersonating a legitimate vitest tool. It contains nodemailer and an install-time dropper that executes attacker-controlled JavaScript during installation by fetching mutable remote JSON payloads. This code runs detached from the npm process, allowing persistence beyond installation. The attacker can change the payloads at any time, enabling dynamic malicious behavior.

References

Community reviews

Loading reviews…