Malicious Code Injection in bilalbaguette: A Threat to npm Ecosystem
Summary
MAL-2025-170979: Malicious code in bilalbaguette (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
bilalbaguette is an npm package that is part of the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages are designed to manipulate developer reputation scores by automatically generating and publishing derivative packages with randomized names, ultimately compromising the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in bilalbaguette originates from its association with a malicious campaign that employs autopublish scripts to modify the package.json file. This includes removing private flags, altering version numbers, and generating random package names, which leads to the continuous republishing of variants that pollute the npm registry. The ramifications include potential security risks for developers who unknowingly use these compromised packages, as well as damage to the reputation of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bilalbaguette
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 workaround, consider using the following command to uninstall the bilalbaguette package from your project: npm uninstall bilalbaguette. This will help mitigate the risks associated with the malicious code until a proper fix is implemented.
Conclusion
The bilalbaguette package poses a significant threat due to its malicious code designed to manipulate the npm ecosystem. It is crucial for developers to be aware of this vulnerability, take immediate action to remove the package, and utilize tools like Vulert to monitor for potential vulnerabilities in their projects.
See every vulnerability recorded for bilalbaguette →
FAQ
bilalbaguette is an npm package that is part of a malicious campaign aimed at manipulating developer reputation scores through the creation of derivative packages.
The vulnerability can lead to the inclusion of malicious code in your project, potentially compromising its security and integrity.
You should uninstall the bilalbaguette package immediately to prevent any security risks associated with its malicious code.
Yes, you can use Vulert, a tool that monitors and alerts in real-time for open-source vulnerabilities in your software by analyzing the package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.