Malicious Code Injection in useless_horse_z3n Package - npm Vulnerability
Summary
MAL-2025-97210: Malicious code in useless_horse_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 'useless_horse_z3n' package is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The malicious nature of this package lies in its ability to modify critical files and republish variants, leading to potential pollution of the npm registry.
Vulnerability Detail
The vulnerability in the 'useless_horse_z3n' package originates from its inclusion in a malicious campaign aimed at manipulating the npm ecosystem. The package contains scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior can lead to the proliferation of unwanted packages in the npm registry, potentially affecting other developers and users who rely on the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall useless_horse_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 measure, you can prevent the installation of this package by using npm's package-lock.json to monitor dependencies. If you are using Vulert, you can check for vulnerabilities in your project without installation by visiting https://vulert.com/scanner.
Conclusion
The 'useless_horse_z3n' package poses a significant risk due to its malicious code designed to manipulate the npm ecosystem. It is crucial for developers to remove this package and stay vigilant about updates and patches. Utilizing tools like Vulert can help in monitoring for such vulnerabilities effectively.
See every vulnerability recorded for useless_horse_z3n →
FAQ
The 'useless_horse_z3n' package is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through the automatic generation of derivative packages.
This vulnerability can lead to the pollution of the npm registry with unwanted packages, potentially affecting the integrity and security of your project.
You should remove the 'useless_horse_z3n' package from your project and monitor for any updates or patches that may be released.
Yes, you can use Vulert to monitor and alert for open-source vulnerabilities in your software by simply using your package-lock.json file.
You can find detailed information about this vulnerability in the official vulnerability report or by visiting the Vulert website.