npm-bs58.js (npm) · Malicious Code
Affects npm-bs58.jsSource GCVE Database
Malicious package : remove npm-bs58.js and rotate any secrets on hosts that installed it.
Data as of 2 Dec 2026, 22:48 UTC
Malicious package
Published to npm · OSV MAL-2026-20040
What to do
Remove npm-bs58.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
| Product | Affected | Fixed in |
|---|---|---|
npmnpm-bs58.jspkg:npm/npm-bs58.jsOther threats | 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 'npm-bs58.js' is a malicious look-alike of the legitimate 'bs58' package. Its decode() and encode() functions delegate to malicious packages 'base128-x58' (versions 1.0.0 to 2.0.2) or 'base64-x58' (version 6.0.0), which exfiltrate decode() input—commonly wallet private keys—to hardcoded Telegram bots. Any system with this package installed is considered fully compromised, and all secrets should be rotated immediately from a separate, secure device.