Anyone who could open a GitHub issue could run commands inside Google's Gemini triage workflows (CVE-2026-85259)

5 min read

How to fix CVE-2026-85259: set persist-credentials: false on the checkout step in every Gemini workflow you copied. A crafted GitHub issue could run commands inside Google's Gemini triage workflows and read the workflow token the checkout step saved on the runner. Google fixed its own copies in May 2026; repositories that copied the examples before May 12, 2026 still carry the flaw.

On this page

The Gemini CLI project from Google ships GitHub Actions workflows that read new issues and label them on their own. The problem with those triage workflows was that a clever issue can escape the step handling it and the attacker can run arbitrary code on the machine that runs the workflow. Or they can open files on that machine, including the github token the workflow uses. Google patched its own copies back in May 2026. CVE-2026-85259 came out today, December 1, 2026, and it carries a critical score of 10.0 on the CVSS v4 scale.

The workflows take the text of a new issue and feed it through steps that build shell commands and run them. The advisory puts the flaw in CWE-78, OS command injection: text the workflow treats as data lands on a command line and runs. An attacker needs no account on the project and no permissions at all. Opening a public issue with the right text in it is the whole attack, because the triage workflow starts on its own when an issue arrives.

The other half of the flaw is what sat on the runner. The standard checkout step, actions/checkout, downloads the repository and by default saves the workflow's GitHub token to disk so later steps can push and pull. Commands injected into that job could read the saved token, and any other sensitive file on the machine, and send them out. That's why the CVE title pairs remote code execution with credential exfiltration. So the commands are how to get in. What the attacker is really after is the saved credentials.

How to fix

Set persist-credentials: false on the checkout step in every Gemini workflow in your own repository: uses: actions/checkout@v4 with: persist-credentials: false Google's fix, merged May 12, 2026, is exactly that setting. Pull request 26897 in google-gemini/gemini-cli and pull request 518 in google-github-actions/run-gemini-cli set that setting on the checkout steps across the workflows. In run-gemini-cli the change covers the invoke, issue fixer, plan and execute, and review workflows, plus the nightly evals and publish workflows. There's no fixed package version to install, because the flaw lives in workflow files, not in the CLI program. If you copied the example workflows before May 12, 2026, or installed them with the setup command back then, a newer run-gemini-cli action version does not change a file you already copied. Hold each copied workflow up against the current examples and take the checkout change from them. While you are there, trim the workflow token's permissions to what triage actually needs. A stolen read-only token does far less damage than a stolen write token.

Who is not in scope

Gemini CLI running in a terminal on your own machine is not affected. The CLI program itself is untouched by this CVE. Repositories that took the Gemini workflows from the current examples after May 12, 2026 already carry the checkout fix. On the credential half, a workflow is covered if its checkout step already sets persist-credentials: false, whatever else it does.

One check to run now

List the workflows that call the action, then read their checkout steps: grep -rn "run-gemini-cli" .github/workflows/ grep -rn -A2 "actions/checkout" .github/workflows/ Any Gemini workflow where the checkout step lacks persist-credentials: false still leaves the token saved on the runner. The date that matters is when the workflow file was added to your repo, not the version of action it's using.

What this is not

This is a different flaw from the prompt injection one researchers wrote up earlier in 2026, the --yolo mode allowlist bypass fixed in CLI 0.39.1 and run-gemini-cli 0.1.22. That glitch fooled the agent into abusing its own tools. This one never talks to the agent at all. It's plain command injection through issue text, and the patch is a checkout setting. CVE-2026-85259 is not marked as exploited in the record.

Why copies stay exposed

Workflow examples spread because teams copy them. A team copies a triage workflow into .github/workflows once, it works, and nobody looks at it again. GitHub does not push security fixes into files a team copied, and Dependabot watches the versions of actions a workflow calls, not what the YAML says. So a fix Google shipped in May can sit unapplied inside a copied file for months, while every version number in that file looks current.

HOL assessment

Our assessment: people who run Gemini CLI are not the exposed group. But it's the teams that jumped on Google's example automation early during the months after those examples were new. Run that grep today. If a copied Gemini workflow checks out code without persist-credentials: false, treat the workflow token as reachable by anyone who can open an issue. Rotate that token after fixing the file, if the workflow ever ran on public issues.

The full source record sits on the HOL Guard evidence page for CVE-2026-85259. The advisory record, GHSA-g6vw-c6rx-j9ph, sits in the GitHub Advisory Database, published today from Google's report to the CVE list. The fixes landed in pull requests google-gemini/gemini-cli 26897 and google-github-actions/run-gemini-cli 518.

FAQ: I use run-gemini-cli in my repository.

Am I affected by CVE-2026-85259?

If your workflow files came from the examples before May 12, 2026, and the checkout step does not set persist-credentials: false, then yes. Read the workflow file itself, not the version numbers. The version of the action does not decide it.

FAQ: How do I fix CVE-2026-85259?

For all your Gemini workflows, set persist-credentials: false in the actions/checkout step or just replace the copied workflow files with the latest examples. Then look at the permissions the workflow token carries and cut them back to what the job needs.

Where to download Guard

HOL Guard is open source and free. Guard Desktop downloads from hol.org/guard/install for macOS 13 or later on Apple silicon, Windows x64, and Linux x86_64, and no terminal is needed. The same page has a one line terminal install too. After installing, hol-guard doctor will verify that the daemon is started and intercept layer is working.

Sources

GitHub advisory GHSA-g6vw-c6rx-j9ph: https://github.com/advisories/GHSA-g6vw-c6rx-j9ph

All articles

Keep exploring

The engineering desk continues across the ecosystem: security research on shipping agents safely, and plugins that put the standards to work.