Malicious Code Injection in glamorous_bedbug_0xrequest Package
Summary
MAL-2025-103266: Malicious code in glamorous_bedbug_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 glamorous_bedbug_0xrequest package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, its functionality has been compromised by malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the glamorous_bedbug_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 that pollute the npm registry. The origin of this issue is linked to the tea.xyz token reward campaign, which has been known to flood npm with such malicious packages. The ramifications include potential security risks for developers and users, as well as the degradation of the npm ecosystem's integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall glamorous_bedbug_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 measure, you can avoid using the glamorous_bedbug_0xrequest package altogether and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The glamorous_bedbug_0xrequest package contains malicious code that poses significant risks to developers and the integrity of the npm ecosystem. Immediate action is required to remove the package and safeguard your project. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for glamorous_bedbug_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 modifies your package.json file, potentially exposing your project to security vulnerabilities and degrading the npm registry.
You should uninstall the glamorous_bedbug_0xrequest package immediately and monitor your project for any unusual behavior.
Yes, consider using other reputable npm packages that offer similar functionality without the associated risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. You can also check your application for vulnerabilities using the Vulert playground at Vulert Scanner without any signup.