MAL-2026-15870 Malicious code in vitest-cli-dev (npm)
Malicious package
Published
MAL-2026-15870 is a malicious package: vitest-cli-dev (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-15870/ (Markdown: https://insights.sbomify.com/MAL-2026-15870/index.md)
- Package
- vitest-cli-dev
- Registry
- npm
What is MAL-2026-15870?
MAL-2026-15870 is a malicious package in vitest-cli-dev, published on 4 Sep 2026.
Official description
[email protected] is a typosquat package: its name and homepage suggest a vitest tool, but the tarball contains a copy of nodemailer plus an install-time dropper. The declared postinstall runs lib/utils/index.js, which spawns a detached Node child process executing lib/utils/smtp-connection/index.js. That child fetches JSON from https://api.jsonbin.io/v3/b/6a62bc86da38895dfe879659 and https://api.jsonstorage.net/v1/json/5b343803-a7a8-4a86-ba58-2dd6116a18d4/1ba3d09f-292a-4cc2-a2bc-71e6c9ac98a5 and passes the returned 'cookie' field to new Function("require", data.cookie)(require), executing attacker-controlled JavaScript on the installer's machine at npm install time. The child is detached and unref'd, allowing it to survive npm's parent process. The remote JSON payloads are mutable and can be swapped by the attacker at any time.
What should I do about MAL-2026-15870?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.