Malicious Code Injection in verbal_cockroach_z3n: A Threat to npm Packages
Summary
MAL-2025-110427: Malicious code in verbal_cockroach_z3n (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 package verbal_cockroach_z3n is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with a token reward campaign that has led to the proliferation of malicious packages designed to inflate developer reputation scores. The vulnerability stems from the package's functionality, which allows it to modify critical files and republish itself under various names, thereby compromising the integrity of the npm registry.
Vulnerability Detail
The vulnerability in verbal_cockroach_z3n originates from its involvement in a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts that automatically modify the package.json file to remove private flags, change version numbers, and generate random names. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly install these compromised packages, leading to potential security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall verbal_cockroach_z3n
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 verbal_cockroach_z3n package from your project by executing the following command: npm uninstall verbal_cockroach_z3n. This will prevent any malicious code from executing in your application until a fix is applied.
Conclusion
The verbal_cockroach_z3n package poses a significant risk due to its malicious code that modifies package files and repopulates the npm registry with compromised versions. It is crucial for developers to take immediate action by updating or removing the package and utilizing tools like Vulert for ongoing monitoring of vulnerabilities.
See every vulnerability recorded for verbal_cockroach_z3n →
FAQ
verbal_cockroach_z3n is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through the creation of derivative packages.
If your application uses the verbal_cockroach_z3n package, it may be at risk of having its package.json modified, leading to potential security vulnerabilities and instability.
You should uninstall the verbal_cockroach_z3n package immediately and check for any other affected packages in your project.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.