Malicious Code Injection in envious_egret_z3n Package
Summary
MAL-2025-102140: Malicious code in envious_egret_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 envious_egret_z3n package is part of the npm ecosystem and appears to be associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, often with randomized names, to inflate developer reputation scores for token rewards. Its functionality is compromised by malicious scripts that alter package metadata.
Vulnerability Detail
The vulnerability in the envious_egret_z3n package stems from its inclusion in a malicious campaign that modifies the package.json file. This modification removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. The malicious payload can pollute the npm registry, potentially affecting other developers and users relying on the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall envious_egret_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 workaround, you can temporarily avoid using the envious_egret_z3n package in your project. If you need similar functionality, consider using alternative packages that are verified and do not have known vulnerabilities.
Conclusion
The envious_egret_z3n package poses a significant risk due to its malicious code that alters package metadata and pollutes the npm registry. It is crucial to remove this package from your project and monitor for any potential vulnerabilities using tools like Vulert.
See every vulnerability recorded for envious_egret_z3n →
FAQ
The envious_egret_z3n package is an npm package associated with a token reward campaign that generates and publishes derivative packages.
This vulnerability can lead to the pollution of the npm registry and may affect the integrity of your project by introducing malicious code.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.
If you have installed the envious_egret_z3n package, you should uninstall it immediately using the command npm uninstall envious_egret_z3n.
Yes, consider using other verified packages that offer similar functionality without the associated risks.