Vulnerability library
Security checkJanuary 22, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpm@solana/web3.js

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the @solana/web3.js package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 1.95.6, < 1.95.8
  • Patched version(s): 1.95.8

References

Could your website be exposed too?

SmartScanner can check your website for Modified package published to npm, containing malware that exfiltrates private key material and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 22, 2026