Malicious Code Vulnerability in ratty_gull_z3n Package
Summary
MAL-2025-107735: Malicious code in ratty_gull_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 ratty_gull_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 lead to inflated developer reputation scores. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the ratty_gull_z3n package originates from its design to include autopublish scripts that modify the package.json file. These modifications remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This can result in significant security risks, including the potential for malicious actors to exploit these packages for nefarious purposes.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ratty_gull_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 adding it to your npm ignore list or by using npm audit to identify and address vulnerabilities in your project.
Conclusion
The ratty_gull_z3n package contains a significant vulnerability that can compromise the integrity of the npm registry. It is crucial to remove this package from your project and monitor your dependencies for similar issues. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for ratty_gull_z3n →
FAQ
The ratty_gull_z3n package is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially allowing malicious actors to exploit your project through compromised packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring any installation.
You should review your project's dependencies and consider replacing or updating them to ensure they do not rely on the vulnerable package.
Regularly audit your dependencies using tools like npm audit and consider using services like Vulert to monitor for vulnerabilities in real-time.