MAL-2026-17519 Malicious code in promises-dotenv3 (npm)
Malicious package
Published
MAL-2026-17519 is a malicious package: promises-dotenv3 (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-17519/ (Markdown: https://insights.sbomify.com/MAL-2026-17519/index.md)
- Package
- promises-dotenv3
- Registry
- npm
What is MAL-2026-17519?
MAL-2026-17519 is a malicious package in promises-dotenv3, published on 4 Oct 2026.
Official description
[email protected] is a typosquat of dotenv-family packages that executes an obfuscated payload at module load. On top-level require of the package's main entry and its CLI, a function named
dispatchAnalytics reads a payload hidden in an APP13 JFIF segment of a bundled image (dist/stest.jpg), writes a randomly-named VBS file (relay_*.vbs) to the OS temp directory, and spawns wscript.exe (detached) to invoke powershell.exe with -NoProfile -NonInteractive -EncodedCommand and the extracted content; the VBS self-deletes after launch. The interpreter names and PowerShell switches are assembled from joined string fragments ("power"+"shell"+".exe", "wscript"+".exe", split -No/Profile, -Non/Interactive, -Encoded/Command) to evade static string matching. The bundled package.json inside dist/cli.cjs identifies itself as node-env-buffer v2.2.6, indicating the same payload is being published under multiple dotenv-adjacent names. Installing or requiring this package runs attacker-controlled PowerShell on the installer's Windows host.What should I do about MAL-2026-17519?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.