{"id":"MAL-2026-12094","revision":"c6d7ce7135ab46de93b6af48c2e82b21","records":[{"revision":"c6d7ce7135ab46de93b6af48c2e82b21","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12094","aliases":[],"title":"Malicious code in @wethenorth12/ethers-wallet (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6460d1d0c9cc7423bb90aaf0b165fe45b3949fb627b33d817d34c1ffea64d3d8)\nThe package presents itself as a drop-in replacement for the ethers library (author metadata `ethers-io`, repository URL pointing at the legitimate ethers project) and re-exports `require('ethers')` to appear functional. On require, index.js builds a JSON payload containing the entire `process.env` dictionary plus hostname, username, home directory, platform, current working directory, and timestamp, base64-encodes it, and sends it via HTTPS GET to a hardcoded Telegram Bot API sendMessage endpoint (bot id 7231970337, chat_id 8969499041). A tempdir flag file suppresses re-sends. In CI and developer environments `process.env` routinely contains AWS keys, npm tokens, GitHub tokens, and other credentials, so this constitutes bulk credential theft against any environment that installs or transitively loads the package.\n","state":0,"publishedAt":"2026-08-05T06:23:20+00:00","modifiedAt":"2026-08-05T07:20:53.9155821+00:00","affected":[{"ecosystem":"npm","name":"@wethenorth12/ethers-wallet","ranges":[],"versions":["6.13.5"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@wethenorth12/ethers-wallet/v/6.13.5"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12094","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12094","identifiers":["MAL-2026-12094"]},"retained":false,"historicalAffected":[]}],"coverage":[]}