Malicious Code Injection in tropical_thrush_0xrequest Package
Summary
MAL-2025-109844: Malicious code in tropical_thrush_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 tropical_thrush_0xrequest package is part of a broader ecosystem associated with the tea.xyz token reward campaign. This package, like others in the campaign, is designed to manipulate npm's package registry by generating and publishing derivative packages. Its primary function is to inflate developer reputation scores through automated scripts, which can lead to significant pollution of the npm registry.
Vulnerability Detail
The vulnerability originates from the malicious design of the tropical_thrush_0xrequest package, which contains scripts that modify the package.json file by removing private flags and changing version numbers. This allows the package to generate random names for derivative packages, which are then continuously republished to the npm registry. The ramifications include potential security risks for developers who unknowingly use these packages, as they may inadvertently introduce malicious code into their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tropical_thrush_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 package by using npm's package-lock.json file to monitor dependencies. Ensure that your project does not include tropical_thrush_0xrequest in its dependencies. You can also use Vulert to check if your application is affected by this vulnerability without requiring access to the code or installation.
Conclusion
The tropical_thrush_0xrequest package poses a significant security risk due to its malicious code designed to manipulate the npm registry. It is crucial for developers to uninstall this package and monitor their dependencies to avoid potential security breaches. Utilizing tools like Vulert can help in identifying and mitigating such vulnerabilities effectively.
See every vulnerability recorded for tropical_thrush_0xrequest →
FAQ
It is a package associated with the tea.xyz token reward campaign, designed to manipulate npm's package registry.
The vulnerability can introduce malicious code into your application, potentially compromising its security.
You should uninstall the tropical_thrush_0xrequest package immediately and monitor your dependencies for any other malicious packages.
Yes, you can use Vulert to monitor and alert for open-source vulnerabilities in real-time using just your package-lock.json.
Regularly audit your dependencies and use tools like Vulert to monitor for vulnerabilities in your open-source packages.