Malicious Code Injection in spare_rooster_dumbs Package: A Threat to npm Ecosystem
Summary
MAL-2025-108964: Malicious code in spare_rooster_dumbs (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 spare_rooster_dumbs package is part of a series of malicious packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by generating and publishing numerous derivative packages with randomized names. This behavior not only inflates developer reputation scores but also compromises the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in the spare_rooster_dumbs package originates from its malicious intent to modify the package.json file. It removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. This behavior can pollute the npm registry, making it difficult for developers to find legitimate packages and potentially introducing security risks into their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall spare_rooster_dumbs
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 measure, you can avoid using the spare_rooster_dumbs package and any packages that depend on it. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The spare_rooster_dumbs package poses a significant threat to the npm ecosystem due to its malicious behavior of modifying package metadata and republishing variants. It is crucial for developers to remove this package from their projects and utilize tools like Vulert to monitor for vulnerabilities in real-time.
See every vulnerability recorded for spare_rooster_dumbs →
FAQ
The spare_rooster_dumbs package is a malicious npm package that is part of a campaign to inflate developer reputation scores through the creation of numerous derivative packages.
This vulnerability can lead to the pollution of the npm registry, making it difficult to find legitimate packages and potentially introducing security risks into your application.
You should uninstall the spare_rooster_dumbs package immediately using 'npm uninstall spare_rooster_dumbs' and check for any dependencies that may be affected.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.