Critical Malicious Code Vulnerability in @ifelsedeveloper/protocol-contracts-svm-idl Package
Summary
MAL-2025-191235: Malicious code in @ifelsedeveloper/protocol-contracts-svm-idl (npm). Affects @ifelsedeveloper/protocol-contracts-svm-idl versions 0.1.2 – 0.1.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 @ifelsedeveloper/protocol-contracts-svm-idl package is an npm library designed for protocol contracts in SVM IDL. It is used by developers to facilitate interactions with smart contracts. However, this package has been compromised, leading to severe security risks for any system utilizing it.
Vulnerability Detail
The vulnerability originates from a malicious code injection by the Sha1-Hulud: The Second Coming NPM worm. This worm is capable of stealing tokens and credentials, publishing them to GitHub, and propagating itself to other npm packages owned by the user. It can also establish persistence through GitHub actions and may destroy the user's home directory. Any system with this package installed is considered fully compromised, necessitating immediate action to secure sensitive information.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @ifelsedeveloper/protocol-contracts-svm-idl
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 direct workarounds available due to the severity of the compromise. The best course of action is to uninstall the package and monitor your system for any unusual activity.
Conclusion
The @ifelsedeveloper/protocol-contracts-svm-idl package has been compromised, posing significant security risks to any systems using it. Immediate uninstallation and key rotation are critical steps to mitigate the impact of this vulnerability. Regular monitoring and dependency management are essential to prevent future incidents.
See every vulnerability recorded for @ifelsedeveloper/protocol-contracts-svm-idl →
FAQ
Immediately uninstall the package and rotate any secrets or keys stored on the affected system.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
Failure to address this vulnerability may lead to unauthorized access to sensitive information, potential data loss, and further compromise of your system.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert, and ensure to keep your packages updated.
The malicious code was introduced by the Sha1-Hulud: The Second Coming NPM worm, which targets npm packages to steal credentials and propagate itself.