Critical Malicious Code Vulnerability in quickswap-token-lists Package
Summary
MAL-2025-191411: Malicious code in quickswap-token-lists (npm). Affects quickswap-token-lists versions 1.0.3. 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-token-lists package is an npm library designed for managing token lists in the QuickSwap decentralized exchange ecosystem. It allows users to easily access and utilize various tokens on the platform. However, this package has been compromised, leading to significant security risks for users who have it installed.
Vulnerability Detail
This vulnerability originates from a malicious payload introduced by the Sha1-Hulud: The Second Coming NPM worm. It is designed to steal tokens and credentials from affected systems and publish them to GitHub. The worm can propagate itself to other npm packages owned by the user and establish persistence through GitHub actions. Additionally, it poses a risk of destroying the user's home directory, making it a severe threat to system integrity and user data.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall quickswap-token-lists
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
There are no effective workarounds for this vulnerability other than removing the package and ensuring that all sensitive information is secured. Users should also monitor their systems for any signs of compromise.
Conclusion
The quickswap-token-lists package has been identified as containing malicious code that poses significant security risks to users. Immediate action is required to remove the package and secure any compromised credentials. Users are encouraged to monitor their systems and consider using tools like Vulert for ongoing vulnerability management.
See every vulnerability recorded for quickswap-token-lists →
FAQ
The quickswap-token-lists package is an npm library used for managing token lists in the QuickSwap decentralized exchange.
The package was compromised by the Sha1-Hulud: The Second Coming NPM worm, which introduced malicious code to steal user credentials.
You should immediately remove the quickswap-token-lists package and rotate any secrets or keys stored on your system.
Yes, you can use QuickSwap without the quickswap-token-lists package, but you may need to manage tokens manually or find alternative libraries.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. You can check your application for vulnerabilities using the Vulert playground at Vulert Scanner.