Malicious code in @solana-labs/web3js (npm)
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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The '@solana-labs/web3js' npm package is a suspicious lookalike of the official '@solana/web3.js' Solana client SDK. Its minified bundles include references to child_process and network request strings, which are consistent with legitimate JSON-RPC client functionality but could also be used for malicious purposes. No explicit malicious code such as top-level network beacons or hardcoded attacker endpoints has been identified. The primary concern is the risk of developer confusion due to the similar package name and scope, which could lead to unintended installation of a potentially malicious package. Further manual analysis is required to confirm the nature of the network calls and the legitimacy of the package publisher.
Potential Impact
If developers mistakenly install '@solana-labs/web3js' instead of the official '@solana/web3.js', there is a risk of executing untrusted code that may perform unauthorized network operations. Although no confirmed malicious behavior has been detected, the presence of child_process and network-related code in the bundle raises suspicion. The impact is primarily related to supply chain risk and potential code execution or data exfiltration if the package is malicious.
Mitigation Recommendations
No official patch or remediation is currently available. Developers should verify the package scope and name carefully before installation to avoid confusion with the official '@solana/web3.js' package. It is recommended to only install packages from verified publishers and to conduct manual code reviews or use trusted sources for critical dependencies. Monitor vendor advisories for updates regarding this package and await further analysis results.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5788
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-pqhf-q5g8-6jpm"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f3e1acd9273b49e665c3
Added to database: 09/01/2026, 15:48:49 UTC
Last enriched: 09/08/2026, 04:37:53 UTC
Last updated: 10/04/2026, 09:10:40 UTC
Views: 86
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.