Malicious Code Injection in Exuberant Ermine Z3N: A Threat to NPM Packages
Summary
MAL-2025-102454: Malicious code in exuberant_ermine_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
Exuberant Ermine Z3N is an NPM package that has been identified as part of a malicious campaign targeting the npm registry. This package is associated with the tea.xyz token reward initiative, which has been known to flood the npm ecosystem with harmful packages. The primary functionality of this package is to serve as a vehicle for autopublishing scripts that generate derivative packages, ultimately aimed at inflating developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability stems from the package containing malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, which can lead to the pollution of the npm registry. The malicious payload is designed to continuously republish these variants, making it difficult for developers to maintain the integrity of their projects. The origin of this issue is linked to the tea.xyz token reward campaign, which exploits the npm ecosystem for malicious purposes.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall exuberant_ermine_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 affected package and monitor your project for any dependencies that may inadvertently include it. Regularly audit your package-lock.json file to identify and remove any malicious packages.
Conclusion
The Exuberant Ermine Z3N package poses a significant threat due to its malicious code designed to manipulate package.json files and pollute the npm registry. It is essential to take immediate action to remove this package and monitor your project for any vulnerabilities. Utilizing tools like Vulert can help maintain the security of your open-source dependencies.
See every vulnerability recorded for exuberant_ermine_z3n →
FAQ
The malicious code can lead to the modification of your package.json file, potentially compromising your project's integrity and reputation.
You can use Vulert to monitor your application for vulnerabilities. Simply upload your package-lock.json file at Vulert Scanner to check for any affected packages.
Regularly audit your dependencies and use tools like Vulert to monitor for vulnerabilities in real-time.
Immediately uninstall the package using 'npm uninstall exuberant_ermine_z3n' and check for any dependencies that may rely on it.
Yes, if the malicious package is present in your production environment, it can lead to significant security risks and compromise your application's integrity.