Malicious Code Injection in semantic_grasshopper_z3n Package
Summary
MAL-2025-108526: Malicious code in semantic_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 semantic_grasshopper_z3n package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. It is designed to facilitate the creation and publication of JavaScript packages. However, this package has been compromised, leading to significant security concerns due to its malicious functionalities.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the semantic_grasshopper_z3n package. This code is designed to manipulate the package.json file by removing private flags, altering version numbers, and generating random package names. The malicious payload continuously republishes these variants, polluting the npm registry and potentially compromising developer reputation scores. The origin of this vulnerability is linked to a broader campaign that aims to exploit npm for token rewards, making it a significant threat to the integrity of the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall semantic_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 workaround, you can remove the semantic_grasshopper_z3n package from your project by executing the command: 'npm uninstall semantic_grasshopper_z3n'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The semantic_grasshopper_z3n package has been identified as containing malicious code that poses a significant risk to developers and their projects. It is essential to take immediate action by updating or removing the package to safeguard your application from potential threats.
See every vulnerability recorded for semantic_grasshopper_z3n →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed for creating and publishing JavaScript packages.
The malicious code modifies your package.json file, removes private flags, and republishes variants, which can lead to reputation damage and security risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit the Vulert playground at Vulert Scanner to check your application without any signup.
Regularly update your dependencies, use tools like Vulert for monitoring, and audit your packages for known vulnerabilities.
Immediately uninstall the package using 'npm uninstall semantic_grasshopper_z3n' and monitor for updates or patches.