Malicious Code Injection in petite_hawk_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-107052: Malicious code in petite_hawk_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 petite_hawk_z3n is part of the npm ecosystem, which is widely used for JavaScript package management. It is often utilized by developers to manage dependencies in their projects. However, this package has been identified as part of a malicious campaign that aims to inflate developer reputation scores through the creation of numerous derivative packages with randomized names.
Vulnerability Detail
The vulnerability in petite_hawk_z3n stems from its association with a malicious campaign that 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 these variants, polluting the npm registry and potentially compromising the integrity of the ecosystem. The malicious payload is designed to exploit the npm registry's trust in developer reputation, making it a significant threat.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall petite_hawk_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 avoid using the petite_hawk_z3n package and replace it with a trusted alternative. Always verify the source and reputation of packages before including them in your project.
Conclusion
The petite_hawk_z3n package poses a significant threat due to its malicious code that modifies package metadata and floods the npm registry. It is essential to remove this package from your projects and adopt best practices for dependency management to safeguard your applications.
See every vulnerability recorded for petite_hawk_z3n →
FAQ
petite_hawk_z3n is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores.
The vulnerability can lead to the pollution of the npm registry and compromise the integrity of your project's dependencies.
You should uninstall the petite_hawk_z3n package immediately using the command: npm uninstall petite_hawk_z3n.
Regularly update your dependencies, use trusted packages, and monitor your project for vulnerabilities using tools like Vulert.
Vulert is a tool that monitors and alerts in real-time for open-source vulnerabilities in your software. You can use the Vulert playground to check if your application is affected by this vulnerability without any signup.