Malicious Code Injection in agreeable_dragonfly_z3n Package
Summary
MAL-2025-93177: Malicious code in agreeable_dragonfly_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_dragonfly_z3n package is part of the npm ecosystem, which is used for managing JavaScript packages. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary function of this package is to facilitate the generation and publication of derivative packages, but it has been compromised to include harmful scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in the agreeable_dragonfly_z3n package stems from its malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the automatic publication of numerous variants. This behavior is designed to inflate developer reputation scores for token rewards, ultimately polluting the npm registry and potentially leading to security risks for users who unknowingly install these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall agreeable_dragonfly_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 remove the agreeable_dragonfly_z3n package from your project by executing the following command: 'npm uninstall agreeable_dragonfly_z3n'. This will prevent any malicious code from executing until a safe version is available.
Conclusion
The agreeable_dragonfly_z3n package contains malicious code that poses a significant risk to developers and users by manipulating package metadata and flooding the npm registry. It is crucial to take immediate action by updating or uninstalling the package to safeguard your projects.
See every vulnerability recorded for agreeable_dragonfly_z3n →
FAQ
It is an npm package that is part of the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code modifies your package.json file, potentially leading to the publication of compromised packages and affecting your project's integrity.
You should uninstall the package immediately and monitor for any updates or patches that may be released.
You can use Vulert, which monitors and alerts you in real-time for open-source vulnerabilities using just your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.