Malicious Code Injection in Attractive Guanaco Z3N Package
Summary
MAL-2025-99653: Malicious code in attractive_guanaco_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 'attractive_guanaco_z3n' package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. It is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. This package is particularly vulnerable due to its inclusion of scripts that manipulate package metadata and continuously republish variants, leading to potential abuse in the npm registry.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the 'attractive_guanaco_z3n' package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which can lead to the pollution of the npm registry. The malicious payload is designed to automate the creation and publication of these packages, which can compromise the integrity of the npm ecosystem and affect developers relying on legitimate packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall attractive_guanaco_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. Ensure that you do not include 'attractive_guanaco_z3n' in your package.json file. You can also use the following command to uninstall it if it is already installed: npm uninstall attractive_guanaco_z3n.
Conclusion
The 'attractive_guanaco_z3n' package contains malicious code that poses a significant risk to developers and the npm ecosystem. It is crucial to remove this package and monitor your dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your projects.
See every vulnerability recorded for attractive_guanaco_z3n →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to automate the publication of derivative packages.
The malicious code can modify your package.json file, remove private flags, and generate random package names, potentially compromising your project's integrity.
You should uninstall the package immediately using the command: npm uninstall attractive_guanaco_z3n.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.