Malicious Code Injection in crazy_raven_z3n: A Threat to npm Users
Summary
MAL-2025-93839: Malicious code in crazy_raven_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 crazy_raven_z3n package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing mechanisms. It is designed to generate and publish numerous derivative packages with randomized names, thereby inflating developer reputation scores for token rewards in the tea.xyz protocol. The presence of such malicious packages poses a significant risk to developers and users relying on npm for secure package management.
Vulnerability Detail
The vulnerability in the crazy_raven_z3n package originates from its association with a malicious campaign that floods the npm registry with derivative packages. The malicious payload modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. This not only pollutes the npm registry but also compromises the integrity of the packages, potentially allowing for further exploitation and misuse.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall crazy_raven_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 measure, you can avoid using the crazy_raven_z3n package until a secure version is released. Additionally, consider using the following command to remove the package from your project: 'npm uninstall crazy_raven_z3n'.
Conclusion
The crazy_raven_z3n package poses a significant security risk due to its malicious code that modifies package configurations and floods the npm registry. It is crucial for developers to stay vigilant, update their packages regularly, and utilize tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for crazy_raven_z3n →
FAQ
crazy_raven_z3n is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
The vulnerability can lead to the pollution of the npm registry and compromise the integrity of your application by introducing malicious code.
You should uninstall the crazy_raven_z3n package and monitor your application for any unusual behavior.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.