Malicious code in solana-js-client (npm)
Description
The solana-js-client npm package version 1.0.0 is a malicious drop-in replacement for the legitimate @solana/web3.js library. It impersonates the official Solana Labs maintainer and injects a hidden payload that reroutes RPC traffic and exfiltrates sensitive data to an attacker-controlled server and Telegram bot. This can compromise wallets or dApps that import this package by leaking signed transactions and seed material.
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-js-client package (version 1.0.0) masquerades as a legitimate Solana Labs library but contains injected malicious code in its published bundles lib/index.cjs.js and lib/index.esm.js. The payload, absent from source files, uses Node.js child_process to execute shell commands like curl and ping, communicating with a hardcoded HTTP endpoint at 104.239.66.223:8899 (the Solana JSON-RPC port). It also sends exfiltrated data to an attacker-controlled Telegram bot via the Telegram Bot API. The primary API, the Connection class, enables interception and rerouting of outbound RPC traffic, signed transactions, and seed material, leading to data theft.
Potential Impact
Any wallet or decentralized application that imports this malicious solana-js-client package risks having its RPC traffic and sensitive cryptographic material silently intercepted and exfiltrated to an attacker. This compromises the confidentiality and integrity of blockchain transactions and wallet secrets, potentially leading to theft of funds or unauthorized transaction signing.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid using the solana-js-client package version 1.0.0 and instead rely on the legitimate @solana/web3.js package from verified sources. Verify package authenticity by checking publisher information and package integrity before installation. Monitor for updates from the official Solana Labs or trusted security advisories for any forthcoming fixes or warnings.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5860
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-w6xx-m24v-5674"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f317acd9273b49e493de
Added to database: 09/01/2026, 15:45:27 UTC
Last enriched: 09/08/2026, 14:08:08 UTC
Last updated: 10/04/2026, 05:57:54 UTC
Views: 39
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.
External Links
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.