base128-x58 (npm) · Malicious Code
Affects base128-x58Source GCVE Database
Malicious package : remove base128-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-20034
What to do
Remove base128-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 |
|---|---|---|
npmbase128-x58pkg:npm/base128-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 base128-x58 npm package is a malicious fork of the base-x encoding library that injects obfuscated code into its decode() function. This code exfiltrates the input string, typically a wallet private key, by sending it to a hardcoded Telegram bot. Any system using this package is at high risk of compromise, and all secrets on the system should be rotated immediately.