Malicious Code Injection in resulting_capybara_0xrequest Package
Summary
MAL-2025-107977: Malicious code in resulting_capybara_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 resulting_capybara_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, it has been identified as containing malicious code that compromises its integrity and the security of applications using it.
Vulnerability Detail
The vulnerability originates from the malicious payload embedded within the resulting_capybara_0xrequest package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names, which leads to the continuous republishing of these variants. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, potentially leading to further exploitation or security breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall resulting_capybara_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 resulting_capybara_0xrequest package and look for alternative packages that provide similar functionality without the associated risks. Always validate the integrity of packages before including them in your project.
Conclusion
The resulting_capybara_0xrequest package has been identified as containing malicious code that compromises the security of applications using it. It is crucial to uninstall this package and monitor your projects for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your software by providing real-time alerts for open-source vulnerabilities.
See every vulnerability recorded for resulting_capybara_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation and publication of packages.
The malicious code modifies your package.json file and can lead to the installation of compromised packages, posing security risks.
You should uninstall the resulting_capybara_0xrequest package immediately and check for any other affected packages in your project.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using your package-lock.json file. You can also check your application for vulnerabilities using the Vulert playground without signing up.
Yes, you should look for reputable packages that provide similar functionality but have a proven track record of security and reliability.