Skip to main content
MalwarePublished

bitcoinjs-wallet (npm) · Malicious Code

Affects bitcoinjs-walletSource GCVE Database

0

Malicious package : remove bitcoinjs-wallet and rotate any secrets on hosts that installed it.

Data as of 5 Aug 2026, 23:01 UTC

Classification

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

ProductAffectedFixed in
npmbitcoinjs-walletAffected
  • =5.4.2
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.

References

Community reviews

Loading reviews…