# MAL-2026-15818: Malicious code in vitest-cli-pro (npm)


- **Type:** Malicious package
- **Package:** `vitest-cli-pro` (npm)
- **Published:** 2 Sep 2026

## What is MAL-2026-15818?

MAL-2026-15818 is a malicious package in vitest-cli-pro, published on 2 Sep 2026. 

### Official description

Package published as vitest-cli-pro ships a verbatim copy of nodemailer as cover; its declared postinstall runs lib/utils/index.js, which detaches a child Node process to execute lib/utils/smtp-connection/index.js. That file performs an HTTPS GET to https://api.jsonbin.io/v3/b/6a62bc86da38895dfe879659 and passes the returned `record.cookie` value to `new Function(require)` for immediate execution. The JSON bin is attacker-controlled and mutable, so arbitrary JavaScript runs on any machine executing `npm install vitest-cli-pro`, under the installer's user account. The nodemailer main and the vitest-branded name serve as a cover story for the dropper.

## What should I do about MAL-2026-15818?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-15818 is a malicious package: vitest-cli-pro (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-15818/ (Markdown: https://insights.sbomify.com/MAL-2026-15818/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-15818

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-15818/
Summaries are generated and may contain mistakes; the official description above is the record.
