Malicious Code Injection in competent_giraffe_0xrequest Package
Summary
MAL-2025-100754: Malicious code in competent_giraffe_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 competent_giraffe_0xrequest package is a part of the npm ecosystem, often used in JavaScript applications for various functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with derivative packages. These packages are designed to inflate developer reputation scores through automated scripts, which can lead to significant security risks.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the competent_giraffe_0xrequest package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names. The malicious payload continuously republishes these variants, polluting the npm registry and potentially compromising the integrity of applications that depend on this package. The origin of this issue is linked to the tea.xyz token reward campaign, which exploits npm's publishing mechanisms.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall competent_giraffe_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 avoid using the competent_giraffe_0xrequest package altogether. If it is already in use, consider replacing it with a trusted alternative that provides similar functionality without the associated risks.
Conclusion
The competent_giraffe_0xrequest package poses a significant security risk due to its malicious code designed to manipulate npm's publishing process. It is crucial to remove this package from your projects and monitor for any updates or patches. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for competent_giraffe_0xrequest →
FAQ
It is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores.
The malicious code can modify your package.json file, remove private flags, and republish variants, potentially compromising your application's integrity.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
It is advisable to remove the competent_giraffe_0xrequest package from your project and replace it with a trusted alternative.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest secure versions.