Malicious Code Injection in muddy_elk_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-95549: Malicious code in muddy_elk_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 muddy_elk_z3n is part of a broader campaign targeting the npm ecosystem, specifically linked to the tea.xyz token reward initiative. This package is designed to automate the generation and publication of derivative packages, which can mislead developers and inflate reputation scores within the npm registry. Its functionality is compromised by malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in muddy_elk_z3n originates from its association with a malicious campaign that floods the npm registry with derivative packages. The malicious payload alters the package.json file by removing private flags, changing version numbers, and generating random package names. This not only pollutes the npm registry but also poses a risk of unintentional dependency on compromised packages, leading to potential security breaches in applications that rely on them.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall muddy_elk_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 muddy_elk_z3n and any packages that may have been derived from it. Regularly audit your package dependencies using tools like npm audit to identify and mitigate vulnerabilities.
Conclusion
The muddy_elk_z3n package poses a significant threat to the npm ecosystem due to its malicious intent to manipulate package metadata and inflate developer reputation scores. It is essential to remove this package and regularly audit your dependencies to maintain the security of your applications.
See every vulnerability recorded for muddy_elk_z3n →
FAQ
muddy_elk_z3n is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through the automated publication of derivative packages.
The malicious code modifies your package.json file, potentially exposing your application to security risks by allowing unauthorized access or manipulation of your dependencies.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By analyzing your package-lock.json, it can help identify if your application is affected by this vulnerability.
Immediately uninstall the package using 'npm uninstall muddy_elk_z3n' and audit your project for any other potentially compromised packages.
There is no patch available for muddy_elk_z3n as it is a malicious package. The best course of action is to remove it entirely from your project.