Malicious Code Injection in relevant_giraffe_z3n Package
Summary
MAL-2025-107854: Malicious code in relevant_giraffe_z3n (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 relevant_giraffe_z3n package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the generation and publication of derivative packages, often with randomized names, to inflate developer reputation scores for token rewards. Its functionality is compromised due to the presence of malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the relevant_giraffe_z3n package. This code modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The malicious payload continuously republishes these variants, leading to pollution of the npm registry and potential exploitation of developers' reputations. The ramifications include unauthorized access to sensitive information and the risk of further malicious activities within the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall relevant_giraffe_z3n
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 restrict the use of the relevant_giraffe_z3n package in your project by adding it to your .npmrc file with the following line: 'package-lock=false'. This will prevent automatic updates and installations of the vulnerable package until a fix is applied.
Conclusion
The relevant_giraffe_z3n package contains malicious code that compromises the integrity of your project by modifying critical metadata. It is crucial to uninstall this package and monitor for updates to safeguard your application from potential exploitation.
See every vulnerability recorded for relevant_giraffe_z3n →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code modifies your package.json file, which can lead to unauthorized changes and potential exploitation of your project's reputation.
You should uninstall the relevant_giraffe_z3n package immediately and check for any updates or patches.
Yes, Vulert can monitor your package-lock.json file for vulnerabilities in real-time without requiring code access or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.