MAL-2026-15563 Malicious code in vitest-chalk-pro (npm)
Malicious package
Published
MAL-2026-15563 is a malicious package: vitest-chalk-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-15563/ (Markdown: https://insights.sbomify.com/MAL-2026-15563/index.md)
- Package
- vitest-chalk-pro
- Registry
- npm
What is MAL-2026-15563?
MAL-2026-15563 is a malicious package in vitest-chalk-pro, published on 29 Aug 2026.
Official description
[email protected] declares a postinstall hook (node lib/utils/index.js) that spawns a detached, silenced child process running lib/utils/smtp-connection/index.js. That child uses axios to GET https://api.jsonbin.io/v3/b/6a62bc86da38895dfe879659 and passes the returned
cookie field to new Function('require',...)(require), executing attacker-controlled JavaScript on the installer's machine at every npm install. The fetched content is opaque and mutable — the operator of the jsonbin document can rotate the payload at any time. The child is spawned with detached: true, stdio: ['ignore','ignore','ignore'], and unref() so it continues running after npm install returns and produces no output. The package name suggests a vitest/chalk utility, but main is a verbatim copy of nodemailer's entrypoint (author metadata Andris Reinman, ETHEREAL_* environment variables, references to api.nodemailer.com), an unrelated facade that disguises the dropper.What should I do about MAL-2026-15563?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.