Malicious Code Injection in Cooperative Cockroach 0xRequest Package
Summary
MAL-2025-100998: Malicious code in cooperative_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 cooperative_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 interactions within the tea protocol, but it has been compromised to include malicious scripts that manipulate its functionality. The package is intended for developers looking to integrate with the tea protocol but has been exploited to inflate developer reputation scores through automated publishing of derivative packages.
Vulnerability Detail
The vulnerability originates from the malicious code embedded in the cooperative_cockroach_0xrequest package. This code 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 security risks for developers using this package, as it can lead to unintentional exposure of sensitive information and degradation of the npm ecosystem's integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cooperative_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 malicious code from executing by removing the cooperative_cockroach_0xrequest package from your project. Use the following command: npm uninstall cooperative_cockroach_0xrequest.
Conclusion
The cooperative_cockroach_0xrequest package has been compromised with malicious code that poses significant risks to developers and the npm ecosystem. It is crucial to take immediate action by updating or removing the package to safeguard your projects.
See every vulnerability recorded for cooperative_cockroach_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed for developers to interact with the tea protocol.
The malicious code modifies your package.json, potentially exposing sensitive information and polluting the npm registry with unwanted packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Check your application using the Vulert playground at Vulert Scanner without any signup.
Regularly audit your dependencies and use tools like Vulert to monitor for vulnerabilities in real-time.
If no patched version is available, consider removing the package from your project until a secure version is released.