# CVE-2024-54134: @solana/web3.js modified package published to npm, containing malware that exfiltrates private key material

- Severity: High 8.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 47% of CVEs (2026-12-01)
- Published: 2024-12-04T15:20:54.084Z
- Modified: 2026-06-17T08:09:50.077Z
- Also known as: GHSA-jcxm-7wvp-g6p5
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- solana-labs solana-web3.js: >= 1.95.6, < 1.95.8
- @solana/web3.js (npm): from 1.95.6 before 1.95.8

## Every score

- GitHub_M: CVSS:4.0 8.3 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/solana-labs/solana-web3.js/security/advisories/GHSA-jcxm-7wvp-g6p5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-54134> (advisory)
- <https://github.com/advisories/GHSA-2mhj-xmf4-pr8m> (advisory)
- <https://github.com/solana-labs/solana-web3.js> (package)

## Sources

- CVE List: [CVE-2024-54134](https://www.cve.org/CVERecord?id=CVE-2024-54134), CVE Terms of Use, modified 2024-12-04
- GitHub Advisory Database: [GHSA-jcxm-7wvp-g6p5](https://github.com/advisories/GHSA-jcxm-7wvp-g6p5), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2024-54134](https://nvd.nist.gov/vuln/detail/CVE-2024-54134), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-54134 · Whole record: https://cve.day/CVE-2024-54134.json · Rebuilt by cve.day 2026-11-25T22:58:49.712Z
