Malicious Code Injection in dangerous_canid_0xrequest Package
Summary
MAL-2025-101201: Malicious code in dangerous_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 dangerous_canid_0xrequest package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development of applications by providing reusable code. However, it has been identified as part of a malicious campaign that exploits npm's publishing capabilities to inflate developer reputation scores through the automatic generation and publication of derivative packages.
Vulnerability Detail
The vulnerability in the dangerous_canid_0xrequest package stems from its association with a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is designed to pollute the npm registry and can lead to the unintentional inclusion of compromised packages in projects, potentially exposing applications to further vulnerabilities and security risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dangerous_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 workaround, you can avoid using the dangerous_canid_0xrequest package altogether. If it is already a dependency in your project, consider replacing it with a trusted alternative that provides similar functionality without the associated risks.
Conclusion
The dangerous_canid_0xrequest package poses a significant security risk due to its malicious behavior. It is crucial for developers to be aware of such vulnerabilities and take proactive measures to protect their applications. By removing the affected package and utilizing monitoring tools like Vulert, developers can enhance their security posture.
See every vulnerability recorded for dangerous_canid_0xrequest →
FAQ
It is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through automated publishing.
The vulnerability can lead to the inclusion of compromised packages in your application, potentially exposing it to security risks and further vulnerabilities.
You should uninstall the dangerous_canid_0xrequest package immediately and check for any dependencies that may rely on it.
Yes, you can use tools like Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just package-lock.json.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.