Malicious Code Injection in nasty_cow-biggestdev Package
Summary
MAL-2025-106186: Malicious code in nasty_cow-biggestdev (npm). Affected versions are not published. 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 nasty_cow-biggestdev package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages. The malicious nature of this package lies in its ability to modify critical files and republish itself under various names, thereby compromising the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability originates from the package being associated with the tea.xyz token reward campaign, which is known for deploying autopublish scripts. These scripts are designed to alter the package.json file by removing private flags, changing version numbers, and generating random package names. This behavior not only inflates developer reputation scores but also pollutes the npm registry with potentially harmful packages. The continuous republishing of these variants can lead to confusion and security risks for developers who may unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasty_cow-biggestdev
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 workaround, you can remove the nasty_cow-biggestdev package from your project by executing the command: npm uninstall nasty_cow-biggestdev. This will help prevent any potential exploitation while you assess the situation.
Conclusion
The nasty_cow-biggestdev package poses a significant risk due to its malicious behavior of modifying package files and republishing itself. It is crucial for developers to stay informed about such vulnerabilities and take proactive measures to secure their projects. Regularly updating packages and utilizing tools like Vulert can help maintain the integrity of your software.
See every vulnerability recorded for nasty_cow-biggestdev →
FAQ
It is an npm package that has been identified as part of a malicious campaign to flood the npm registry with derivative packages.
The vulnerability can lead to the modification of your package.json file and the introduction of potentially harmful packages into your project.
You should uninstall the package immediately and check for any unauthorized changes in your project files.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check your application for vulnerabilities without needing to sign up.