Malicious Code Injection in eldest_thrush_0xrequest Package
Summary
MAL-2025-102004: Malicious code in eldest_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 eldest_thrush_0xrequest package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. It is designed to facilitate the automatic generation and publication of derivative packages. This package's functionality is compromised by malicious scripts that manipulate its metadata and behavior, leading to potential security risks.
Vulnerability Detail
The vulnerability stems from malicious code embedded in the eldest_thrush_0xrequest package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which can lead to the pollution of the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs autopublish scripts to inflate developer reputation scores. The ramifications include the potential for developers to unknowingly install compromised packages, leading to security breaches and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall eldest_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 remove the eldest_thrush_0xrequest package from your project by executing: npm uninstall eldest_thrush_0xrequest. This will prevent the execution of any malicious code associated with this package until a fix is applied.
Conclusion
The eldest_thrush_0xrequest package contains a significant vulnerability due to malicious code that alters its metadata and behavior. It is crucial for developers to take immediate action by updating or removing the package to safeguard their projects. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for eldest_thrush_0xrequest →
FAQ
It is an npm package that is part of a token reward campaign and is designed to automatically generate and publish derivative packages.
The vulnerability can lead to the installation of malicious code that modifies your package.json file and affects your project's integrity.
You should uninstall the package immediately and check your project for any unauthorized changes.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check for vulnerabilities without needing to sign up.