# gemini-mcp-tool: the model parameter smuggles Gemini CLI flags

> gemini-mcp-tool is an MCP server whose model parameter accepts Gemini CLI flags, so a supplied value can switch on auto-approve.

- **Severity:** High: A working attack on a widely used AI product or ecosystem. A fix may exist. Patch or mitigate this week.
- **Category:** Vulnerability
- **Published by:** VulnCheck
- **Disclosed:** 2026-12-02
- **CVE:** CVE-2026-142216
- **CVSS:** 7.7
- **Affects:** gemini-mcp-tool, Gemini CLI
- **Research by:** Zachariah Mithani (AploSec)
- **Primary source:** https://www.vulncheck.com/advisories/gemini-mcp-tool-through-1.1.8-argument-injection-via-model-parameter
- **Page:** https://theinjection.dev/items/gemini-mcp-tool-model-argument-injection/

gemini-mcp-tool through 1.1.8 lets a caller pass Gemini CLI options through the model parameter. VulnCheck says a prompt-injected agent can send --yolo to turn on auto-approve mode and run host commands. No fixed release is listed.

## What happened

VulnCheck published CVE-2026-142216 against gemini-mcp-tool on 2 December 2026 and credits Zachariah Mithani of AploSec. The advisory covers every release up to and including 1.1.8. The GitHub Advisory Database carried the same record the same day and lists no patched version.

## How it works

Argument injection is the mechanism, filed as CWE-88. The model parameter reaches the Gemini CLI command line as an option rather than as a plain value, so a value that starts with a dash is read as a flag. VulnCheck says an attacker who controls the MCP tool arguments can pass --yolo to the ask-gemini or brainstorm tools, which enables auto-approve mode and allows host command execution and file modification. Because the caller filling that argument is the AI agent, prompt injection against the agent is enough to choose the value.

## Who is affected

Every published release of gemini-mcp-tool is in scope, since the advisory covers 1.1.8 and earlier and 1.1.8 is the newest release on the project's releases page. The README installs the server into an MCP host such as Claude Code or Claude Desktop with npx, so the exposed path is whatever untrusted content that host reads.

## What to do

Remove gemini-mcp-tool from MCP host configurations while no patched release exists. If it has to stay, note the README's own warning that tool execution is not sandboxed in Antigravity CLI print mode, and keep the calling agent away from untrusted files, repositories and web pages.

## Quick facts

- **Affected:** gemini-mcp-tool 1.1.8 and earlier
- **Fixed in:** No fixed release listed; 1.1.8 is the newest release on the project's releases page
- **CVE:** CVE-2026-142216
- **Attack type:** Argument injection through an MCP tool parameter, CWE-88
- **Found by:** Zachariah Mithani of AploSec
- **Disclosed:** 2 December 2026, by VulnCheck
- **Status:** Published by VulnCheck and the GitHub Advisory Database; no vendor fix announced

## Questions

### Is there a patched version of gemini-mcp-tool?

No patched release of gemini-mcp-tool is listed. The advisory covers every version through 1.1.8, and 1.1.8 is the newest release on the project's GitHub releases page. Teams that need the flaw closed have to take the MCP server out of their host configuration, because the maintainer has published no security release for this issue.

### How would an attacker reach the model parameter?

The model parameter is filled by the AI agent that calls the MCP tool, not by the person at the keyboard. VulnCheck describes a prompt-injected calling agent choosing the value, so untrusted content the agent reads, such as a web page or a repository file, is the entry point. No account on the host machine is needed.

### Is this the same as CVE-2026-0755 in gemini-mcp-tool?

CVE-2026-142216 is a separate flaw. The project's release notes record version 1.1.6 as the security patch for CVE-2026-0755, an OS command injection issue, and that fix shipped before 1.1.8. The new advisory concerns argument injection through the model parameter in executeGeminiCLI(), which VulnCheck reports is still present in 1.1.8.

### Does turning off auto-approve in my agent stop this?

Auto-approve in this advisory is a Gemini CLI option rather than a setting in the agent that calls the tool. VulnCheck says passing --yolo through the model parameter enables auto-approve mode and allows host command execution and file modification. With no patched release listed, removing gemini-mcp-tool from the host configuration is the action the advisory supports.

## Sources

1. [VulnCheck Advisory](https://www.vulncheck.com/advisories/gemini-mcp-tool-through-1.1.8-argument-injection-via-model-parameter)
2. [GitHub Advisory](https://github.com/advisories/GHSA-rcxp-9wvw-qgjm)
3. [Project Releases](https://github.com/jamubc/gemini-mcp-tool/releases)
