CVE-2026-85259: Google's automated Gemini CLI triage workflows (gemini-cli and the run-gemini-cli GitHub Action) could be driven by a crafted GitHub issue to run commands or read secrets (fixed 12 May 2026)
Google disclosed a code injection flaw in the automated issue-triage GitHub Actions workflows shipped in Gemini CLI and the run-gemini-cli GitHub Action before 2026-05-12. An unauthenticated outsider could open a GitHub issue with crafted content and make the workflow execute arbitrary commands or read sensitive files. The linked fixes, merged on 11 and 12 May 2026, set persist-credentials: false on every actions/checkout step in the workflows. Anyone who copied these triage workflows into their own repositories should re-sync them.
What it is
Gemini CLI and google-github-actions/run-gemini-cli ship GitHub Actions workflows that let Gemini triage new issues automatically. Issue titles and bodies are written by anyone on GitHub, and they flow into the workflow.
Per the CVE record, workflows from versions before 2026-05-12 let an unauthenticated remote attacker run arbitrary commands or read sensitive files through crafted issue inputs.
The fixes referenced by the CVE are run-gemini-cli PR #518 (merged 11 May 2026) and gemini-cli PR #26897 (merged 12 May 2026). Both add persist-credentials: false to actions/checkout across the workflow files (gemini-invoke, gemini-review, gemini-plan-execute, gemini-issue-fixer and others), so the job's GitHub token is no longer left in the checked-out repository's git config.
NVD published the CVE on 1 December 2026, about six months after the fix. Copies of the workflows made before 12 May 2026 stay vulnerable until someone updates them.
How to check
- Search your repositories' .github/workflows/ for Gemini triage or invoke workflows copied from gemini-cli or run-gemini-cli.
- In those files, check whether every actions/checkout step sets persist-credentials: false and whether the copy predates 12 May 2026.
- Check which permissions the workflow's GITHUB_TOKEN gets and which secrets (such as GEMINI_API_KEY) the job can read.
How to fix
- Re-sync copied workflows with the current versions in google-github-actions/run-gemini-cli (or gemini-cli) and pin the action to a release after 12 May 2026.
- Set persist-credentials: false on actions/checkout and give the triage job the smallest token permissions it needs.
- Treat issue text as untrusted model input. If an exposed workflow ran on public issues, review its run logs and rotate the API keys and tokens it could reach.
grep -rln -i 'gemini' .github/workflows/
grep -rn -A3 'actions/checkout' .github/workflows/ | grep -n 'persist-credentials' Sources
- highCVE-2026-142216: gemini-mcp-tool passes the model parameter straight to Gemini CLI, so a prompt-injected agent can slip in --yolo and auto-approve commands on the host (1.1.8, no fix yet)
- highCVE-2026-117558 and seven more: VulnCheck discloses command injection in eight MCP servers and agent tools, from ai-sdlc and sf-mcp to mcp-ffmpeg and an ATXP Gemini CLI extension