Malicious Code Injection in elegant_bovid_z3n: A Threat to npm Packages
Summary
MAL-2025-102031: Malicious code in elegant_bovid_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 elegant_bovid_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 known to flood the npm registry with malicious packages. These packages often contain scripts that manipulate package metadata and publish derivative versions to inflate developer reputation scores, posing a significant risk to developers and users alike.
Vulnerability Detail
The vulnerability in elegant_bovid_z3n originates from its design to include autopublish scripts that modify the package.json file. This modification removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants that pollute the npm registry. The ramifications include compromised developer reputation, potential security risks for users, and a cluttered npm registry that makes it difficult to find legitimate packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall elegant_bovid_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 elegant_bovid_z3n package from your project by executing the following command: npm uninstall elegant_bovid_z3n. This will prevent any malicious code from executing until a safe version is available.
Conclusion
The elegant_bovid_z3n package poses a significant threat due to its malicious code designed to manipulate npm package metadata. It is crucial for developers to stay vigilant, regularly update their packages, and utilize tools like Vulert to monitor for vulnerabilities in their projects.
See every vulnerability recorded for elegant_bovid_z3n →
FAQ
elegant_bovid_z3n is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through the creation of derivative packages.
The vulnerability can lead to the pollution of the npm registry, making it difficult to find legitimate packages, and may compromise the security of your project.
If you have installed elegant_bovid_z3n, it is recommended to uninstall it immediately and check for any updates or patches.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json. You can also check your application for vulnerabilities using the Vulert playground without any signup.
To prevent future vulnerabilities, regularly audit your dependencies, use tools like Vulert for real-time monitoring, and stay updated with security advisories from the npm registry.