Malicious Code Injection in wittering_mongoose_0xrequest Package
Summary
MAL-2025-110972: Malicious code in wittering_mongoose_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 wittering_mongoose_0xrequest package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate interactions with web requests but has been compromised to include malicious functionalities. Its primary attributes include automatic publishing scripts that generate derivative packages with randomized names, aimed at inflating developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability stems from the package's malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of these variants, polluting the npm registry and potentially compromising the integrity of other packages. The origin of this issue is linked to a broader campaign that exploits npm's publishing mechanisms for malicious purposes.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall wittering_mongoose_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, consider removing the wittering_mongoose_0xrequest package from your project until a secure version is released. You can do this by executing the following command: npm uninstall wittering_mongoose_0xrequest.
Conclusion
The wittering_mongoose_0xrequest package has been identified as containing malicious code that can compromise the integrity of projects using it. It is crucial to take immediate action by updating or removing the package to safeguard your application.
See every vulnerability recorded for wittering_mongoose_0xrequest →
FAQ
It is an npm package designed for web request handling but has been compromised to include malicious code.
The vulnerability can lead to the pollution of the npm registry and compromise the integrity of your project by introducing malicious code.
You should check the npm repository for any updates or patches for the wittering_mongoose_0xrequest package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities without any signup.