Critical Malicious Code Vulnerability in uniswap-test-sdk-core Package
Summary
MAL-2025-191443: Malicious code in uniswap-test-sdk-core (npm). Affects uniswap-test-sdk-core versions 4.0.8. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The uniswap-test-sdk-core package is a library designed for testing Uniswap smart contracts in the Ethereum ecosystem. It provides developers with tools to simulate and validate interactions with Uniswap's decentralized exchange. However, this package has been compromised, making it a significant security risk for any application that relies on it.
Vulnerability Detail
The vulnerability originates from a malicious payload introduced by the Sha1-Hulud: The Second Coming NPM worm. This malicious code is designed to steal tokens and credentials from the user's environment and publish them to GitHub. Additionally, it can propagate itself to other NPM packages owned by the user and establish persistence through GitHub actions. The worm poses a severe risk as it may also delete the user's home directory, leading to potential data loss.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall uniswap-test-sdk-core
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary measure, avoid using the uniswap-test-sdk-core package until it has been verified as safe. Additionally, consider using alternative libraries for testing Uniswap smart contracts until the issue is resolved.
Conclusion
The uniswap-test-sdk-core package has been compromised by a malicious worm that poses serious security risks. It is essential to remove the package, rotate any sensitive information, and monitor your applications for vulnerabilities using tools like Vulert. Stay vigilant and proactive in securing your development environment.
See every vulnerability recorded for uniswap-test-sdk-core →
FAQ
Immediately remove the package and rotate any secrets or keys stored on the affected machine.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.
The risks include theft of tokens and credentials, potential data loss, and unauthorized access to your systems.
Regularly audit your dependencies, use tools like Vulert for real-time monitoring, and stay updated on security advisories.
Only use it again after confirming that it has been patched and verified as safe.