Malicious Code Injection in external_raven_z3n Package
Summary
MAL-2025-102423: Malicious code in external_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 external_raven_z3n package is part of the npm ecosystem, often utilized in JavaScript projects for various functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with derivative packages. This package is linked to the tea.xyz token reward scheme, which incentivizes developers to inflate their reputation scores through the creation of numerous derivative packages.
Vulnerability Detail
The vulnerability in the external_raven_z3n package stems from its malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. The primary risk includes the pollution of the npm registry, which can compromise the integrity of the ecosystem and potentially expose users to further malicious activities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall external_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 workaround, you can remove the external_raven_z3n package from your project by executing the command: 'npm uninstall external_raven_z3n'. This will prevent any malicious code from executing in your environment until a secure version is available.
Conclusion
The external_raven_z3n package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial to take immediate action by updating or removing the package to safeguard your project from potential threats.
See every vulnerability recorded for external_raven_z3n →
FAQ
The external_raven_z3n package is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores.
The malicious code modifies your package.json file, potentially leading to the pollution of the npm registry and exposing your project to further vulnerabilities.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.
If you cannot update the package, it is advisable to remove it from your project until a secure version is released.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert and keep your packages updated to the latest secure versions.