Critical Malicious Code Vulnerability in quickswap-sdk Package
Summary
MAL-2025-191409: Malicious code in quickswap-sdk (npm). Affects quickswap-sdk versions 3.0.44. 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 quickswap-sdk package is a JavaScript library designed for interacting with the QuickSwap decentralized exchange on the Ethereum blockchain. It provides developers with tools to facilitate trading, liquidity provision, and other functionalities associated with decentralized finance (DeFi). However, this package has been compromised, exposing users to severe security risks.
Vulnerability Detail
The vulnerability stems from a malicious code injection in the quickswap-sdk package, attributed to the Sha1-Hulud: The Second Coming NPM worm. This worm is capable of stealing sensitive tokens and credentials, publishing them to GitHub, and propagating itself to other NPM packages owned by the user. Additionally, it may establish persistence through GitHub actions and potentially destroy the user's home directory. Any system with this package installed is considered fully compromised, necessitating immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall quickswap-sdk
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 workaround, it is recommended to uninstall the quickswap-sdk package immediately using the command: npm uninstall quickswap-sdk. Ensure to monitor your system for any unusual activity and consider using alternative packages until a secure version is released.
Conclusion
The quickswap-sdk package has been compromised, leading to a critical vulnerability that poses significant risks to users. Immediate action is required to mitigate these risks, including uninstalling the package and rotating sensitive credentials. Monitoring for updates and using alternative packages is advisable until a secure version is available.
See every vulnerability recorded for quickswap-sdk →
FAQ
The quickswap-sdk is a JavaScript library for interacting with the QuickSwap decentralized exchange, facilitating various DeFi operations.
The package was compromised by the Sha1-Hulud: The Second Coming NPM worm, which injected malicious code into the package.
If you have the quickswap-sdk package installed, you should uninstall it immediately and rotate any sensitive credentials stored on your system.
Yes, you can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
The consequences include theft of sensitive tokens and credentials, unauthorized access to your GitHub repositories, and possible destruction of your home directory.