gemini-mcp-tool flaw lets injected prompts run host commands, still no patch

CVE-2026-142216 in gemini-mcp-tool up to 1.1.8 lets a prompt injected agent pass –yolo through the model parameter and run host commands. There is no fixed release. Who is exposed, and three settings that help now.

Christopher Ort
By i10X News Desk · Reviewed by Christopher Ort · 4 min read
Share
A glowing terminal window on a dark desk with a small toggle switch flipped to a red position and command lines spilling out
Image: AI-generated, i10X
On this page
  1. From a planted instruction to a shell
  2. Who is actually exposed
  3. What to do without a patch
  4. One step further: popular tool, slow fixes

gemini-mcp-tool, an MCP server that lets Claude Code and other agents hand prompts to Google’s Gemini, has an argument injection flaw in every release up to the current 1.1.8, and no fixed version exists. VulnCheck’s advisory for CVE-2026-142216, credited to Zachariah Mithani of AploSec, explains that the server copies the model parameter onto the Gemini CLI command line unchecked. A value like --yolo therefore stops being a model name and becomes a flag that turns on auto approve, after which Gemini can run shell commands and change files on the host without asking. VulnCheck rates it 7.7 under CVSS 4.0, high.

From a planted instruction to a shell

Nobody needs network access to the MCP server. The attacker hides instructions in something the agent reads, such as a web page, a README or an issue, and gets the agent to call the ask-gemini or brainstorm tool with a doctored model value. In the 1.1.8 source, executeGeminiCLI() simply appends -m plus that string to the argument list. The prompt injection has to work first, which is why the score carries high attack complexity and user interaction, but once it does, the CLI runs with the user’s rights.

It is the second serious bug in the tool this year. CVE-2026-0755, a command injection rated 9.8, was only closed in version 1.1.6 at the end of May.

Who is actually exposed

Our reading of the 1.1.8 code adds a detail the advisory leaves out. Google retired the Gemini CLI for free, Google AI Pro and Ultra users on 18 June 2026, and since that date the tool switches by default to the Antigravity CLI backend, which never passes a model value at all. The route VulnCheck describes runs through the Gemini CLI backend. That covers 1.1.8 setups with GEMINI_MCP_BACKEND=gemini, which the project’s README tells Enterprise, Standard license and paid API key users to set, and older releases that only know the Gemini CLI. We have not tested the exploit ourselves, so treat every install as affected until the maintainer says otherwise.

What to do without a patch

  • Find it: look for gemini-mcp-tool in .mcp.json, claude_desktop_config.json or the output of claude mcp list. An entry like npx -y gemini-mcp-tool always pulls the latest release, which is 1.1.8.
  • Check the backend: if GEMINI_MCP_BACKEND=gemini is set in that config or in the environment, you are on the path the advisory describes.
  • Switch off yolo in Gemini CLI: the Gemini CLI settings have security.disableYoloMode, which disables yolo mode even when a flag requests it. Set it to true in ~/.gemini/settings.json and restart. That closes the route in the advisory, not every flag an attacker might smuggle in.
  • Keep a human in the loop: do not auto allow the ask-gemini and brainstorm tools in your agent, and do not let it call them while it is reading untrusted pages, repositories or tickets.
  • Leave old versions: anything before 1.1.6 still carries CVE-2026-0755. If you cannot do the above, remove the server until a fixed release appears.

Other MCP servers have failed the same way, for example the code-review-mcp-server command injection from November. If you are weighing community wrappers against Google’s own tooling, our Gemini CLI comparison helps, and new cases land on our AI Security tracker.

The package is far from niche. npm counted 14,775 downloads in the 30 days to 2 December, 3,202 in the last week and 385,404 since the first release on 29 June 2025; the GitHub repository shows about 2,300 stars. The per version figures for last week show 3,005 of 3,202 downloads, or 93.8 percent, on 1.1.8, so almost every fresh install sits on the vulnerable release. Another 147 downloads, 4.6 percent, were versions older than 1.1.6 that are still open to the 9.8 bug as well.

The project’s history suggests defenders should not wait. According to the Zero Day Initiative, CVE-2026-0755 was reported to the maintainer on 25 July 2025 and published on 9 January 2026 without a fix. Version 1.1.6 reached npm on 30 May 2026, by our count 309 days after the report and 141 days after public disclosure. The last release, 1.1.8, came out on 18 June 2026, 168 days ago, and the repository shows no commits since then.

The damage would not stay with the developer. An agent that runs with auto approve on a workstation can read SSH keys, cloud credentials and tokens stored there, and can change code that colleagues and customers later ship. Still open: whether the maintainer has seen the report and whether a release is planned. We will update this article when that changes.

How we checked

Checked on 3 December 2026, 12:29 CET.

  • Read the VulnCheck advisory, the NVD and GitHub advisory records for CVE-2026-142216, and the ZDI advisory for CVE-2026-0755.
  • Read the gemini-mcp-tool 1.1.8 source (executor, backend selection, constants) and the README on GitHub, and the Gemini CLI configuration reference.
  • Download figures come from the npm API on 3 December 2026; release dates from the npm registry.
  • The exposure split by backend, the shares and the day counts are our own analysis; we did not test the exploit.
Christopher Ort

Christopher Ort

Christopher Ort is the editor of i10X News at i10x.ai. He has worked hands-on with AI tools, models and agent workflows for years and leads i10X’s coverage of AI launches, funding and research. He is the author of “The Style Penalty”, an SSRN study on how frontier AI models judge AI-written CVs, covered by heise online and t3n.

Editor's picks

  1. Aikido Raises $370M at $4B: Europe’s AI Security Bet on Fixing, Not Finding
  2. AI Code Review vs Automated Reasoning: What Anthropic and AWS Found Hunting Bugs
  3. EU Finds Meta Breached the DSA Over AI Scam Ads: What Must Change, What It Could Cost
  4. gemini-mcp-tool flaw lets injected prompts run host commands, still no patch
  5. Neural Override RAT lets an LLM pick its next attack on infected Windows PCs