Malicious Code Injection in bare_gopher_0xrequest Package
Summary
MAL-2025-99799: Malicious code in bare_gopher_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 bare_gopher_0xrequest package is part of the npm ecosystem, primarily used for various web-related functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with derivative packages. This package is designed to manipulate developer reputation scores through automated publishing scripts, which can lead to significant security risks.
Vulnerability Detail
The vulnerability in the bare_gopher_0xrequest package originates from its association with the tea.xyz token reward campaign. This package contains malicious scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. The continuous republishing of these variants clutters the npm registry and can lead to the installation of compromised packages by unsuspecting developers, potentially exposing their applications to further vulnerabilities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bare_gopher_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 remove the bare_gopher_0xrequest package from your project by executing the command: 'npm uninstall bare_gopher_0xrequest'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The bare_gopher_0xrequest package has been identified as a vector for malicious code injection due to its involvement in a campaign aimed at manipulating npm registry statistics. It is crucial for developers to remain vigilant, update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for bare_gopher_0xrequest →
FAQ
The bare_gopher_0xrequest package is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through automated publishing.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By using the Vulert playground, you can check if your application is affected without any signup.
Using the bare_gopher_0xrequest package can expose your application to malicious code, which may lead to data breaches, unauthorized access, and other security vulnerabilities.
To prevent similar vulnerabilities, always review package dependencies, utilize tools like Vulert for monitoring, and keep your packages updated to the latest secure versions.
If you have installed the bare_gopher_0xrequest package, it is recommended to uninstall it immediately and check for any updates or patches that may address the vulnerability.