Skip to main content

Malicious code in @solana-labs/web3js (npm)

0
Medium
Published: 06/15/2026 (06/15/2026, 17:15:14 UTC)
Source: GCVE Database
Product: @solana-labs/web3js

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

npmghsa
@solana-labs/web3js
Affected versions
=1.0.8=1.0.7=1.0.6=1.0.0=1.0.10=1.0.5=1.0.2=1.0.3=1.0.4=1.98.103=1.98.105=1.98.107=1.98.108=1.98.109=1.98.110=1.98.111=1.98.112

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

AILast updated: 09/08/2026, 04:37:53 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses