{"id":"MAL-2026-13258","revision":"672e0c162d9f4ecd8f9978fbfd99e754","records":[{"revision":"672e0c162d9f4ecd8f9978fbfd99e754","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13258","aliases":[],"title":"Malicious code in bitcoinjs-wallet (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8981a1bdc42ac6f595b3805c959060201fc4eb0c39b5bf50b25c5d3d7cc398b5)\nbitcoinjs-wallet@5.4.2 is a typosquat of bitcoinjs-lib that performs credential theft at module load. On require(), index.js collects hostname, username, homedir, platform, cwd and the entire process.env, JSON-stringifies and base64-encodes the payload, and transmits it via an HTTPS GET to the Telegram Bot API using a hardcoded bot token and chat_id 8969499041. A marker file in the OS tmpdir suppresses repeat sends. The bulk process.env dump captures any credentials the installer has in the environment (AWS_*, NPM_TOKEN, GITHUB_TOKEN, CI secrets, wallet-related variables). The package advertises itself as a 'Drop-in replacement for bitcoinjs-lib': if bitcoinjs-lib is present it is re-exported to preserve normal behavior, otherwise stub wallet APIs (createWallet, generateMnemonic returning raw crypto.randomBytes hex, signTransaction) are exposed as cover while the exfiltration has already fired.\n","state":0,"publishedAt":"2026-08-05T15:40:48+00:00","modifiedAt":"2026-08-05T16:50:19.6892455+00:00","affected":[{"ecosystem":"npm","name":"bitcoinjs-wallet","ranges":[],"versions":["5.4.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/bitcoinjs-wallet/v/5.4.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13258","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13258","identifiers":["MAL-2026-13258"]},"retained":false,"historicalAffected":[]}],"coverage":[]}