# GHSA-QX2J-6RJ5-6MQX: Malicious code in base64-x58 (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-11-17
- Modified: 2026-11-17

## Affected versions

- base64-x58 (npm): all versions
- base64-x58 (npm): 0.0.1
- base64-x58 (npm): 0.0.5

## Description

`base64-x58` is a copy of the `base-x` encoding library (package.json still points at the cryptocoinjs/base-x repository) with one obfuscated statement injected at the start of `decode()` (`src/cjs/index.cjs`, `src/esm/index.js`). Every call to `decode()` POSTs the input string to a hardcoded Telegram bot (bot8177895028, chat 7631491367). Base58 `decode()` input is typically a wallet private key. The same bot is hardcoded in `node-bs58.js` 4.0.2-4.0.6; imported by `node-bs58.js` 6.0.0 and `npm-bs58.js` 6.0.0.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/0848fabb0af602072268e62c6e8bb18dfab85238/osv/malicious/npm/base64-x58/MAL-2026-20036.json))

## References

- https://github.com/ossf/malicious-packages/blob/0848fabb0af602072268e62c6e8bb18dfab85238/osv/malicious/npm/base64-x58/MAL-2026-20036.json
- https://wormsign.io/portfolio/base64-x58
- https://github.com/advisories/GHSA-qx2j-6rj5-6mqx

Page: https://cve.now/GHSA-QX2J-6RJ5-6MQX

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
