Malicious Code Injection in evident_bat_z3n Package - npm Vulnerability
Summary
MAL-2025-102285: Malicious code in evident_bat_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 evident_bat_z3n package 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 known to flood the npm registry with malicious packages. These packages often contain scripts designed to manipulate package metadata and inflate developer reputation scores through automated publishing of derivative packages.
Vulnerability Detail
The vulnerability in the evident_bat_z3n package originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, ultimately polluting the npm registry. The ramifications include potential security risks for developers who unknowingly integrate this package into their projects, as it can lead to unauthorized access and manipulation of their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall evident_bat_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 evident_bat_z3n package and monitor your dependencies for any malicious activity. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities in real-time.
Conclusion
The evident_bat_z3n package poses a significant security risk due to its malicious code that alters package metadata and republish behavior. It is crucial for developers to remove this package from their projects and utilize monitoring tools like Vulert to safeguard against such vulnerabilities.
See every vulnerability recorded for evident_bat_z3n →
FAQ
The evident_bat_z3n package is an npm package associated with the tea.xyz token reward campaign that has been identified as malicious.
The vulnerability can lead to unauthorized changes in your application's package metadata, potentially compromising its security and integrity.
You should uninstall the evident_bat_z3n package immediately and monitor your project for any unusual behavior.
Yes, you can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.