Malicious Code Injection in selected_rabbit_z3n Package
Summary
MAL-2025-108504: Malicious code in selected_rabbit_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 selected_rabbit_z3n package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate token rewards through various scripts that automatically publish derivative packages. However, it has been identified as containing malicious code that compromises its integrity and the security of applications relying on it.
Vulnerability Detail
The vulnerability originates from the selected_rabbit_z3n package, which includes scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially affecting the reputation of developers. The malicious payload can lead to unauthorized access and manipulation of applications using this package, posing significant security risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall selected_rabbit_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 selected_rabbit_z3n package and look for alternative packages that provide similar functionality without the associated risks. Additionally, ensure that your package.json file does not include any references to this malicious package.
Conclusion
The selected_rabbit_z3n package poses a significant security risk due to its malicious code that alters package configurations and republishing behavior. It is essential to remove this package from your projects and monitor for any potential impacts on your applications.
See every vulnerability recorded for selected_rabbit_z3n →
FAQ
The selected_rabbit_z3n package is an npm package involved in the tea.xyz token reward campaign, which has been identified to contain malicious code.
The malicious code modifies your package.json file and can lead to unauthorized republishing of packages, potentially compromising your application's security.
You should uninstall the selected_rabbit_z3n package immediately 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 by this vulnerability without needing to sign up.