Malicious Code Injection in key_dragonfly_z3n Package
Summary
MAL-2025-95168: Malicious code in key_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 key_dragonfly_z3n package is part of the npm ecosystem, often utilized for various JavaScript applications. This package has been identified as part of a malicious campaign associated with the tea.xyz token reward system. It is designed to manipulate npm's package registry by generating and publishing derivative packages with random names, thereby inflating developer reputation scores.
Vulnerability Detail
The vulnerability in the key_dragonfly_z3n package stems from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and creates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of other packages. The origin of this vulnerability is linked to a broader scheme aimed at exploiting npm for token rewards, making it a significant concern for developers relying on this ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall key_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 key_dragonfly_z3n package from your project by executing the following command: npm uninstall key_dragonfly_z3n. This will prevent any malicious activity associated with this package until a secure version is available.
Conclusion
The key_dragonfly_z3n package poses a significant risk due to its malicious code that manipulates the npm registry. It is essential for developers to take immediate action by updating or uninstalling the package to protect their applications from potential exploitation.
See every vulnerability recorded for key_dragonfly_z3n →
FAQ
The key_dragonfly_z3n package is an npm package that has been identified as part of a malicious campaign to exploit the npm registry for token rewards.
This vulnerability can lead to the pollution of the npm registry, potentially compromising the integrity of your application and other packages that depend on it.
You should immediately update or uninstall the key_dragonfly_z3n package to mitigate the risks associated with this vulnerability.
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 using the Vulert playground without any signup.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.