base64-x58 (npm) · Malicious Code
Affects base64-x58Source GCVE Database
Malicious package : remove base64-x58 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-20036
What to do
Remove base64-x58 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 |
|---|---|---|
npmbase64-x58pkg:npm/base64-x58Other 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 'base64-x58' is a malicious copy of the 'base-x' encoding library that injects obfuscated code into its decode() function. This code exfiltrates input data, typically wallet private keys, by sending it to a hardcoded Telegram bot. Versions 0.0.1 and 0.0.5 are affected. Any system running this package is considered fully compromised, requiring immediate secret and key rotation from a clean environment and removal of the package.