Malicious Code Injection in blind_cockroach_0xrequest Package
Summary
MAL-2025-100008: Malicious code in blind_cockroach_0xrequest (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 blind_cockroach_0xrequest package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises its integrity and the security of applications relying on it.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the blind_cockroach_0xrequest package. This payload modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants that pollute the npm registry. The ramifications include potential exposure of sensitive data, unauthorized access to systems, and a compromised npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall blind_cockroach_0xrequest
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 prevent the use of the blind_cockroach_0xrequest package by removing it from your package.json file and ensuring that your application does not reference it. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The blind_cockroach_0xrequest package has been identified as containing malicious code that poses a significant risk to applications using it. Immediate action is required to remove this package and mitigate any potential impacts. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.
See every vulnerability recorded for blind_cockroach_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code modifies your package.json, potentially exposing sensitive data and compromising the integrity of your application.
You should uninstall the blind_cockroach_0xrequest package immediately and check for any dependencies that may be affected.
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 if your application is affected without requiring any signup.