Malicious Code Injection in yappy_gopher_0xrequest Package
Summary
MAL-2025-111241: Malicious code in yappy_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 yappy_gopher_0xrequest package is part of a series of npm packages associated with the tea.xyz token reward campaign. These packages are designed to automate the generation and publication of derivative packages, often with randomized names, to inflate developer reputation scores. The functionality of this package is compromised due to malicious scripts that alter its core files.
Vulnerability Detail
The vulnerability originates from the presence of malicious code within the yappy_gopher_0xrequest package. This code modifies the package.json file by removing private flags, changing version numbers, and generating random package names, which leads to the continuous republishing of variants. This behavior not only pollutes the npm registry but can also mislead developers and users regarding the integrity and authenticity of the packages they are using.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall yappy_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, avoid using the yappy_gopher_0xrequest package and consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The yappy_gopher_0xrequest package contains malicious code that poses a significant risk to developers and their projects. It is crucial to uninstall this package and monitor for any potential impacts on your applications. Utilizing tools like Vulert can help maintain the security of your open-source dependencies.
See every vulnerability recorded for yappy_gopher_0xrequest →
FAQ
It is an npm package that is part of a campaign to generate and publish derivative packages for token rewards, but it contains malicious code.
The malicious code modifies your package.json, removes private flags, and can lead to the pollution of the npm registry with unwanted packages.
You should uninstall the package immediately and monitor your project for any unusual behavior.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json.
You can use the Vulert playground at Vulert Scanner to check your application for vulnerabilities without needing to sign up.