Malicious Code Injection in Smiling Gorilla Z3N Package
Summary
MAL-2025-108865: Malicious code in smiling_gorilla_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 Smiling Gorilla Z3N package is part of the npm ecosystem, primarily used for various JavaScript functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with derivative packages. This campaign aims to inflate developer reputation scores through automated publishing scripts, which can lead to significant security risks for users relying on this package.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the Smiling Gorilla 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 continuous republishing of these variants. The ramifications include pollution of the npm registry, potential exposure of sensitive data, and compromised integrity of applications that depend on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall smiling_gorilla_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 Smiling Gorilla Z3N package from your project by executing the command: 'npm uninstall smiling_gorilla_z3n'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The Smiling Gorilla Z3N package has been identified as a vector for malicious code that can compromise the integrity of applications. It is essential to take immediate action by updating or removing the package and utilizing tools like Vulert for ongoing monitoring of vulnerabilities.
See every vulnerability recorded for smiling_gorilla_z3n →
FAQ
It is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through automated publishing.
The malicious code can modify your package.json file, leading to potential security vulnerabilities and pollution of the npm registry.
You should uninstall the package immediately and monitor for any updates or patches that may be released.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.