Malicious Code Injection in used_egret_0xrequest Package
Summary
MAL-2025-110242: Malicious code in used_egret_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 used_egret_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 by generating and publishing derivative packages. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the used_egret_0xrequest package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the automatic publication of numerous variants. This behavior not only pollutes the npm registry but also poses a risk to developers by inflating reputation scores fraudulently. The malicious payload can potentially allow unauthorized access to sensitive information and disrupt the normal functioning of applications relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall used_egret_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 avoid using the used_egret_0xrequest package altogether and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The used_egret_0xrequest package contains malicious code that compromises the npm registry and poses significant risks to developers. It is crucial to uninstall this package and monitor your projects for any unauthorized changes. Utilizing tools like Vulert can help in identifying and managing such vulnerabilities effectively.
See every vulnerability recorded for used_egret_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code can modify your package.json file, leading to unauthorized changes and potential security risks.
You should uninstall the used_egret_0xrequest package immediately and check for any unauthorized changes in your project.
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 if your application is affected without needing to sign up.