Critical Malicious Code Vulnerability in tvi-cli Package
Summary
MAL-2025-47357: Malicious code in tvi-cli (npm). Affects tvi-cli versions 0.1.5. 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 tvi-cli package is a command-line interface tool designed for various tasks within the Node.js ecosystem. It is commonly used for automation and scripting purposes. However, this package has been compromised, leading to the introduction of malicious code that poses significant security risks to users and their systems.
Vulnerability Detail
The vulnerability stems from the compromise of the tvi-cli package, which has been infected by the Shai-Hulud NPM worm. This malicious code is designed to steal tokens and credentials from the user's system and publish them to GitHub. Furthermore, it propagates itself to other NPM packages owned by the user, potentially leading to widespread compromise of multiple projects. Users who have this package installed should consider their systems fully compromised, as the malicious payload can execute without user intervention.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tvi-cli
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, users should rotate all secrets and keys stored on their systems, as the malicious code may have accessed sensitive information. Additionally, users should consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The tvi-cli package has been compromised, leading to the introduction of malicious code that can steal sensitive information and propagate itself to other packages. Users must take immediate action to uninstall the package and secure their systems. Utilizing tools like Vulert can help in monitoring and preventing future vulnerabilities.
See every vulnerability recorded for tvi-cli →
FAQ
tvi-cli is a command-line interface tool used in the Node.js ecosystem for automation and scripting tasks.
The package was infected by the Shai-Hulud NPM worm, which introduced malicious code designed to steal sensitive information.
You should uninstall the tvi-cli package immediately and rotate any secrets or keys 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.
Regularly monitor your dependencies using tools like Vulert, which can alert you in real-time for open-source vulnerabilities based on your package-lock.json.