Malicious Code Injection in colonial_dragonfly_0xrequest Package
Summary
MAL-2025-100666: Malicious code in colonial_dragonfly_0xrequest (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 colonial_dragonfly_0xrequest package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate token rewards through various automated scripts. However, it has been identified as malicious, containing code that manipulates package metadata and publishes derivative packages to inflate developer reputation scores.
Vulnerability Detail
The vulnerability stems from malicious code embedded within the colonial_dragonfly_0xrequest package. This code modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The malicious payload continuously republishes these variants, leading to pollution of the npm registry and potential misuse of developer accounts. This poses risks such as reputation damage and unintended exposure of sensitive information.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall colonial_dragonfly_0xrequest
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. Ensure that your project does not include this package by checking your package.json and removing any references to it.
Conclusion
The colonial_dragonfly_0xrequest package contains malicious code that poses significant risks to developers and their projects. It is crucial to remove this package and monitor your dependencies to ensure the security of your applications.
See every vulnerability recorded for colonial_dragonfly_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation and publication of packages.
The malicious code modifies your package metadata and can lead to reputation damage and pollution of the npm registry.
You should uninstall the colonial_dragonfly_0xrequest package immediately and check for any unauthorized changes in your project.
Yes, you can use Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.