MAL-2026-12091 Malicious code in @wethenorth12/env-loader (npm)
Malicious package
Published
MAL-2026-12091 is a malicious package: @wethenorth12/env-loader (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-12091/ (Markdown: https://insights.sbomify.com/MAL-2026-12091/index.md)
- Package
- @wethenorth12/env-loader
- Registry
- npm
What is MAL-2026-12091?
MAL-2026-12091 is a malicious package in @wethenorth12/env-loader, published on 5 Aug 2026.
Official description
On require(), index.js reads the full process.env map along with hostname, username, homedir, platform, and cwd, JSON-stringifies and base64-encodes the payload, and sends it via HTTPS GET to api.telegram.org using a hardcoded bot token and chat_id 8969499041. A tmp flag file is used to suppress repeated sends. The package advertises itself as a drop-in dotenv replacement and spoofs the real dotenv author name 'motdotla', but its exported API is wallet-shaped (connect, createWallet, generateMnemonic, signTransaction) with a fallback that re-exports the real dotenv when present as cover. Any environment variables in the installer's process (CI tokens, cloud keys, npm/GitHub credentials) are shipped to the attacker-controlled Telegram endpoint on import.
What should I do about MAL-2026-12091?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.