You set up Gemini CLI in GitHub Actions a while ago. Maybe you ran /setup-github in the CLI, or copied the example workflows from the run-gemini-cli repository. Since then, Gemini labels new issues, reviews pull requests and sometimes drafts a fix. On December 1, 2026, Google published CVE-2026-85259 for exactly those workflows, with the highest score CVSS 4.0 has: 10.0.
In plain words: anyone who could open an issue on your repository could get the triage workflow to run commands and read files on the runner. Google changed its own workflows on May 12, 2026. Workflow files you copied into your repository did not change with them.
Here is what the advisory says, what the fix touched, and what to check in your repositories today. It is based on the advisory, the CVE record, the two pull requests the record points to and Ostorlab's analysis, as of December 3.
What Google disclosed
The CVE record is titled "Unauthenticated Remote Code Execution and Credential Exfiltration in Gemini CLI GitHub Actions Triage Workflows". The advisory says a code injection in the automated triage workflows of Gemini CLI and the run-gemini-cli GitHub Action, in versions before 2026-05-12, "allows an unauthenticated remote attacker to execute arbitrary commands or read sensitive files using crafted GitHub issue inputs."
Three things in that sentence matter.
The affected versions are given as a date. Everything before May 12, 2026 is affected. That covers the action at an older commit, the CLI's own workflows, and every workflow file someone copied from them before that day.
"Unauthenticated" means the attacker needs no access to your repository. On a public repository, anyone with a GitHub account can open an issue.
The problem is in the workflow files and commands that run Gemini CLI inside GitHub Actions.
Neither Google nor the researchers have published a working payload. Ostorlab reported no public proof of concept and no known exploitation as of December 2, and the CVE is not in CISA's list of exploited vulnerabilities.
How the issue text reached the agent
Gemini CLI has custom commands: TOML files with a prompt. Inside a prompt, !{...} runs a shell command and pastes its output into the prompt before it goes to the model. On your machine, the CLI shows you the command and asks before it runs it.
Ostorlab quotes the triage command from the affected templates (shortened here):
# .github/commands/gemini-triage.toml
**Issue Title**:
!{echo $ISSUE_TITLE}
**Issue Body**:
!{echo $ISSUE_BODY}
The workflow puts the issue's title and body into environment variables, and the command echoes them into the prompt. The issue-fixer workflow does the same, and it also hands the agent a GITHUB_TOKEN:
- name: 'Run Gemini PR Create'
uses: 'google-github-actions/run-gemini-cli@main'
env:
GITHUB_TOKEN: '${{ steps.mint_identity_token.outputs.token || secrets.GITHUB_TOKEN }}'
ISSUE_TITLE: '${{ github.event.issue.title }}'
ISSUE_BODY: '${{ github.event.issue.body }}'
Ostorlab points out that echo $ISSUE_BODY does not run shell code hidden in the variable on its own. Ordinary shell expansion does not work that way. So the stranger's text is not executed directly. It becomes part of the prompt of an agent that, in these workflows, had tools that run commands. What the agent then did with the text is the part nobody has published.
From there, the damage depends on what the job could reach: the GITHUB_TOKEN passed in, the Gemini API key given to the action as an input, and the token that actions/checkout leaves behind.
What the fix changed
The CVE record lists two pull requests: run-gemini-cli #518, merged on May 11, and gemini-cli #26897, merged on May 12. Both do the same thing. They add persist-credentials: false to every actions/checkout step, in 6 workflow files in the first repository and 33 in the second. Both are titled as chores about "standard practices".
That setting matters because of how checkout works by default. The actions/checkout README says the token is persisted so your scripts can run authenticated git commands, and removed in post-job cleanup. Up to v5 it sits in .git/config. Since v6 it is kept in a separate file under $RUNNER_TEMP. Either way it is on the runner while the agent works, and any command the agent runs can find it.
persist-credentials: false removes that copy. It does not remove a GITHUB_TOKEN that the workflow passes to the agent on purpose, and it does not take shell tools away from the agent. Google has not said whether other changes are part of the fix. So treat the two pull requests as one layer of the repair.
What to check today
Start with a search in every repository where you set up Gemini CLI. These come from Ostorlab's write-up:
grep -R "run-gemini-cli" .github/workflows
grep -R -E "gemini-(triage|scheduled-triage|issue-fixer|invoke)" .github/workflows
grep -R -A6 "actions/checkout" .github/workflows | grep -n "persist-credentials"
grep -R -E "run_shell_command|--yolo|coreTools" .github/workflows .gemini
If the third command prints nothing, at least one checkout still keeps its token on the runner.
Then fix what you found.
- Update the action to a commit from May 12, 2026 or later, and pin it to the full commit SHA. The upstream examples use
@main, which moves. Update the CLI too. Ostorlab names 0.71.1, from November 24, as the latest release. - Add
persist-credentials: falseto everyactions/checkoutstep in workflows that read issue or pull request text. - Take
run_shell_commandand--yoloout of triage jobs. A job that picks labels does not need a shell. - Pass the agent a token with the least permissions the job needs, or none. Keep write access in a separate job that does not read the stranger's text.
- If a workflow ran on public issues before you fixed it, rotate what that runner could reach:
GEMINI_API_KEY,GOOGLE_API_KEY,APP_PRIVATE_KEYif you use a GitHub App, and anything else in the job. Deleting the workflow does not revoke a token that was already read.
If you cannot change the workflows this week, stop them from running on untrusted text. Remove the issues and pull_request triggers and run triage from workflow_dispatch, so a maintainer reads the issue before the agent does.
The same pattern, a second vendor
Three weeks ago we wrote about the Codex issue labeler, where one GitHub issue reached OpenAI's npm release pipeline. The shape is the same: an agent with a shell, in a CI job, reading text a stranger wrote. OpenAI's fix was to take the tools away from the labeling job and let the model answer only from a fixed list of labels.
In both cases, any secret on the same runner as the agent is in reach of the agent, whether it sits in an environment variable, a git config file or a process. A sentence in the prompt telling the model to ignore instructions in the issue does not change that.
Where Sessionboxer fits
We make Sessionboxer, so this section is about our own product. Sessionboxer does not run in GitHub Actions and does not fix these workflows. If you use Gemini CLI in Actions, the checklist above is what you need.
Sessionboxer has its own automations, which run on a schedule, when a pull request you follow changes, when an MCP server reports an event, or when you press a button. There is no trigger for new GitHub issues, so it has no equivalent of an issue triage bot.
For pull requests, the Auto review action is built so the stranger's text and your token are not in the same place. The review runs in its own Docker container on the pull request's head. A pull request from a fork is fetched from the base repository, and its box gets no connector and no Docker. When the agent finishes, the Control Plane posts the review under your connected login, and the box never holds that token. The verdict is capped at comment by default.
Two limits are worth knowing. The review prompt tells the agent to treat the pull request's description as data, but that is an instruction to the model, and an injection can still change what the review says. And Sessionboxer does not filter outbound traffic, so an agent in a box can reach what your machine can reach.
For your own sessions, a GitHub login switched on for a session lives on tmpfs in the box and goes away when you switch it off. While it is on, the agent can use it. Give it a fine-grained token for the repositories the task needs. Our post on keeping secrets away from your coding agent covers the rest.