# @solana/web3.js npm package backdoored to steal private keys · pwn.watch > A publish-access account for @solana/web3.js was compromised. Malicious versions 1.95.6 and 1.95.7, live on npm from 15:20 to 20:25 UTC on 2024-12-03, exfiltrated private key material from apps and bots that handle keys directly. Non-custodial wallets were generally not affected. Fixed in 1.95.8. Page: https://pwn.watch/i/solana-web3-js-npm-compromise-cve-2024-54134 · generated 2026-10-22T22:54:30.229Z ## Status - Severity: high · status: closed · patch: patched - Product: @solana/web3.js (npm) - Started: 2024-12-03 · closed: 2024-12-04 - CVEs: CVE-2024-54134 - Affected: 1.95.6; 1.95.7 - Fixed in: 1.95.8 ## Follow this incident - RSS (one item per update): https://pwn.watch/i/solana-web3-js-npm-compromise-cve-2024-54134/feed.xml - JSON Feed: https://pwn.watch/i/solana-web3-js-npm-compromise-cve-2024-54134/feed.json - Full data (timeline, sources, posts, agentBrief): https://pwn.watch/i/solana-web3-js-npm-compromise-cve-2024-54134.json - This file: https://pwn.watch/i/solana-web3-js-npm-compromise-cve-2024-54134/llms.txt ## Updates (newest first) - 2024-12-04: GitHub advisory GHSA-jcxm-7wvp-g6p5 published; upgrade to 1.95.8 (https://github.com/solana-labs/solana-web3.js/security/advisories/GHSA-jcxm-7wvp-g6p5) - 2024-12-03: Malicious 1.95.6 and 1.95.7 published to npm (15:20-20:25 UTC), then unpublished (https://github.com/solana-labs/solana-web3.js/security/advisories/GHSA-jcxm-7wvp-g6p5) ## Fix brief # Security brief: @solana/web3.js npm package backdoored to steal private keys Source: https://pwn.watch/i/solana-web3-js-npm-compromise-cve-2024-54134 · status: closed (closed Dec 4, 2024) · severity: high · updated Dec 4, 2024 ## Patch status **PATCHED: fixed releases exist. Upgrade to a fixed version.** ## What it is A publish-access account for @solana/web3.js was compromised. Malicious versions 1.95.6 and 1.95.7, live on npm from 15:20 to 20:25 UTC on 2024-12-03, exfiltrated private key material from apps and bots that handle keys directly. Non-custodial wallets were generally not affected. Fixed in 1.95.8. Severity detail: CVSS 8.3 (v4, GitHub); malicious npm release - Product: @solana/web3.js (npm) - CVE / advisory ids: CVE-2024-54134 ## Affected versions - 1.95.6 - 1.95.7 ## Check whether you're affected No generic command applies (the product is a hosted service, appliance or desktop app). Check the installed version in its admin UI / About screen and compare with the versions above. ## Fix Upgrade to one of these fixed versions (or later on the same branch): - 1.95.8 After upgrading, re-run the checks above and redeploy/restart the affected services. ## Secrets to rotate This incident involves possible credential exposure. Rotate any credentials (API keys, tokens, env vars, SSH keys) that were present on affected systems or in affected builds while vulnerable/compromised versions were installed, and review access logs. ## Latest updates - Dec 4, 2024: GitHub advisory GHSA-jcxm-7wvp-g6p5 published; upgrade to 1.95.8 - Dec 3, 2024: Malicious 1.95.6 and 1.95.7 published to npm (15:20-20:25 UTC), then unpublished ## Advisories - [GHSA-jcxm-7wvp-g6p5: modified package published to npm, containing malware that exfiltrates private key material](https://github.com/solana-labs/solana-web3.js/security/advisories/GHSA-jcxm-7wvp-g6p5) (Solana (GitHub)) - [NVD: CVE-2024-54134](https://nvd.nist.gov/vuln/detail/CVE-2024-54134) (NVD) ## Write-ups & news - [Supply chain attack detected in Solana's web3.js library](https://socket.dev/blog/supply-chain-attack-solana-web3-js-library) --- Machine-readable: https://pwn.watch/i/solana-web3-js-npm-compromise-cve-2024-54134.json · all incidents: https://pwn.watch/incidents.json. Verify against the vendor advisory before changing production systems.