Malicious Code Injection in select_dragon_0xrequest Package
Summary
MAL-2025-108499: Malicious code in select_dragon_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 select_dragon_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 but has been compromised to include malicious scripts that manipulate package metadata. It is primarily used by developers looking to enhance their reputation within the npm registry.
Vulnerability Detail
The vulnerability in the select_dragon_0xrequest package stems from the inclusion of malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names to inflate developer reputation scores. The malicious payload continuously republishes these variants, polluting the npm registry and potentially leading to security risks for developers and users relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall select_dragon_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, avoid using the select_dragon_0xrequest package until a secure version is released. Additionally, you can monitor your package-lock.json file for any unauthorized changes that may indicate the presence of this malicious package.
Conclusion
The select_dragon_0xrequest package contains a significant vulnerability due to malicious code that alters package metadata. It is crucial for developers to uninstall this package and monitor their projects for any unauthorized changes. Utilizing tools like Vulert can help in identifying vulnerabilities in real-time.
See every vulnerability recorded for select_dragon_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, which has been compromised to include malicious code.
The malicious code modifies your package.json file, potentially leading to unauthorized changes and security vulnerabilities.
You should uninstall the package immediately using 'npm uninstall select_dragon_0xrequest' and monitor your project for any unusual activity.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without signing up.
It is expected that the maintainers will address this vulnerability in future updates. Keep an eye on the package repository for any announcements.