Malicious Code Injection in moral_chinchilla_0xrequest Package
Summary
MAL-2025-105972: Malicious code in moral_chinchilla_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 moral_chinchilla_0xrequest package is part of the npm ecosystem, often utilized for various JavaScript applications. It is designed to facilitate requests in a manner that is intended to be straightforward and efficient. However, this package has been identified as part of a malicious campaign that floods the npm registry with derivative packages, which can compromise the integrity of applications that depend on it.
Vulnerability Detail
The vulnerability stems from the package being associated with a token reward campaign that generates and publishes numerous derivative packages with randomized names. This malicious behavior includes modifying the package.json file to remove private flags, altering version numbers, and continuously republishing variants, which can lead to pollution of the npm registry and potential exploitation of applications relying on this package. The origin of this vulnerability is linked to the tea.xyz token reward scheme, which incentivizes developers to inflate their reputation scores through such malicious practices.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall moral_chinchilla_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 moral_chinchilla_0xrequest package and replace it with a trusted alternative that provides similar functionality without the associated risks. Additionally, you can monitor your package-lock.json file using tools like Vulert to detect any vulnerabilities in real-time.
Conclusion
The moral_chinchilla_0xrequest package has been identified as containing malicious code that can compromise applications relying on it. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities using tools like Vulert. Staying informed and proactive can help maintain the security of your applications.
See every vulnerability recorded for moral_chinchilla_0xrequest →
FAQ
It is an npm package designed for making requests in JavaScript applications, but it has been compromised with malicious code.
The vulnerability can lead to the pollution of the npm registry and may compromise the security and integrity of applications that depend on this package.
You should remove the package from your project and consider using a trusted alternative. Additionally, check for any updates or patches.
You can use Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.