High

Modified package published to npm, containing malware that exfiltrates private key material

  • Disclosed: 04.12.2024
  • Updated: 11.10.2026 10:22

Earlier today, 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.

We are asking all Solana app developers to upgrade to version 1.95.8. Developers pinned to latest should also upgrade to 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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @solana/web3.js >= 1.95.6, < 1.95.8 1.95.8

References

CVSS score -
CVSS 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
Weakness (CWE)
CWE-200
Platform
npm
Package
@solana/web3.js
Disclosed
04.12.2024
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-jcxm-7wvp-g6p5 - CC BY 4.0

Vulnerability history: @solana/web3.js

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
04.2024 12.2024
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2

Disclosures per year

  1. 2024: 2
  2. 2025: 0
  3. 2026: 0
  1. Modified package published to npm, containing malware that exfiltrates private key material this entry
    High CVE-2024-54134 >= 1.95.6, < 1.95.8 1.95.8
  2. High · 7.5 CVE-2024-30253 >= 1.91.0, < 1.91.3, >= 1.90, < 1.90.2, >= 1.89, < 1.89.2, >= 1.88.0, < 1.88.1, >= 1.87.0, < 1.87.7, >= 1.86.0, < 1.86.1, >= 1.85.0, < 1.85.1, >= 1.84.0, < 1.84.1, >= 1.83.0, < 1.83.1, >= 1.82.0, < 1.82.1, >= 1.81.0, < 1.81.1, >= 1.80.0, < 1.80.1, >= 1.79.0, < 1.79.1, >= 1.78, < 1.78.8, >= 1.77, < 1.77.4, >= 1.76.0, < 1.76.1, >= 1.75.0, < 1.75.1, >= 1.74.0, < 1.74.1, >= 1.73.0, < 1.73.5, >= 1.72.0, < 1.72.1, >= 1.71.0, < 1.71.1, >= 1.70.0, < 1.70.4, >= 1.69.0, < 1.69.1, >= 1.68.0, < 1.68.2, >= 1.67.0, < 1.67.3, >= 1.66.0, < 1.66.6, >= 1.65.0, < 1.65.1, >= 1.64.0, < 1.64.1, >= 1.63.0, < 1.63.2, >= 1.62.0, < 1.62.2, >= 1.61.0, < 1.61.2, >= 1.60.0, < 1.60.1, >= 1.59.0, < 1.59.2, >= 1.58.0, < 1.58.1, >= 1.57.0, < 1.57.1, >= 1.56.0, < 1.56.3, >= 1.55.0, < 1.55.1, >= 1.54.0, < 1.54.2, >= 1.53.0, < 1.53.1, >= 1.52.0, < 1.52.1, >= 1.51.0, < 1.51.1, >= 1.50.0, < 1.50.2, >= 1.49.0, < 1.49.1, >= 1.48.0, < 1.48.1, >= 1.47.0, < 1.47.5, >= 1.46.0, < 1.46.1, >= 1.45.0, < 1.45.1, >= 1.44.0, < 1.44.4, >= 1.43.0, < 1.43.7, >= 1.42.0, < 1.42.1, >= 1.41.0, < 1.41.11, >= 1.40.0, < 1.40.2, >= 1.39.0, < 1.39.2, >= 1.38.0, < 1.38.1, >= 1.37.0, < 1.37.3, >= 1.36.0, < 1.36.1, >= 1.35.0, < 1.35.2, >= 1.34.0, < 1.34.1, >= 1.33.0, < 1.33.1, >= 1.32.0, < 1.32.2, >= 1.31.0, < 1.31.1, >= 1.30.0, < 1.30.3, >= 1.29.0, < 1.29.4, >= 1.28.0, < 1.28.1, >= 1.27.0, < 1.27.1, >= 1.26.0, < 1.26.1, >= 1.25.0, < 1.25.1, >= 1.24.0, < 1.24.3, >= 1.23.0, < 1.23.1, >= 1.22.0, < 1.22.1, >= 1.21.0, < 1.21.1, >= 1.20.0, < 1.20.3, >= 1.19.0, < 1.19.1, >= 1.18.0, < 1.18.1, >= 1.17.0, < 1.17.1, >= 1.16.0, < 1.16.2, >= 1.15.0, < 1.15.1, >= 1.14.0, < 1.14.1, >= 1.13.0, < 1.13.1, >= 1.12.0, < 1.12.1, >= 1.11.0, < 1.11.1, >= 1.10.0, < 1.10.2, >= 1.9.0, < 1.9.2, >= 1.8.0, < 1.8.1, >= 1.7.0, < 1.7.2, >= 1.6.0, < 1.6.1, >= 1.5.0, < 1.5.1, >= 1.4.0, < 1.4.1, >= 1.3.0, < 1.3.1, >= 1.2.0, < 1.2.8, >= 1.1.0, < 1.1.2, < 1.0.1 1.91.3, 1.90.2, 1.89.2, 1.88.1, 1.87.7, 1.86.1, 1.85.1, 1.84.1, 1.83.1, 1.82.1, 1.81.1, 1.80.1, 1.79.1, 1.78.8, 1.77.4, 1.76.1, 1.75.1, 1.74.1, 1.73.5, 1.72.1, 1.71.1, 1.70.4, 1.69.1, 1.68.2, 1.67.3, 1.66.6, 1.65.1, 1.64.1, 1.63.2, 1.62.2, 1.61.2, 1.60.1, 1.59.2, 1.58.1, 1.57.1, 1.56.3, 1.55.1, 1.54.2, 1.53.1, 1.52.1, 1.51.1, 1.50.2, 1.49.1, 1.48.1, 1.47.5, 1.46.1, 1.45.1, 1.44.4, 1.43.7, 1.42.1, 1.41.11, 1.40.2, 1.39.2, 1.38.1, 1.37.3, 1.36.1, 1.35.2, 1.34.1, 1.33.1, 1.32.2, 1.31.1, 1.30.3, 1.29.4, 1.28.1, 1.27.1, 1.26.1, 1.25.1, 1.24.3, 1.23.1, 1.22.1, 1.21.1, 1.20.3, 1.19.1, 1.18.1, 1.17.1, 1.16.2, 1.15.1, 1.14.1, 1.13.1, 1.12.1, 1.11.1, 1.10.2, 1.9.2, 1.8.1, 1.7.2, 1.6.1, 1.5.1, 1.4.1, 1.3.1, 1.2.8, 1.1.2, 1.0.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.