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.
· VulnCheck · Research by Zachariah Mithani (AploSec)
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.
01What 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.
02How 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.
03Who 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.
04What 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.
Questions people ask
- 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 3 links, all fetched
- 1vulncheck.comVulnCheck Advisory
- 2github.comGitHub Advisory
- 3github.comProject Releases