P2 · HighMalware
Malicious code in node-bs58.js (npm)
- GHSA-qwx4-3p78-j896
Description
`node-bs58.js` wraps `bs58` and sends every string passed to `decode()` (a wallet private key in practice) to a hardcoded Telegram bot (`index.js`). Bots by version: bot7764117154 (1.0.0, 3.0.0 obfuscated, 4.0.0), bot7255542329 (4.0.1), bot8177895028 (4.0.2-4.0.4, 4.0.6), bot8025408459 (4.0.5). 6.0.0 replaces the wrapper with the malicious `base64-x58`, which sends to bot8177895028. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/0848fabb0af602072268e62c6e8bb18dfab85238/osv/malicious/npm/node-bs58.js/MAL-2026-20039.json))
Text from the GitHub Advisory record.
Affected
node-bs58.jsnpm
- all versions, no fix listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.