Skip to main content
MalwarePublished Updated

@solana-labs/web3js (npm) · Malicious Code

Affects @solana-labs/web3jsSource GCVE Database

0

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

Data as of 8 Sep 2026, 04:37 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-5788

What to do

Remove @solana-labs/web3js 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/web3jsAffected
  • 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 package '@solana-labs/web3js' on npm closely mimics the official '@solana/web3.js' library but under a different scope and with a slightly altered name. The package contains large minified bundles referencing child_process and network-related strings such as fetch, POST, curl, and ping. However, no direct evidence of malicious network beacons, hardcoded attacker endpoints, or lifecycle scripts has been confirmed. The main risk arises from potential confusion leading developers to install this lookalike package instead of the legitimate one. Further human review is needed to verify if '@solana-labs' is an official publisher and to analyze the network calls for any hidden command and control behavior.

References

Community reviews

Loading reviews…