{"id":"MAL-2026-5860","summary":"Malicious code in solana-js-client (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (855cf386497f33e21db48ae8b87c769fd777f52b585f3d8d5f276fd4c9d42628)\nPackage masquerades as a 'Drop-in replacement for @solana/web3.js' and lists its author as 'Solana Labs Maintainers \u003cmaintainers@solanalabs.com\u003e' to impersonate the legitimate Solana Labs publisher. The published bundles lib/index.cjs.js and lib/index.esm.js contain an injected payload at the tail of the file with no counterpart in src/. The payload requires child_process, shells out via curl/ping, and references a hardcoded plain-HTTP endpoint http://104.239.66.223:8899 (port 8899 is the Solana JSON-RPC port) along with Telegram Bot API sendMessage URLs carrying a chat_id controlled by the attacker. Because the package's primary API is the Connection class, any consumer wallet or dApp that imports this drop-in replacement can have its outbound RPC traffic, signed transactions, or seed material silently rerouted to the attacker-owned RPC and exfiltrated to the attacker's Telegram bot. Indicators: rogue RPC at 104.239.66.223:8899; exfiltration channel via api.telegram.org/bot\u003credacted\u003e/sendMessage.\n","modified":"2026-06-16T04:01:49.458294274Z","published":"2026-06-16T03:01:18Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-06-16T03:01:18Z","id":"IN-MAL-2026-006745","sha256":"855cf386497f33e21db48ae8b87c769fd777f52b585f3d8d5f276fd4c9d42628","import_time":"2026-06-16T03:49:20.175973838Z","source":"amazon-inspector","versions":["1.0.0"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/solana-js-client/v/1.0.0"}],"affected":[{"package":{"name":"solana-js-client","ecosystem":"npm","purl":"pkg:npm/solana-js-client"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/solana-js-client/MAL-2026-5860.json","indicators":{"package_integrity":[{"filename":"solana-js-client-1.0.0.tgz","hashes":{"sha512_sri":"sha512-6SqoWVHXlyMhM+XuQB4QXu7pNbl1c5GhyKYynaMAkXUKeGjzB6DNWtQZNOVA+jMxGh0euYtaPUM3+CxMDiJM/w==","sha1":"aff5447af241dae0fc951ec44621dd904574a4f0"}}],"evidence_files":[{"path":"lib/index.cjs.js","tlsh":"1c74a2097af260a2499330a61f2b6485a736d007350cd8757dce93742f5ebbc86b7fa4","sha256":"f5d62c50dac9bc82c50b7b5a3b230009127f1f4b04d766db109fcb7a80b86262"}]},"cwes":[{"name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}