Skip to main content

Malicious code in wagmi-react (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 12:58:28 UTC)
Source: GCVE Database
Product: wagmi-react

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.

Affected software

npmghsa
wagmi-react
Affected versions
=1.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/05/2026, 17:20:04 UTC

Technical Analysis

The malicious 'wagmi-react' npm package version 1.0.0 impersonates the wagmi/viem wallet API by exporting createWalletClient, parseAccount, and a WalletClient constructor. When a caller creates a WalletClient instance with a private key, the package serializes the private key along with the OS hostname and username, then sends this data via a POST request to a hardcoded attacker-controlled Pipedream webhook URL. This behavior allows attackers to capture wallet private keys from developers who accidentally install this malicious package, leading to full wallet compromise. The package name and API surface are designed to mimic the legitimate wagmi/viem ecosystem to trick developers.

Potential Impact

Any developer using this malicious package and passing a wallet private key to the WalletClient constructor will have their private key exfiltrated to an attacker-controlled endpoint. This results in full compromise of the affected wallet, potentially leading to theft of funds or unauthorized transactions. The compromise is silent and occurs without user notification.

Mitigation Recommendations

No official patch or remediation is currently available. Users should immediately verify that they are using the legitimate wagmi/viem packages from trusted sources and remove any instances of the malicious 'wagmi-react' package version 1.0.0. Avoid installing packages with names that closely mimic trusted libraries. Rotate any private keys that may have been exposed through this package. Monitor for suspicious wallet activity and consider using hardware wallets or other secure key management solutions.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-12498
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a735744bf8831d539159c8b

Added to database: 08/05/2026, 15:31:16 UTC

Last enriched: 08/05/2026, 17:20:04 UTC

Last updated: 09/07/2026, 22:03:47 UTC

Views: 16

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses