{"answers":{"affected":"2 open source packages ship an affected version, including @solana/web3.js.","exploited":"There is no known exploitation of CVE-2024-54134 in the wild and no public exploit code.","fix":"Upgrade @solana/web3.js to 1.95.8 or later.","what":"CVE-2024-54134 is a high-severity vulnerability in solana-labs solana-web3.js, published on 4 Dec 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-54134 and fix it if it is affected.\n\nWhat it is: CVE-2024-54134 is a high-severity vulnerability in solana-labs solana-web3.js, published on 4 Dec 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-54134 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @solana/web3.js (npm): affected from 1.95.6; fixed in 1.95.8\n- @solana/web3.js (npm): affected from 1.95.6; fixed in 1.95.8\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-54134/ (Markdown: https://insights.sbomify.com/CVE-2024-54134/index.md)","id":"CVE-2024-54134","markdown":"https://insights.sbomify.com/CVE-2024-54134/index.md","name":"CVE-2024-54134","record":{"aliases":["GHSA-jcxm-7wvp-g6p5"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Solana JavaScript library","requires_auth":"none","summary":"Compromised npm account allowed attackers to publish malicious versions of the Solana web3.js library, stealing private keys from affected applications.","user_interaction":"required","vuln_class":"supply_chain"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.3,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"A publish-access account was compromised for `@solana/web3.js`, a JavaScript library that is commonly used by Solana dapps. This allowed an attacker to publish unauthorized and malicious packages that were modified, allowing them to steal private key material and drain funds from dapps, like bots, that handle private keys directly. This issue should not affect non-custodial wallets, as they generally do not expose private keys during transactions. This is not an issue with the Solana protocol itself, but with a specific JavaScript client library and only appears to affect projects that directly handle private keys and that updated within the window of 3:20pm UTC and 8:25pm UTC on Tuesday, December 3, 2024. These two unauthorized versions (1.95.6 and 1.95.7) were caught within hours and have since been unpublished. All Solana app developers should upgrade to version 1.95.8. Developers that suspect they might be compromised should rotate any suspect authority keys, including multisigs, program authorities, server keypairs, and so on.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"@solana/web3.js modified package published to npm, containing malware that exfiltrates private key material","id":"CVE-2024-54134","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"supply_chain","year":"2024"},"n_packages":2,"n_references":1,"next":{"headline":"Untrusted Deserialization in ClipBucket-v5 Version 2.0 to 5.5.1 Revision 199","id":"CVE-2024-54135"},"packages":[{"ecosystem":"npm","fixed":["1.95.8"],"introduced":["1.95.6"],"last_affected":[],"package":"@solana/web3.js","purl":null,"source":"GHSA-jcxm-7wvp-g6p5"},{"ecosystem":"npm","fixed":["1.95.8"],"introduced":["1.95.6"],"last_affected":[],"package":"@solana/web3.js","purl":"pkg:npm/%40solana/web3.js","source":"GHSA-jcxm-7wvp-g6p5"}],"prev":{"headline":"Possible Content Security Policy bypass in Action Dispatch","id":"CVE-2024-54133"},"products":["solana-web3.js"],"published":"2024-12-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-12-04","vendors":["solana-labs"]},"summary":"Compromised npm account allowed attackers to publish malicious versions of the Solana web3.js library, stealing private keys from affected applications.","url":"https://insights.sbomify.com/CVE-2024-54134/"}