Malicious Code Injection in increasing_cockroach_requirement Package
Summary
MAL-2025-94980: Malicious code in increasing_cockroach_requirement (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 increasing_cockroach_requirement package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is implicated in a malicious campaign that aims to exploit npm's publishing mechanisms. It is designed to generate and publish derivative packages with randomized names, thereby inflating developer reputation scores for token rewards associated with the tea.xyz protocol.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the increasing_cockroach_requirement package. This code modifies the package.json file by removing private flags and altering version numbers. It also generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. The ramifications include potential security risks for developers who unknowingly use these compromised packages, as well as the 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 increasing_cockroach_requirement
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 avoid using the increasing_cockroach_requirement package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The increasing_cockroach_requirement package poses a significant risk due to its malicious code that alters package metadata and publishes compromised versions. It is crucial for developers to be vigilant, update their packages, and utilize monitoring tools like Vulert to safeguard their projects from such vulnerabilities.
See every vulnerability recorded for increasing_cockroach_requirement →
FAQ
It is an npm package that has been identified as part of a malicious campaign aimed at exploiting npm's publishing system.
The malicious code can modify your package.json file, remove private flags, and publish compromised versions of your packages, potentially leading to security vulnerabilities.
You should immediately remove the package and update your project to ensure that no malicious code is executed.
You can use tools like 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 any signup.