Malicious Code Injection in tory_eagle_z3n Package - npm Vulnerability
Summary
MAL-2025-97031: Malicious code in tory_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 tory_eagle_z3n package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign aimed at inflating developer reputation scores through the tea.xyz token reward system. It is designed to automatically generate and publish derivative packages with randomized names, which can lead to pollution of the npm registry and potential security risks for developers using these packages.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the tory_eagle_z3n package. This code modifies the package.json file by removing private flags, altering version numbers, and creating random package names, which can lead to the continuous republishing of these variants. The origin of this issue is linked to a broader campaign that exploits npm's publishing mechanisms to generate fake packages, thereby compromising the integrity of the npm registry and potentially affecting developers who unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tory_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 measure, avoid using the tory_eagle_z3n package and consider using alternative packages that provide similar functionality without the associated risks. Always verify the integrity of packages before installation.
Conclusion
The tory_eagle_z3n package poses a significant security risk due to its malicious code designed to manipulate npm's publishing system. It is crucial for developers to be vigilant, remove this package from their projects, and utilize tools like Vulert to monitor for vulnerabilities in their dependencies.
See every vulnerability recorded for tory_eagle_z3n →
FAQ
The tory_eagle_z3n package is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through the tea.xyz token reward system.
The malicious code modifies your package.json file, removes private flags, and generates random package names, potentially leading to security vulnerabilities and pollution of the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software by analyzing your package-lock.json file. Visit Vulert Scanner to check your application without signing up.
If you have installed the tory_eagle_z3n package, you should uninstall it immediately using the command 'npm uninstall tory_eagle_z3n' and replace it with a trusted alternative.
Currently, there is no patched version available for the tory_eagle_z3n package. It is recommended to remove the package and monitor for any updates from the package maintainers.