Malicious Code Injection in improved_donkey_0xrequest Package
Summary
MAL-2025-104031: Malicious code in improved_donkey_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 improved_donkey_0xrequest package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate various functionalities related to token rewards but has been compromised to include malicious scripts. These scripts are intended to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code within the improved_donkey_0xrequest package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants. This behavior not only pollutes the npm registry but also poses risks to developers who may unknowingly use these compromised packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall improved_donkey_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 improved_donkey_0xrequest package and consider using alternative packages that provide similar functionalities without the associated risks.
Conclusion
The improved_donkey_0xrequest package contains malicious code that poses significant risks to developers and their applications. It is crucial to uninstall this package and monitor your project for any vulnerabilities. Utilizing tools like Vulert can help maintain the security of your open-source dependencies.
See every vulnerability recorded for improved_donkey_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to facilitate token rewards but has been compromised.
The malicious code can modify your package.json file, remove private flags, and republish variants, potentially leading to security vulnerabilities in your application.
You should uninstall the improved_donkey_0xrequest package immediately and check for any other compromised packages in your project.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.