Malicious Code Injection in operational_elephant_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-89315: Malicious code in operational_elephant_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 operational_elephant_z3n is part of a broader campaign that exploits the npm ecosystem, specifically targeting developers involved in the tea.xyz token reward initiative. This package is designed to automate the generation and publication of derivative packages, which can lead to reputation inflation within the npm registry. The malicious behavior of this package compromises the integrity of the npm ecosystem by flooding it with numerous variants of itself, making it difficult for developers to discern legitimate packages from malicious ones.
Vulnerability Detail
The vulnerability in operational_elephant_z3n originates from its malicious payload that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is designed to continuously republish variants of the package, polluting the npm registry and potentially leading to security risks for developers who unknowingly integrate these malicious packages into their projects. The primary risk is the compromise of developer environments and the potential for malicious code execution.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall operational_elephant_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 prevent the installation of this malicious package by using npm's package-lock.json to monitor dependencies. Additionally, you can use the following command to uninstall the package: npm uninstall operational_elephant_z3n.
Conclusion
The operational_elephant_z3n package poses a significant threat to the npm ecosystem due to its malicious behavior. Developers are urged to take immediate action to remove or update this package to safeguard their projects from potential security risks. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in real-time.
See every vulnerability recorded for operational_elephant_z3n →
FAQ
operational_elephant_z3n is an npm package that has been identified as malicious, designed to automate the creation and publication of derivative packages.
The vulnerability can lead to the introduction of malicious code into your project, compromising its security and integrity.
If you have installed operational_elephant_z3n, it is recommended to uninstall it immediately and check for any other affected packages.
Yes, you can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.