gemini-mcp-tool 1.1.8 and earlier versions have a parameter injection vulnerability that can lead to command execution on the host machine
CVE-2026-142216 - GitHub Advisory Database
AI summary
gemini-mcp-tool 1.1.8 and earlier versions have a parameter injection vulnerability (CVE-2026-142216) that allows attackers to execute commands and modify files on the host machine. The vulnerability is in the executeGeminiCLI() function; an attacker who can control MCP tool parameters can inject Gemini CLI options through the model parameter. An attacker can use prompt injection to make the calling LLM agent pass values such as --yolo in ask-gemini or brainstorm calls, enabling auto-approval mode.
Why it was selected
Parameter injection in MCP tools can escalate to host command execution through the --yolo auto-approval mode; teams deploying MCP tools can use this to check for similar attack surfaces.