{"id":"MAL-2026-12091","revision":"592b30a74ce74d7ebd7c29bca73f881d","records":[{"revision":"592b30a74ce74d7ebd7c29bca73f881d","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12091","aliases":[],"title":"Malicious code in @wethenorth12/env-loader (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (de45cab34c84d02c802689caf5a6683df75d402bb17239fea95b395860942ac9)\nOn 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.\n","state":0,"publishedAt":"2026-08-05T06:24:22+00:00","modifiedAt":"2026-08-05T07:20:52.3199854+00:00","affected":[{"ecosystem":"npm","name":"@wethenorth12/env-loader","ranges":[],"versions":["4.2.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@wethenorth12/env-loader/v/4.2.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12091","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12091","identifiers":["MAL-2026-12091"]},"retained":false,"historicalAffected":[]}],"coverage":[]}