@baanx/solana-lib (npm) · Malicious Code
Affects @baanx/solana-libSource GCVE Database
Malicious package : remove @baanx/solana-lib and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:22 UTC
Malicious package
Published to npm · OSV MAL-2026-16300
What to do
Remove @baanx/solana-lib from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@baanx/solana-lib | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package @baanx/solana-lib contains malicious code that executes automatically upon installation. It collects the installer's username, hostname, and current working directory, then sends this information via a DNS lookup to a suspicious external domain. This behavior is obfuscated and inconsistent with legitimate Solana library functionality. Installation of this package can lead to full system compromise, requiring immediate secret and key rotation and package removal.