Malicious Code Vulnerability in straightforward_cockroach_0xrequest Package
Summary
MAL-2025-109170: Malicious code in straightforward_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 straightforward_cockroach_0xrequest package is part of the npm ecosystem, primarily used for various JavaScript applications. It is often leveraged for its utility in managing requests within applications. However, this package has been identified as part of a malicious campaign that floods the npm registry with derivative packages aimed at inflating developer reputation scores for token rewards.
Vulnerability Detail
This vulnerability originates from the package being associated with the tea.xyz token reward campaign, which has been known to deploy malicious scripts. These scripts are designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. The continuous republishing of these variants leads to pollution of the npm registry, potentially compromising the integrity of applications that depend on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall straightforward_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 straightforward_cockroach_0xrequest package from your project until a secure version is released. Use the following command to uninstall the package: npm uninstall straightforward_cockroach_0xrequest.
Conclusion
The straightforward_cockroach_0xrequest package has been identified as containing malicious code that can compromise applications using it. It is essential to take immediate action by updating or removing the package to protect your project from potential threats.
See every vulnerability recorded for straightforward_cockroach_0xrequest →
FAQ
It is an npm package used for managing requests in JavaScript applications but has been compromised with malicious code.
The vulnerability can lead to unauthorized modifications of your package.json file and the introduction of potentially harmful packages into your project.
You should immediately update or uninstall the package to mitigate the risk of exploitation.
You can use Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.