Malicious Code Injection in narrow_hoverfly_z3n: A Threat to npm Packages
Summary
MAL-2025-95581: Malicious code in narrow_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 narrow_hoverfly_z3n package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development of applications by providing reusable code. However, it has been identified as part of a malicious campaign that exploits npm's publishing mechanisms, leading to potential security risks for developers and users alike.
Vulnerability Detail
The vulnerability in narrow_hoverfly_z3n stems from its association with a malicious campaign that floods the npm registry with derivative packages. This package contains scripts designed to automatically modify its own package.json file, removing private flags, altering version numbers, and generating random package names. The malicious payload aims to inflate developer reputation scores for token rewards, resulting in a polluted npm registry and increased risk of dependency confusion attacks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall narrow_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 narrow_hoverfly_z3n package and replace it with a trusted alternative. Additionally, you can monitor your package-lock.json file for any unauthorized changes that may indicate the presence of malicious packages.
Conclusion
The narrow_hoverfly_z3n package poses a significant security risk due to its malicious code designed to manipulate npm's publishing process. Developers should take immediate action to remove this package and monitor their projects for any signs of compromise. Utilizing tools like Vulert can help maintain the integrity of your applications.
See every vulnerability recorded for narrow_hoverfly_z3n →
FAQ
narrow_hoverfly_z3n is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
The vulnerability can lead to unauthorized modifications of your package.json file, potentially compromising your application and its dependencies.
You should immediately remove the narrow_hoverfly_z3n package from your project and check for any unauthorized changes in your package-lock.json file.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.