{"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","aliases":["GHSA-w6xx-m24v-5674"],"modified":"2026-09-01T11:31:01.661130054Z","published":"2026-06-16T03:01:18Z","database_specific":{"malicious-packages-origins":[{"sha256":"855cf386497f33e21db48ae8b87c769fd777f52b585f3d8d5f276fd4c9d42628","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-006745","import_time":"2026-06-16T03:49:20.175973838Z","modified_time":"2026-06-16T03:01:18Z"},{"id":"RLMA-2026-05616","import_time":"2026-07-20T13:14:51.265457828Z","modified_time":"2026-07-20T10:59:10Z","sha256":"8f10d8377c8f930a42c2ee233bf542b8b6e4eecf4c80763d3155bb8c214c71cb","source":"reversing-labs","versions":["1.0.0"]},{"source":"reversing-labs","id":"RLUA-2026-06497","import_time":"2026-09-01T11:18:24.707601188Z","modified_time":"2026-08-24T17:11:27Z","sha256":"6fbcc6c5e1265acef5047058294565b8bd60c02cceabf088d1930b561c5f12b9"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/solana-js-client/v/1.0.0"},{"type":"WEB","url":"https://research.jfrog.com/post/solana-fakefix"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-w6xx-m24v-5674"}],"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","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"tlsh":"1c74a2097af260a2499330a61f2b6485a736d007350cd8757dce93742f5ebbc86b7fa4","path":"lib/index.cjs.js","sha256":"f5d62c50dac9bc82c50b7b5a3b230009127f1f4b04d766db109fcb7a80b86262"}],"package_integrity":[{"filename":"solana-js-client-1.0.0.tgz","hashes":{"sha1":"aff5447af241dae0fc951ec44621dd904574a4f0","sha512_sri":"sha512-6SqoWVHXlyMhM+XuQB4QXu7pNbl1c5GhyKYynaMAkXUKeGjzB6DNWtQZNOVA+jMxGh0euYtaPUM3+CxMDiJM/w=="}}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}