Malicious Code Injection in irrelevant_giraffe_z3n Package - npm Vulnerability
Summary
MAL-2025-104424: Malicious code in irrelevant_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 'irrelevant_giraffe_z3n' package is part of a series of npm packages associated with the tea.xyz token reward campaign. These packages are designed to automate the generation and publication of derivative packages, often with randomized names, to inflate developer reputation scores for token rewards. This behavior makes the package susceptible to malicious exploitation.
Vulnerability Detail
The vulnerability originates from the package's design, which includes autopublish scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This leads to continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of the software supply chain. The malicious payload can affect developers by inflating reputation scores fraudulently and introducing security risks into their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall irrelevant_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 prevent the installation of this package by using npm's package-lock.json to monitor dependencies. You can also utilize Vulert to check if your application is affected by this vulnerability. Visit https://vulert.com/scanner to use the Vulert playground without signup.
Conclusion
The 'irrelevant_giraffe_z3n' package poses a significant risk due to its malicious code that alters package metadata and republishing behavior. Developers should take immediate action to remove this package and monitor their applications for vulnerabilities using tools like Vulert.
See every vulnerability recorded for irrelevant_giraffe_z3n →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation of derivative packages.
The vulnerability can lead to the introduction of malicious code, compromising the integrity of your application and potentially affecting its users.
You can use the Vulert playground at Vulert Scanner to check your application for vulnerabilities without needing to sign up.
Remove the 'irrelevant_giraffe_z3n' package and monitor your dependencies using tools like Vulert to stay informed about vulnerabilities.
Currently, there is no specific patch for the 'irrelevant_giraffe_z3n' package. It is advisable to remove the package until a secure version is released.