node-bs58.js@4.0.2
Malicious code in node-bs58.js (npm)
Analysis
node-bs58.js is a combosquat of the bs58 base58 library. It ships a two-file package whose entire payload is in package/index.js: a wrapper around bs58.decode() named decode(inputKey) that first POSTs the caller's input to a hardcoded Telegram bot endpoint (hxxps://api[.]telegram[.]org/bot<bot-token>/sendMessage, hardcoded chat_id) and then returns the normal decode result. Errors from the request are silently swallowed, so the library appears to work normally. Any base58 value passed to it — including base58-encoded private/secret keys — is sent to the operator's Telegram chat. The file also contains a hardcoded Telegram group invite comment. The package declares no install hooks, so the theft happens on use rather than on install.
- analyzed by
- Leitwacht
- first seen
- Nov 17, 2026, 05:57 AM
- analyzed
- Nov 17, 2026, 05:58 AM
Related advisories
- node-bs58.js@3.0.0 same package
- node-bs58.js@4.0.0 same package
- node-bs58.js@1.0.0 same package
- node-bs58.js@4.0.1 same package
- noya-baileys@6.1.1
- queenjusmy-baileys-v1@1.0.1
- vinzzknight@1.0.2
- @jiancodes/baileys@1.7.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.