CVE-2026-142216: gemini-mcp-tool through 1.1.8 Argument Injection via model Parameter
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.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Deployments of npm/gemini-mcp-tool through version 1.1.8 are exposed when an attacker can influence MCP tool arguments, including by prompt-injecting the LLM agent that invokes the tool.
What does exploitation require?
An attacker must cause the calling agent to pass a crafted value in the model parameter to the ask-gemini or brainstorm tool path. The injected value can be interpreted as Gemini CLI options, such as --yolo.
What is the practical impact of the --yolo example?
The --yolo option can enable auto-approve mode for host command execution and file modification. This can turn control over a model argument into execution and modification actions on the host.