Malicious Code Injection in fun_beaver_0xrequest: A Threat to npm Packages
Summary
MAL-2025-102965: Malicious code in fun_beaver_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
fun_beaver_0xrequest is an npm package that is part of a broader campaign involving the tea.xyz token reward system. This package, like others in the campaign, is designed to manipulate the npm registry by generating and publishing numerous derivative packages. The primary functionality of this package is to facilitate token rewards, but it has been compromised to serve malicious purposes.
Vulnerability Detail
The vulnerability in fun_beaver_0xrequest stems from its involvement in a malicious campaign that floods the npm registry with derivative packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the pollution of the npm registry. This can result in developers unknowingly using compromised packages, which can further lead to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall fun_beaver_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 monitor your project for any unauthorized changes to your package.json file. Implementing strict access controls and using tools like Vulert can help you identify vulnerabilities in your dependencies. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The fun_beaver_0xrequest package poses a significant threat due to its malicious code designed to manipulate the npm registry. It is essential for developers to be vigilant about their dependencies and take proactive measures to secure their applications. By uninstalling affected packages and using monitoring tools like Vulert, developers can mitigate the risks associated with such vulnerabilities.
See every vulnerability recorded for fun_beaver_0xrequest →
FAQ
fun_beaver_0xrequest is an npm package involved in a malicious campaign that generates and publishes derivative packages to manipulate developer reputation scores.
This vulnerability can lead to the inclusion of compromised packages in your application, potentially exposing it to security risks and breaches.
You should uninstall the fun_beaver_0xrequest package immediately and review your project's dependencies for any other potentially compromised packages.
Regularly audit your dependencies, use trusted packages, and employ tools like Vulert to monitor for vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.