Skip to main content
MalwarePublished Updated

@solana-labs/web3.js (npm) · Malicious Code

Affects @solana-labs/web3.jsSource GCVE Database

0

Malicious package : remove @solana-labs/web3.js and rotate any secrets on hosts that installed it.

Data as of 8 Sep 2026, 06:38 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-5525

What to do

Remove @solana-labs/web3.js 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

ProductAffectedFixed in
npm@solana-labs/web3.jsAffected
  • 1.0.0 – 1.98.112
17 affected builds
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 '@solana-labs/web3.js' is a malicious impersonation of the legitimate '@solana/web3.js' package. During installation, it runs a postinstall script that performs sandbox evasion checks and, if not detected, steals sensitive credentials and crypto keys from the victim's environment. It exfiltrates this data to an attacker-controlled Telegram bot and establishes a reverse-shell backdoor for remote command execution. Persistence is maintained via a cron job, and a hardcoded Solana wallet address is used for theft.

References

Community reviews

Loading reviews…