gemini-mcp-tool can be tricked to run commands without approval
What this means
An attacker who controls what text a language model receives can trick the model into passing hidden commands to gemini-mcp-tool. These commands can automatically approve actions that should require human approval, such as running shell commands or modifying files on the host computer. This could lead to data theft, system compromise, or malware installation.
SecurityElites Manager Brief: the decision in one minute
A language model using gemini-mcp-tool can be manipulated to pass commands that bypass safety checks. This is high risk if the tool runs on systems where the LLM can influence what other systems do. You need to stop using this tool or find out if a fixed version exists from the vendor.
| SecurityElites Fix-First Score | 42 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 30 days High severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform engineering or security team, in coordination with the team running LLM agents. |
| Likely effort | An estimate is difficult because there is no fixed version yet. You will need to contact the vendor or look for an alternative tool. If your team can replace it, plan 2–8 hours depending on how deeply it is integrated. |
Questions to ask your team or supplier
- Does a fixed version of gemini-mcp-tool exist, and what is the timeline from the vendor?
- Which LLM agents use gemini-mcp-tool, and can they all be switched to an alternative or isolated until a patch is available?
- What commands is gemini-mcp-tool authorized to run, and who approved that scope?
Message you can forward to the owning team
Security notice: gemini-mcp-tool can be tricked to run commands without approval (CVE-2026-142216)
Severity: High (7.7 of 10)
SecurityElites Fix-First Score: 42 of 100
SecurityElites fix window: Within 30 days
Action: no fixed version is listed yet; apply the risk-reduction steps and watch the vendor advisory.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-142216-gemini-mcp-tool-can-be-tricked-to-run-commands-without-approval/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01979What is at stake in your AI setup
- Tools and systems the LLM agent is connected to: could be used to execute commands or modify files without approval.
- Chat history and prompts: attackers can craft prompts to inject commands, and logs may reveal the attack.
- Keys for external systems: if gemini-mcp-tool is used to call services, compromised auto-approve could expose credentials or escalate API calls.
Who is exposed
- LLM agents using gemini-mcp-tool version 1.1.8 or earlier to call Gemini CLI
- Systems where the LLM can influence what commands run or what files are changed
- Teams using MCP (Model Context Protocol) tools with untrusted or internet-facing prompts
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| jamubc gemini-mcp-tool | Every version up to and including 1.1.8 | No fixed version recorded. Follow the steps below. |
The fixed version here was taken from the wording of the official description, because the national database has not listed it yet.
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
|---|---|
| Account needed | None. No login is needed |
| Does a person have to do something | Yes, a small ordinary action by a user |
| How hard it is to do | Hard. It depends on conditions the attacker does not control |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
Read from the official severity rating: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Kind of coding mistake
- CWE-88
If you cannot upgrade today
- Disable auto-approve or yolo mode in Gemini CLI configuration if it is enabled, so that commands always require manual approval.
- Restrict what MCP tool arguments the LLM can pass to gemini-mcp-tool by validating or filtering the model parameter on the tool input side.
- Use network isolation to prevent the system running gemini-mcp-tool from reaching external systems or modifying sensitive files.
Signs it may already have been used against you
- LLM agent logs showing unusual text in model parameter, such as references to --yolo or --no-auth flags
- Gemini CLI logs showing auto-approve or --yolo mode active when it should not be
- Unexpected file modifications or shell commands executed by gemini-mcp-tool, especially those not traced back to a human request
- MCP tool argument logs containing Gemini CLI options that were not explicitly requested by the calling application
SecurityElites Fix Guide: step by step
- Find where gemini-mcp-tool is installedSearch your systems for gemini-mcp-tool, check package managers, container images, and agent configurations. List all hosts and applications that depend on it.
- Check the installed versionRun the command to see what version of gemini-mcp-tool is running on each system. Record the version number for comparison.
- Contact the vendor for a fixed versionReach out to the gemini-mcp-tool maintainers to ask if a patched version exists beyond 1.1.8. Check the project repository, issues page, and security contact for updates.
- Assess your exposureReview which LLM agents use gemini-mcp-tool and whether they receive prompts from untrusted sources (users, the internet, external systems). Rate each use as high, medium, or low risk based on what commands the tool is allowed to run.
- Stop using the tool or isolate itIf a fixed version does not exist, disable gemini-mcp-tool on production systems or move it to an isolated environment where the LLM has no access to it. Plan to migrate to a patched version or alternative tool as soon as one is available.
- Review recent logs for misuseCheck logs from the LLM agent and gemini-mcp-tool for the past 30 days to see if any commands were executed with unexpected options like --yolo or auto-approve flags. Look for file changes or commands that were not authorized by humans.
- Update your incident response planIf you found evidence that the tool was used to run unauthorized commands, escalate to your security team. Document what happened, who was affected, and what access was granted.
- Monitor for a fixed versionSet up an alert or check the gemini-mcp-tool repository weekly for a new release. As soon as a fixed version is available, plan and execute an upgrade.
How to confirm it is fixed: Confirm that gemini-mcp-tool is no longer used in production, or verify that a fixed version (if released) is installed and that the version number is above 1.1.8.
SecurityElites Quick Fixes: copy and paste
Check gemini-mcp-tool version using npmfor this issue
npm list gemini-mcp-toolCheck gemini-mcp-tool version using pipfor this issue
pip show gemini-mcp-toolTest in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## gemini-mcp-tool can be tricked to run commands without approval (CVE-2026-142216)
**Severity:** High 7.7 | **SE Fix-First Score:** 42/100 | **Fix window:** Within 30 days
**Record:** SE-AIV-01979 https://securityelites.com/ai-vulnerabilities/cve-2026-142216-gemini-mcp-tool-can-be-tricked-to-run-commands-without-approval/
### Why this matters
An attacker who controls what text a language model receives can trick the model into passing hidden commands to gemini-mcp-tool. These commands can automatically approve actions that should require human approval, such as running shell commands or modifying files on the host computer. This could lead to data theft, system compromise, or malware installation.
### What to do
1. Find where gemini-mcp-tool is installed
2. Check the installed version
3. Contact the vendor for a fixed version
4. Assess your exposure
5. Stop using the tool or isolate it
6. Review recent logs for misuse
7. Update your incident response plan
8. Monitor for a fixed version
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-142216-gemini-mcp-tool-can-be-tricked-to-run-commands-without-approval/
### Done when
- [ ] The risk-reduction steps are applied and the vendor advisory is being watched for a fixed version
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm that gemini-mcp-tool is no longer used in production, or verify that a fixed version (if released) is installed and that the version number is above 1.1.8.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
The same kind of mistake in other AI tools
- jncraton languagemodels can run attacker code via model templates High · CVE-2026-139989
- DeepSeek-AI DeepGEMM can write data outside memory bounds in attention code High · CVE-2026-139817
- NLTK can run untrusted dot command from writable directory High · CVE-2026-128134
- rmcp OAuth resource parameter not validated, allowing token theft High · CVE-2026-63127
- n8n workflow expressions can run code with full server access High · CVE-2026-65591
Change history
- 2 Dec 2026: Made public
- 2 Dec 2026: Fixed version added, from the vendor's own CVE record
- 2 Dec 2026: Fixed version added, from the wording of the official description
- 2 Dec 2026: Published
- 2 Dec 2026: Fixed version added, from the wording of the official description
Official record
gemini-mcp-tool through 1.1.8 contains an argument injection vulnerability in executeGeminiCLI() that allows attackers controlling MCP tool arguments to inject Gemini CLI options via the model parameter. Attackers can prompt-inject the calling LLM agent to pass values like --yolo to ask-gemini or brainstorm, enabling auto-approve mode for host command execution and file modification.
Weakness type: CWE-88
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-142216For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 3 Dec 2026. Read the vendor advisory before changing a production system.