{"id":"MAL-2026-12088","revision":"46690cdd9b03491baa3602626e3022ea","records":[{"revision":"46690cdd9b03491baa3602626e3022ea","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12088","aliases":[],"title":"Malicious code in @wethenorth12/bitcoinjs-wallet (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (94f602036ff9f524298056528fbec6c58c9fb66ea2686bec418694b5854aeea4)\nOn require(), index.js collects the full process.env object together with hostname, username, home directory, platform, current working directory, and a timestamp, JSON-encodes and base64-encodes the payload, and issues an HTTPS GET to api.telegram.org/bot<token>/sendMessage with a hardcoded bot token and chat_id. A tmp-file flag suppresses re-sending. The package advertises itself as a 'Drop-in replacement for bitcoinjs-lib' under an unrelated scope and ships only stub wallet functions alongside this exfiltration payload, consistent with a typosquat lure targeting bitcoinjs-lib users. In modern development and CI environments, process.env routinely contains cloud credentials, npm/GitHub tokens, and database passwords, all of which are sent to the attacker-controlled Telegram chat on module load.\n","state":0,"publishedAt":"2026-08-05T06:24:40+00:00","modifiedAt":"2026-08-05T07:20:51.0971265+00:00","affected":[{"ecosystem":"npm","name":"@wethenorth12/bitcoinjs-wallet","ranges":[],"versions":["5.4.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@wethenorth12/bitcoinjs-wallet/v/5.4.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12088","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12088","identifiers":["MAL-2026-12088"]},"retained":false,"historicalAffected":[]}],"coverage":[]}