Malicious Code Injection in nuclear_cockroach_0xrequest Package
Summary
MAL-2025-106403: Malicious code in nuclear_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 nuclear_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 token rewards by generating and publishing derivative packages. However, it has been identified as containing malicious code that compromises its integrity and the security of the npm registry.
Vulnerability Detail
The vulnerability stems from the package's malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to inflate developer reputation scores through the automatic generation and publication of numerous derivative packages, thereby polluting the npm registry. The source of this vulnerability has been traced back to a campaign that exploits npm's publishing mechanisms, leading to potential security risks for developers and users relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nuclear_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 remove the nuclear_cockroach_0xrequest package from your project by executing the command: npm uninstall nuclear_cockroach_0xrequest. This will prevent any malicious code from executing until a fixed version is available.
Conclusion
The nuclear_cockroach_0xrequest package contains a serious vulnerability that allows for the injection of malicious code, affecting the integrity of the npm registry and potentially compromising applications that use it. It is crucial to take immediate action by updating or uninstalling the package to safeguard your projects.
See every vulnerability recorded for nuclear_cockroach_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to the modification of your package.json file and the introduction of malicious code, potentially compromising your application's security.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
If an immediate update is not possible, consider uninstalling the package to mitigate the risk until a patched version is available.
Detailed information can be found in the vulnerability report and through resources like Vulert, which monitors open-source vulnerabilities in real-time.