Malicious Code Injection in agreeable_ant_z3n Package
Summary
MAL-2025-93176: Malicious code in agreeable_ant_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 agreeable_ant_z3n package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. It is designed to facilitate the automatic generation and publication of derivative packages. However, this package has been identified as malicious, containing scripts that manipulate package metadata and flood the npm registry with unwanted variants.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the agreeable_ant_z3n package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the pollution of the npm registry. The origin of this issue is linked to the tea.xyz token reward campaign, which incentivizes developers to inflate their reputation scores by publishing numerous derivative packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall agreeable_ant_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, consider using tools like Vulert to check for vulnerabilities in your project without needing to access the code directly.
Conclusion
The agreeable_ant_z3n package contains malicious code that compromises the integrity of your project by altering package metadata and flooding the npm registry. It is crucial to remove this package and monitor your dependencies for vulnerabilities using tools like Vulert.
See every vulnerability recorded for agreeable_ant_z3n →
FAQ
The agreeable_ant_z3n package is an npm package associated with the tea.xyz token reward campaign, designed to automate the publication of derivative packages.
The malicious code modifies your package.json file, removes private flags, and floods the npm registry with unwanted package variants, potentially harming your project's integrity.
You should remove the agreeable_ant_z3n package from your project immediately and check for any updates or patches that may be available.
Yes, Vulert can monitor your project for vulnerabilities using the package-lock.json file, providing real-time alerts for any open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.