Google has disclosed a critical flaw in the GitHub Actions workflows that wrap Gemini CLI, and most affected repositories probably never got an alert. CVE-2026-85259 carries a CVSS score of 10.0. The GitHub advisory says a crafted GitHub issue could let an unauthenticated attacker execute arbitrary commands or read sensitive files.
Updated December 2, 2026
Key Takeaways
- CVE-2026-85259 is a CVSS 10.0 flaw in Gemini CLI GitHub Actions triage workflows, published Dec. 1, 2026.
- The fixes merged in May under pull requests titled as chores, 203 days before the CVE by our count.
- Dependabot alerts aren’t supported because the CVE uses dates, not package versions.
- The patches harden checkout only; restrict shell tools and rotate secrets yourself.
The CVE went public on Dec. 1, 2026. Google’s fix cut-off is May 12, 2026. We read the CVE record, the advisory and the two patch pull requests to work out what changed, what didn’t, and what you still have to do yourself.
What the Gemini CLI flaw is
The CVE record is titled “Unauthenticated Remote Code Execution and Credential Exfiltration in Gemini CLI GitHub Actions Triage Workflows.” It covers the automated issue-triage workflows in Gemini CLI and the run-gemini-cli GitHub Action, not the model and not local use of the CLI.
According to an analysis by Ostorlab, the triage templates run the issue title and body through the CLI shell processor and append the output to the model prompt. That puts text any outsider can write in front of an agent that may have shell tools. Ostorlab notes that a maintainer can still be attacked through a pull request from a fork. Private repositories are exposed too, if lower-trusted members or outside collaborators can open issues.
CISA’s enrichment on the CVE record rates exploitation as none, automation as yes and technical impact as total. Ostorlab reports no public proof of concept and no exploitation, and the flaw is not in CISA’s KEV catalog.
Why you probably weren’t warned
Three details explain the quiet rollout.
- The fixes were labeled as chores. The patch PRs are titled “chore: align checkout steps with standard practices” in run-gemini-cli and “chore: update checkout action configuration in workflows” in gemini-cli. Neither title mentions security.
- Disclosure came much later. By our count, 203 days passed between the May 12 cut-off and the Dec. 1 CVE. The record shows the ID was reserved on Sept. 3, 89 days before it was published.
- Dependabot can’t help. The CVE identifies affected versions by date, not by version number. GitHub’s advisory states that Dependabot alerts are not supported because there is no package from a supported ecosystem with an affected and fixed version.
The reach is large. Ostorlab counts 516,442 weekly npm downloads of the CLI, though only repositories that run the triage workflows on untrusted input are affected.
The patch fixes less than you might think
The linked patches add persist-credentials: false to checkout steps. Ostorlab puts it bluntly: “The linked patches establish checkout hardening, not removal of shell tools.” It adds that this setting does not stop commands from using another credential, including an explicitly supplied GITHUB_TOKEN.
Our read: upgrading the action alone does not close the path from issue text to command execution. The tool restrictions in the advisory are a configuration change you make in your own workflow files.
What to do in your repositories
The CVE record lists four steps:
- Update to the latest hardened versions of run-gemini-cli and @google/gemini-cli, or disable or remove legacy triage workflows that run on untrusted public issue input.
- Set
persist-credentials: falseon actions/checkout steps in workflows that process untrusted input. - Restrict tool allowlists (coreTools) and avoid unrestricted shell execution (run_shell_command or –yolo) when triaging untrusted issues or pull requests.
- Rotate repository secrets such as GEMINI_API_KEY and APP_PRIVATE_KEY that were present on affected runners.
Ostorlab adds practical notes. The latest CLI release is 0.71.1. The upstream examples reference @main, which is not a fixed target, so pin the action to a full commit SHA. If you can’t harden the workflow, run triage only from a workflow_dispatch event that a maintainer starts.
Rotation matters even if you delete the workflow, because removing it does not revoke a token that was already read. No indicators of compromise have been published. A reasonable starting point is reviewing issue-triggered runs with gh run list --event issues --limit 100 and checking their logs. For a wider token review, our GitHub token audit checklist still applies.
The bigger lesson for AI agents in CI
This is a familiar pattern: an AI agent with tools reads untrusted text in CI. Treat issue and pull request bodies as hostile input, give the agent the smallest token that works, and don’t rely on Dependabot to tell you when an agent workflow template changes. We covered a similar credential problem in what Wfx-Loot means for CI credential design.
Frequently asked questions
Am I affected if I use Gemini CLI locally?
No, unless you run the affected workflow templates on untrusted issue text.
Has it been exploited?
Ostorlab reports no public proof of concept or exploitation, and it is not in CISA’s KEV catalog.
Why didn’t Dependabot warn me?
GitHub says Dependabot alerts aren’t supported because the advisory has no package with an affected and fixed version.
Is updating enough?
No. Also set persist-credentials: false, restrict shell tools and rotate secrets that were on affected runners.