Malicious Code Injection in head_roadrunner_0xrequest Package
Summary
MAL-2025-103618: Malicious code in head_roadrunner_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 head_roadrunner_0xrequest package is part of the npm ecosystem, typically used for handling HTTP requests in JavaScript applications. However, it has been identified as part of a malicious campaign that floods the npm registry with harmful packages. This package, like others in the campaign, contains scripts that manipulate package metadata for nefarious purposes.
Vulnerability Detail
The vulnerability originates from the package being associated with the tea.xyz token reward campaign, which aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious payload modifies the package.json file by removing private flags, altering version numbers, and creating random package names, leading to pollution of the npm registry. This can result in security risks for developers who unknowingly install these malicious packages, potentially compromising their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall head_roadrunner_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, avoid using the head_roadrunner_0xrequest package and consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The head_roadrunner_0xrequest package poses a significant security risk due to its association with a malicious campaign that alters package metadata. It is essential to remove this package from your projects and utilize trusted alternatives to safeguard your applications.
See every vulnerability recorded for head_roadrunner_0xrequest →
FAQ
It is an npm package used for handling HTTP requests, but it has been identified as part of a malicious campaign.
The vulnerability can lead to the installation of malicious code, compromising the security and integrity of your application.
You should uninstall the package immediately and check your application for any signs of compromise.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check your application for vulnerabilities without needing to sign up.