solana-web3-fork (npm) · Malicious Code
Affects solana-web3-forkSource GCVE Database
Malicious package : remove solana-web3-fork and rotate any secrets on hosts that installed it.
Data as of 8 Sep 2026, 14:08 UTC
Malicious package
Published to npm · OSV MAL-2026-10900
What to do
Remove solana-web3-fork 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 |
|---|---|---|
npmsolana-web3-forkpkg:npm/solana-web3-forkOther threats | 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 solana-web3-fork npm package is a fork or imitation of the popular @solana/web3.js library. Its bundled files contain suspicious patterns such as usage of child_process, network fetch calls, and shell utilities like curl and ping within minified bundles. While these patterns are concerning and unusual for a typical Solana SDK, no explicit malicious behaviors such as hardcoded command-and-control endpoints or credential theft mechanisms have been confirmed. Manual review is recommended before use due to the potential risk associated with name collision and suspicious code patterns.