Vulnerability  ·  2026-12-03

gemini-mcp-tool argument injection — prompt-inject Gemini CLI into auto-approve mode (CVSS 7.5)

VulnerabilityMedium impactGlobalCVE-2026-142216
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.
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.
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.
@jamubc/gemini-mcp-tool ≤ 1.1.8 (npm)
Upgrade to gemini-mcp-tool > 1.1.8 / apply the fix in executeGeminiCLI(); validate the model argument against an allowlist.
VulnCheck advisory — gemini-mcp-tool argument injection via model parameterNVD record CVE-2026-142216
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →