Malicious Code Injection in suspicious_hoverfly_z3n Package: A Threat to npm Ecosystem
Summary
MAL-2025-109412: Malicious code in suspicious_hoverfly_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 suspicious_hoverfly_z3n package is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by generating and publishing derivative packages with randomized names. Their primary function is to inflate developer reputation scores for rewards associated with the tea protocol, but they pose significant risks to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in the suspicious_hoverfly_z3n package stems from its malicious code, 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, polluting the npm registry and potentially compromising other packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits npm's publishing mechanisms for malicious purposes.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall suspicious_hoverfly_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 suspicious_hoverfly_z3n package and any other packages associated with the tea.xyz token reward campaign. Additionally, consider using npm audit to identify and address vulnerabilities in your project.
Conclusion
The suspicious_hoverfly_z3n package poses a significant threat to the npm ecosystem due to its malicious code that modifies package configurations and publishes harmful variants. It is crucial for developers to remove this package and stay vigilant about the dependencies they use. Utilizing tools like Vulert can enhance security by providing real-time monitoring for vulnerabilities.
See every vulnerability recorded for suspicious_hoverfly_z3n →
FAQ
It is an npm package that is part of a malicious campaign to inflate developer reputation scores through the creation of derivative packages.
The malicious code can modify your package.json, remove private flags, and publish random packages, which can lead to security vulnerabilities and pollution of the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Remove the suspicious_hoverfly_z3n package immediately and check for any other affected packages. Update your dependencies regularly to mitigate risks.
Yes, tools like Vulert can help monitor your project for vulnerabilities using just the package-lock.json file, providing real-time alerts.