Skip to main content
MalwarePublished Updated

bitcoin-lib-js (npm) · Malicious Code

Affects bitcoin-lib-jsSource GCVE Database

0

Malicious package : remove bitcoin-lib-js and rotate any secrets on hosts that installed it.

Data as of 20 Nov 2026, 01:23 UTC

Classification

Malicious package

Published to npm · OSV MAL-2025-191478

What to do

Remove bitcoin-lib-js 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
npmbitcoin-lib-jsAffected–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 bitcoin-lib-js was found to contain malicious code. Installation or execution of this package can lead to full compromise of the affected computer. Secrets and keys stored on the compromised system should be rotated immediately from a secure device. Removal of the package alone may not eliminate all malicious software introduced by it.

References

Community reviews

Loading reviews…