On December 1, Google published CVE-2026-85259, a flaw in Gemini CLI and its GitHub Action rated 10.0 — the maximum under CVSS 4.0. An unauthenticated attacker could use crafted GitHub issue content to run commands or read sensitive files on a GitHub Actions runner.
Read that again. Not a malicious pull request. Not a compromised dependency. A GitHub issue. Anyone who can open an issue on a public repository can put text in front of an agent that holds credentials — and the agent does what the text tells it to.
How an issue reaches the runner
Gemini CLI's triage, review, and issue-fixer workflows feed issue titles and bodies into the agent's prompt. That is the whole point of a triage bot: read the issue, label it, maybe try a fix. The problem is what the agent was allowed to do with that input.
Where a workflow gave the agent shell tools, those tools ran with the job's permissions and secrets. The workflows passed a GITHUB_TOKEN to the agent step and took model provider keys as action inputs, while a checkout step that persisted credentials left a Git token sitting on the runner's disk. So the chain was: stranger writes an issue, the agent reads it as instructions, the shell runs, and the tokens are right there.
Google's record confirms the outcome — command execution and file access — but not the exact payload. That is normal for this kind of disclosure: the mechanism matters more than one payload. The mechanism is that untrusted text met a privileged agent.
This is the second 10.0, not the first
CVE-2026-85259 is not the first critical flaw in Gemini CLI's GitHub automation. In April 2026, Google fixed CVE-2026-12537, also rated 10.0, a remote code execution flaw involving workspace trust and tool allowlisting bypasses. The researcher behind both reports, Dan Lisichkin, showed in a proof of concept how a public issue could steer a triage agent into leaking a GitHub token that the checkout step had persisted.
Here is the part that should worry you most: the April fix does not cover the December flaw. The new CVE record uses a date, not a version number, as its cut-off — anything before May 12, 2026 is affected. The two pull requests Google references as the fix (PR 518 and PR 26897) both set persist-credentials: false on actions/checkout steps, which stops the workflow token from being written into the runner's Git configuration.
And workflow files copied into other repositories do not change when the Gemini CLI package or the action is updated. If you copied Google's example triage workflow into your repo in March, your copy is still the vulnerable one, no matter how new your Gemini CLI version is.
What to check in your own repos
As of December 2 there are no reports of attacks using this flaw, it is not in CISA's Known Exploited Vulnerabilities catalog, and no public proof of concept has been identified. That is good news and it is also irrelevant to what you should do, because the affected workflows and the fixes are public on GitHub, and prompt injection against CI agents has been a steady research focus all year.
First, find every repository that uses run-gemini-cli or a Gemini triage, review, or issue-fixer workflow — including copies of Google's example templates:
grep -r "run-gemini-cli" .github/workflows/
grep -r "persist-credentials" .github/workflows/ || echo "not set — credentials are on disk"
Then pin the action to a full commit SHA from May 12, 2026 or later, update Gemini CLI to its latest release, and add persist-credentials: false to every actions/checkout step in workflows that process issue or fork pull request text:
- uses: actions/checkout@v4
with:
persist-credentials: false
Remove shell tools and auto-approve mode from triage jobs, keep tool allowlists narrow, and scope GITHUB_TOKEN to read-only permissions where possible. Gate issue-triggered agent runs behind a maintainer label, an author_association check, or a manually started workflow. Then rotate GEMINI_API_KEY, GOOGLE_API_KEY, GitHub App keys, and any other secret exposed to affected runners, and review past runs on issues and fork pull requests for shell syntax and unfamiliar outbound connections.
The lesson is not "don't use agents"
Agents that read issues and write code are genuinely useful, and they are not going away. The lesson is that an agent is a program, and its input is untrusted the moment a stranger can write it. We learned this with SQL injection twenty years ago: never build a query out of user input. The same rule applies now, except the "query" is a prompt and the "database" is a shell with your tokens in it.
Treat agent input like user input. Give the agent no credential it does not need. Never let it run on a stranger's text without a gate. A triage bot that can run shell commands on whatever anyone types into your issue tracker is not a helper. It is a remote shell with a friendly name — and on December 1, it got a 10.0 to prove it.
Top comments (0)