Malicious Code Injection in wily_giraffe_0xrequest Package
Summary
MAL-2025-110952: Malicious code in wily_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 wily_giraffe_0xrequest package is part of the npm ecosystem, often utilized in various JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with packages. This package, like others in the campaign, is designed to manipulate npm's package management system for malicious purposes, impacting developers and users alike.
Vulnerability Detail
The vulnerability in the wily_giraffe_0xrequest package stems from its malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the automatic publication of derivative packages. This behavior not only inflates developer reputation scores for token rewards but also pollutes the npm registry, making it difficult for legitimate packages to be found. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits npm's publishing capabilities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall wily_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 temporary workaround, you can prevent the installation of this package by using npm's package-lock.json to monitor dependencies. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities in real-time. 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 wily_giraffe_0xrequest package poses a significant threat due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to be vigilant and remove this package from their projects to maintain the integrity of their applications. Utilizing tools like Vulert can help in monitoring for such vulnerabilities effectively.
See every vulnerability recorded for wily_giraffe_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, known for malicious activities.
It can lead to the automatic publication of malicious packages, polluting the npm registry and potentially compromising your application's integrity.
Uninstall the package immediately and monitor your project for any further vulnerabilities.
Currently, there is no patched version available. It is recommended to uninstall the package.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time.