Malicious Code Injection in gemini-computer-use: A Critical Security Threat
Summary
MAL-2026-16355: Malicious code in gemini-computer-use (npm). Affects gemini-computer-use versions 0.1.2. 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 gemini-computer-use package, available through npm, is designed to facilitate computer usage tracking and management. However, it has been found to contain malicious code that can compromise system security. This vulnerability allows attackers to execute arbitrary commands on the host system, posing a significant risk to users and their data.
Vulnerability Detail
The vulnerability originates from the npm entrypoint bin/cli.js, which executes a command that fetches and runs a script from a potentially malicious external server. This script can install additional malicious files and create persistent backdoor access to the system. The lack of verification for the downloaded scripts means that any code hosted on the external server can run with the same privileges as the user, leading to severe security breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall gemini-computer-use
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, avoid using the gemini-computer-use package until it has been patched. If you must use it, consider running it in a controlled environment, such as a virtual machine, to mitigate potential risks.
Conclusion
The gemini-computer-use package contains a critical vulnerability that allows for arbitrary code execution, posing serious security risks. Users are advised to update to the latest version or implement workarounds to mitigate potential threats. Regular monitoring with tools like Vulert can help maintain security in open-source applications.
See every vulnerability recorded for gemini-computer-use →
FAQ
It is an npm package designed for tracking and managing computer usage, but it has been compromised with malicious code.
The vulnerability allows the package to execute arbitrary commands by fetching and running scripts from an external server without verification.
The risks include unauthorized access to the system, data theft, and the potential for further exploitation by attackers.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application using the Vulert playground at Vulert Scanner.
Yes, you can run the package in a controlled environment, such as a virtual machine, to limit exposure to the vulnerability.