Malicious Code Injection in bad_canid_0xrequest Package
Summary
MAL-2025-99738: Malicious code in bad_canid_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 bad_canid_0xrequest package is part of the npm ecosystem, which is widely used for managing JavaScript packages. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The functionality of this package is compromised due to its involvement in generating and publishing derivative packages with altered metadata, aimed at inflating developer reputation scores.
Vulnerability Detail
The vulnerability in the bad_canid_0xrequest package stems from its malicious payload that modifies the package.json file. This payload removes private flags, alters version numbers, and generates random package names, leading to pollution of the npm registry. The origin of this vulnerability is linked to a campaign that exploits npm's publishing mechanisms, potentially allowing attackers to manipulate package integrity and developer trust. The ramifications include the risk of unintentional installation of malicious packages by developers, which can lead to further security breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bad_canid_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 bad_canid_0xrequest package until a secure version is released. Additionally, consider using the following command to uninstall the package: 'npm uninstall bad_canid_0xrequest'.
Conclusion
The bad_canid_0xrequest package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to be aware of this vulnerability, take necessary actions to update or uninstall the package, and utilize tools like Vulert for ongoing monitoring of open-source vulnerabilities.
See every vulnerability recorded for bad_canid_0xrequest →
FAQ
The bad_canid_0xrequest package is an npm package that has been identified as malicious, involved in generating and publishing derivative packages to inflate developer reputation scores.
This vulnerability can lead to the installation of malicious code, which may compromise your application's integrity and security.
If you have installed the bad_canid_0xrequest package, it is recommended to uninstall it immediately and monitor your application for any unusual behavior.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software using just package-lock.json. You can check if your application is affected by this vulnerability using the Vulert playground.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by the bad_canid_0xrequest vulnerability without requiring any signup.