npm · Malicious package advisory
Malwarebase60-58x
GHSA-pr75-5v46-hgrg
Malicious code in base60-58x (npm)
Details
**Severity:** Critical **Affected versions:** `> 0` `base60-58x` 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 (bot7837266935, chat 7974622428). Base58 `decode()` input is typically a wallet private key. Same publisher, bot and chat as `ethers-wallet-latest`; imported by `bs58-60`. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/0848fabb0af602072268e62c6e8bb18dfab85238/osv/malicious/npm/base60-58x/MAL-2026-20035.json)) **References:** - https://github.com/ossf/malicious-packages/blob/0848fabb0af602072268e62c6e8bb18dfab85238/osv/malicious/npm/base60-58x/MAL-2026-20035.json - https://wormsign.io/portfolio/base60-58x - https://github.com/advisories/GHSA-pr75-5v46-hgrg
Compromised versions (1)
- > 0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.