Malicious Code Injection in sure_raven_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-96889: Malicious code in sure_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 package 'sure_raven_z3n' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been linked to a series of malicious activities aimed at inflating developer reputation scores. The package's functionality is compromised, making it a vector for malicious code that can affect developers and their projects.
Vulnerability Detail
The vulnerability in 'sure_raven_z3n' originates from its design to include autopublish scripts that generate and publish derivative packages with randomized names. This malicious behavior modifies the package.json file by removing private flags, altering version numbers, and creating random package names. The continuous republishing of these variants pollutes the npm registry, potentially leading to reputational damage for developers and security risks for users who unknowingly install these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sure_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 avoid using the 'sure_raven_z3n' package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your project for any dependencies that may have been affected by this vulnerability.
Conclusion
The 'sure_raven_z3n' package poses a significant risk due to its malicious code designed to manipulate the npm registry. It is crucial for developers to remove this package from their projects and to monitor their dependencies for any vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for sure_raven_z3n →
FAQ
'sure_raven_z3n' is an npm package that has been identified as containing malicious code aimed at manipulating the npm registry.
The vulnerability can lead to the installation of malicious packages, which may compromise your project's integrity and security.
You should uninstall the package immediately using 'npm uninstall sure_raven_z3n' and check for any other affected dependencies.
Yes, you can use Vulert to monitor your project for open-source vulnerabilities in real-time by analyzing your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.