Malicious Code Injection in racial_giraffe-strongdev Package
Summary
MAL-2025-107685: Malicious code in racial_giraffe-strongdev (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 racial_giraffe-strongdev package is part of the npm ecosystem, often used in various JavaScript projects. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with packages that manipulate developer reputation scores. This package, like others in the campaign, is designed to automatically generate and publish derivative packages, making it susceptible to malicious code injection.
Vulnerability Detail
The vulnerability in the racial_giraffe-strongdev package stems from its malicious payload that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, leading to the pollution of the npm registry. This behavior not only compromises the integrity of the package but also poses a risk to developers who may unknowingly use these compromised packages in their projects. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs autopublish scripts to inflate reputation scores.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall racial_giraffe-strongdev
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 remove the racial_giraffe-strongdev package from your project by executing: npm uninstall racial_giraffe-strongdev. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The racial_giraffe-strongdev package contains a significant vulnerability due to its malicious code that modifies essential project files. It is imperative to take immediate action by updating or removing the package to safeguard your project from potential risks. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.
See every vulnerability recorded for racial_giraffe-strongdev →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, known for generating and publishing derivative packages.
The vulnerability can lead to the injection of malicious code, compromising your project's integrity and potentially affecting your development environment.
You should uninstall the package immediately and check for any updates or patches that may address the vulnerability.
Yes, you can use Vulert, which monitors and alerts you in real-time for open-source vulnerabilities using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.