Malicious Code Injection in petite_eagle_z3n Package - npm Vulnerability
Summary
MAL-2025-89463: Malicious code in petite_eagle_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 petite_eagle_z3n package 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. The primary function of such packages is to manipulate developer reputation scores through automated publishing of derivative packages.
Vulnerability Detail
The vulnerability in the petite_eagle_z3n package stems from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is designed to inflate developer reputation scores and pollute the npm registry with numerous variants of the package. The malicious payload can lead to security risks, including unauthorized access to sensitive data and potential exploitation of the affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall petite_eagle_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 petite_eagle_z3n package from your project by executing the following command: npm uninstall petite_eagle_z3n. This will prevent any malicious code from executing while you assess your options for a secure package.
Conclusion
The petite_eagle_z3n package has been identified as a malicious package that poses significant risks to applications using it. It is essential to take immediate action by updating or uninstalling the package to safeguard your project from potential exploitation. Utilizing tools like Vulert can enhance your security posture by providing real-time monitoring for vulnerabilities.
See every vulnerability recorded for petite_eagle_z3n →
FAQ
The petite_eagle_z3n package 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 unauthorized modifications in your project's package.json file, potentially exposing your application to security risks and instability.
If you have installed the petite_eagle_z3n package, it is crucial to uninstall it immediately and monitor your project for any unusual behavior.
Yes, Vulert can monitor your application for open-source vulnerabilities in real-time using just your package-lock.json file, providing alerts for any detected issues.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by the petite_eagle_z3n vulnerability without needing to sign up.