Advisory

MAL-2026-12091

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in @wethenorth12/env-loader (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (de45cab34c84d02c802689caf5a6683df75d402bb17239fea95b395860942ac9)
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.

Severity

Not rated by the source.

Dates

Published
2026-08-05 06:24 UTC
Modified
2026-08-05 07:20 UTC

Affected packages and fixes

@wethenorth12/env-loader

npm · All systems

Affected

  • Versions: 4.2.0

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences