bitcoinjs-wallet (npm) · Malicious Code
Affects bitcoinjs-walletSource GCVE Database
Malicious package : remove bitcoinjs-wallet and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 23:01 UTC
Malicious package
Published to npm · OSV MAL-2026-13258
What to do
Remove bitcoinjs-wallet from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmbitcoinjs-wallet | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package bitcoinjs-wallet@5.4.2 is a malicious typosquat of bitcoinjs-lib that steals environment credentials upon being required. It collects system information and environment variables, encodes this data, and exfiltrates it via an HTTPS request to the Telegram Bot API using a hardcoded bot token and chat ID. The package attempts to hide its behavior by re-exporting bitcoinjs-lib if present or exposing stub wallet APIs. This results in credential theft from environment variables such as AWS, NPM, GitHub tokens, and other secrets.