Malicious code in uniswap-sdk-v4 (npm)
The npm package 'uniswap-sdk-v4' version 1.0.0 is a malicious typosquat of the legitimate Uniswap SDK. It contains code that captures the private key supplied to its WalletClient constructor and sends it to a hardcoded third-party webhook, resulting in full wallet compromise upon instantiation. The destination webhook URL is fixed and not configurable by the user.
AI Analysis
Technical Summary
The 'uniswap-sdk-v4' npm package (version 1.0.0) masquerades as a legitimate Uniswap V4 SDK but contains malicious code in its WalletClient constructor. When a wallet is created using the package's API (createWalletClient, parseAccount, or WalletClient), the private key provided by the user is captured and exfiltrated via an HTTP POST request to a hardcoded external webhook URL (https://enjbyg3xk8l.x.pipedream.net/k). This results in the attacker gaining full control over the wallet. The package name is a deliberate typosquat designed to deceive users into installing it instead of the official SDK.
Potential Impact
Any user who installs and uses this package version 1.0.0 and creates a wallet client will have their private key stolen and sent to an attacker-controlled endpoint. This leads to complete compromise of the wallet and any assets controlled by it. The attack is automatic on first use of the wallet client API and does not require additional user interaction.
Mitigation Recommendations
Users should immediately avoid installing or using the 'uniswap-sdk-v4' package version 1.0.0. Remove any installations of this package from projects and systems. Use only the official Uniswap SDK packages from trusted sources. There is no patch or fix for this malicious package; remediation involves removing the package and rotating any exposed private keys. Verify package authenticity before installation to prevent typosquatting attacks.
Malicious code in uniswap-sdk-v4 (npm)
Description
The npm package 'uniswap-sdk-v4' version 1.0.0 is a malicious typosquat of the legitimate Uniswap SDK. It contains code that captures the private key supplied to its WalletClient constructor and sends it to a hardcoded third-party webhook, resulting in full wallet compromise upon instantiation. The destination webhook URL is fixed and not configurable by the user.
Affected software
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
Technical Analysis
The 'uniswap-sdk-v4' npm package (version 1.0.0) masquerades as a legitimate Uniswap V4 SDK but contains malicious code in its WalletClient constructor. When a wallet is created using the package's API (createWalletClient, parseAccount, or WalletClient), the private key provided by the user is captured and exfiltrated via an HTTP POST request to a hardcoded external webhook URL (https://enjbyg3xk8l.x.pipedream.net/k). This results in the attacker gaining full control over the wallet. The package name is a deliberate typosquat designed to deceive users into installing it instead of the official SDK.
Potential Impact
Any user who installs and uses this package version 1.0.0 and creates a wallet client will have their private key stolen and sent to an attacker-controlled endpoint. This leads to complete compromise of the wallet and any assets controlled by it. The attack is automatic on first use of the wallet client API and does not require additional user interaction.
Mitigation Recommendations
Users should immediately avoid installing or using the 'uniswap-sdk-v4' package version 1.0.0. Remove any installations of this package from projects and systems. Use only the official Uniswap SDK packages from trusted sources. There is no patch or fix for this malicious package; remediation involves removing the package and rotating any exposed private keys. Verify package authenticity before installation to prevent typosquatting attacks.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12490
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a735747bf8831d53915a0de
Added to database: 08/05/2026, 15:31:19 UTC
Last enriched: 08/05/2026, 17:39:42 UTC
Last updated: 09/08/2026, 22:37:35 UTC
Views: 21
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.