Malicious Code Injection in key_grasshopper_z3n Package
Summary
MAL-2025-95169: Malicious code in key_grasshopper_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 key_grasshopper_z3n package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate token rewards by generating and publishing derivative packages. However, it has been identified as containing malicious code that compromises its integrity and the security of applications that depend on it.
Vulnerability Detail
The vulnerability in the key_grasshopper_z3n package originates from its involvement in a malicious campaign that floods the npm registry with derivative packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to potential pollution of the npm registry. This can result in developers unknowingly using compromised packages, which may lead to security breaches and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall key_grasshopper_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
If an immediate update is not possible, consider removing the key_grasshopper_z3n package from your project. You can do this by executing the following command: npm uninstall key_grasshopper_z3n. This will help mitigate the risk associated with the malicious code until a fix is applied.
Conclusion
The key_grasshopper_z3n package contains malicious code that poses significant risks to applications using it. It is crucial to update or remove the package to safeguard your application from potential threats. Utilizing tools like Vulert can assist in monitoring for such vulnerabilities in real-time.
See every vulnerability recorded for key_grasshopper_z3n →
FAQ
The key_grasshopper_z3n package is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code can modify your package.json file, remove private flags, and publish unauthorized packages, potentially compromising your application's security.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check if your application is affected by visiting the Vulert playground at Vulert Scanner.
If an immediate update is not feasible, consider uninstalling the key_grasshopper_z3n package to mitigate risks until a fix is available.
Utilizing tools like Vulert can help you monitor your dependencies for vulnerabilities without requiring code access or installation.