What happened
Published 2026-12-02, CVSS 7.5 (CWE-88 argument/option injection). The MCP tool concatenates the caller-supplied model value into the Gemini CLI invocation, allowing CLI option injection. The advisory lists 'through 1.1.8' as affected.
Why it matters
This chains with the broader Gemini CLI risk: a prompt-injected agent using this MCP tool can turn on auto-approve and run arbitrary shell commands / modify files on the host, bypassing the approval gate a defender relies on.
Attack vector
executeGeminiCLI() injects the model parameter into the Gemini CLI command line without sanitisation, so an attacker who controls MCP tool arguments (e.g. via prompt injection) can inject Gemini CLI flags such as --yolo to enable auto-approve mode for host command execution and file modification.
Affected systems
@jamubc/gemini-mcp-tool ≤ 1.1.8 (npm)
Mitigation
Upgrade to gemini-mcp-tool > 1.1.8 / apply the fix in executeGeminiCLI(); validate the model argument against an allowlist.