Malicious Code Injection in optimistic_galliform_z3n Package
Summary
MAL-2025-95769: Malicious code in optimistic_galliform_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 optimistic_galliform_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 automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. Its functionality is compromised by malicious scripts that alter package metadata and publish harmful variants.
Vulnerability Detail
The vulnerability in the optimistic_galliform_z3n package stems from its association with a malicious campaign that employs scripts to modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This not only affects the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall optimistic_galliform_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 workaround, you can avoid using the optimistic_galliform_z3n package until a secure version is released. Additionally, you can monitor your project for any dependencies that may have been affected by this vulnerability.
Conclusion
The optimistic_galliform_z3n package is compromised by a vulnerability that allows malicious code injection, affecting the npm ecosystem and potentially harming developers. It is crucial to update or remove the package to ensure the security of your projects.
See every vulnerability recorded for optimistic_galliform_z3n →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation and publication of derivative packages.
The vulnerability can lead to the introduction of malicious code into your project, compromising its integrity and potentially affecting your application's security.
You should update the package to a patched version if available, or remove it from your project to mitigate the risk.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file. You can check if your application is affected by this vulnerability using the Vulert playground.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without requiring any signup.