Malicious Code Injection in natural_grasshopper_z3n Package
Summary
MAL-2025-95598: Malicious code in natural_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 natural_grasshopper_z3n package is part of the npm ecosystem, often utilized for various JavaScript functionalities. However, it has been identified as part of a broader malicious campaign that exploits npm's package publishing system. This package, like others in the campaign, is designed to manipulate the npm registry and inflate developer reputation scores through automated scripts.
Vulnerability Detail
The vulnerability stems from the package's involvement in the tea.xyz token reward campaign, which has led to the creation of numerous derivative packages with randomized names. These packages contain scripts that modify the package.json file to remove private flags, alter version numbers, and continuously republish variants, thereby polluting the npm registry. This not only compromises the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall natural_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
As a temporary measure, you can avoid using the natural_grasshopper_z3n package and any packages that depend on it until a secure version is released. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The natural_grasshopper_z3n package is compromised by malicious code that can affect the integrity of your projects. It is crucial to uninstall this package and monitor your dependencies for any vulnerabilities. Utilizing tools like Vulert can help you stay informed about potential threats in your open-source software.
See every vulnerability recorded for natural_grasshopper_z3n →
FAQ
It is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
The vulnerability can lead to the inclusion of malicious code in your project, potentially compromising its security and integrity.
You should uninstall the package immediately and check for any dependencies that may be affected.
Yes, you can use Vulert, which monitors and alerts you in real-time for open-source vulnerabilities using just your package-lock.json.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.