# GHSA-7RMH-JH38-G275: Malicious code in base128-x58 (npm)

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

## Affected versions

- base128-x58 (npm): all versions
- base128-x58 (npm): 0.0.1
- base128-x58 (npm): 0.0.2

## Description

`base128-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 (bot8016635959, chat -1002664926517). Base58 `decode()` input is typically a wallet private key, so this steals keys from any application that uses it. Imported by `npm-bs58.js`.

---

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

## References

- https://github.com/ossf/malicious-packages/blob/0848fabb0af602072268e62c6e8bb18dfab85238/osv/malicious/npm/base128-x58/MAL-2026-20034.json
- https://wormsign.io/portfolio/base128-x58
- https://github.com/advisories/GHSA-7rmh-jh38-g275

Page: https://cve.now/GHSA-7RMH-JH38-G275

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