Malicious Code Injection in right_goat_z3n Package: A Threat to npm Ecosystem
Summary
MAL-2025-96365: Malicious code in right_goat_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 right_goat_z3n package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development and deployment of applications by providing reusable code. However, it has been identified as part of a malicious campaign that exploits npm's publishing capabilities, potentially compromising the integrity of projects that depend on it.
Vulnerability Detail
The vulnerability in the right_goat_z3n package originates from its association with a token reward campaign that floods npm with malicious packages. These packages contain scripts designed to automatically generate and publish derivative packages with randomized names, effectively polluting the npm registry. The malicious payload modifies the package.json file to remove private flags, alters version numbers, and continuously republishes variants, which can lead to significant security risks for developers relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall right_goat_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 measure, avoid using the right_goat_z3n package and any other packages associated with the tea.xyz token reward campaign. Regularly audit your project's dependencies to identify and remove any potentially malicious packages.
Conclusion
The right_goat_z3n package poses a significant threat to the npm ecosystem due to its malicious nature. Developers should take immediate action to remove this package and audit their dependencies to ensure the security of their projects. Utilizing tools like Vulert can aid in maintaining a secure development environment.
See every vulnerability recorded for right_goat_z3n →
FAQ
The right_goat_z3n package is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through the publication of derivative packages.
This vulnerability can compromise the integrity of your project by introducing malicious code that modifies your package.json file and republishing variants, potentially leading to security breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By utilizing the Vulert playground, you can check if your application is affected by this vulnerability without any signup.
If you have installed the right_goat_z3n package, you should uninstall it immediately and review your project's dependencies for any other potentially malicious packages.
Yes, tools like Vulert can help you monitor your dependencies for vulnerabilities. It uses your package-lock.json to provide real-time alerts for any open-source vulnerabilities.