Skip to main content
MalwarePublished

wagmi-react (npm) · Malicious Code

Affects wagmi-reactSource GCVE Database

0

Malicious package : remove wagmi-react and rotate any secrets on hosts that installed it.

Data as of 5 Aug 2026, 17:20 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-12498

What to do

Remove wagmi-react from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmwagmi-reactAffected
  • =1.0.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package 'wagmi-react' version 1.0.0 is a malicious package impersonating the legitimate wagmi/viem wallet API. It exports functions and a constructor that mimic the real API, but when a WalletClient is instantiated with a private key, it silently sends the private key along with the host's OS hostname and username to an attacker-controlled endpoint. This enables attackers to fully compromise wallets of developers who mistakenly use this malicious package instead of the legitimate one.

References

Community reviews

Loading reviews…