Malicious Code Injection in equal_pony_z3n: A Threat to npm Users
Summary
MAL-2025-94281: Malicious code in equal_pony_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 equal_pony_z3n is part of a series of npm packages associated with the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The functionality of equal_pony_z3n is compromised due to its malicious payload, which modifies critical files and repurposes the package for harmful activities.
Vulnerability Detail
The vulnerability in equal_pony_z3n stems from its malicious code that alters the package.json file to remove private flags and changes version numbers. It generates random package names and continuously republishes variants to pollute the npm registry. This can lead to reputation damage for developers, potential security risks for users, and an overall degradation of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall equal_pony_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 equal_pony_z3n by using npm's package-lock.json to monitor dependencies. Ensure that your project does not include this package by regularly auditing your dependencies with 'npm audit'.
Conclusion
The equal_pony_z3n package poses a significant threat due to its malicious code that alters essential files and repurposes the package for harmful activities. It is crucial for developers to remove this package and monitor their dependencies to maintain the integrity of their projects.
See every vulnerability recorded for equal_pony_z3n →
FAQ
equal_pony_z3n is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to the modification of your package.json file, potentially exposing your project to security risks and damaging your reputation as a developer.
You should uninstall the package immediately using 'npm uninstall equal_pony_z3n' and check your package-lock.json for any references to it.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check your application for vulnerabilities without any signup at the Vulert playground.
Regularly audit your dependencies using 'npm audit' and consider using tools like Vulert to monitor for vulnerabilities in real-time.