CVE‑2026‑85259 in run‑gemini‑cli: why Dependabot misses copied GitHub Actions workflows
On 1 December, Google disclosed CVE-2026-85259 (CVSS 10.0) in run-gemini-cli triage workflows, yet upgrading packages and checking Dependabot still leaves copied YAML files exposed. Even the latest v0.1.22 tag predates the fixes. Below: what the primary PRs show, why GitHub scanners miss it, and six checks for SOC 2 teams.
What we found in short.
- Upgrading the CLI or action does not fix copied YAML. Teams copied
run-gemini-cliissue-triage files into.github/workflows/, so bumping@google/gemini-clileaves legacy triggers, shell tools and persisted checkout tokens untouched. - The latest action release tag still ships the legacy template. Checked on 4 December 2026,
google-github-actions/run-gemini-clitagv0.1.22and floating tagv0still point to commitf77273f4from 24 April 2026, predating all workflow hardening PRs onmain. - The action still hardcodes
--yoloonmain. Google's advisory warns against unrestricted shell execution and--yolo, yetaction.ymlstill passes--yoloon lines 332 and 339. Setting"tools": {"core": []}is what actually stops tool execution. - Dependabot, Copilot review scans and CodeQL all have blind spots. Advisory
GHSA-g6vw-c6rx-j9phisunreviewedwith zero mapped packages, GitHub's 3 December Copilot dependency scan skips unreviewed advisories and Actions files, and CodeQL lacks a standalonepersist-credentials: falsecheck. - Auditors will ask for full repo populations, not a green scanner tab. Under SOC 2 CC7.1 and CC8.1 and ISO 27001 A.8.8 and A.8.32, teams need an org-wide workflow search, approved remediation PR diffs, secret rotation records and ongoing linting.
Want to know which of your audited controls changed this month? See how the Pilot works →
What CVE‑2026‑85259 actually exposed.
On 1 December 2026, Google published CVE-2026-85259 (reported by Dan Lisichkin) and GitHub mirrored it as GHSA-g6vw-c6rx-j9ph. On 3 December, StepSecurity detailed how crafted GitHub issues trigger code execution and credential theft on legacy Gemini triage runners.
- Advisory IDs
CVE-2026-85259·GHSA-g6vw-c6rx-j9ph- GHSA status
unreviewed(vulnerabilities: [])- Severity
- CVSS 4.0 score 10.0 ·
CWE-78OS Command Injection - CISA SSVC
- Automatable: yes · Technical impact: total · Exploitation: none
- Affected range
- Date-based
< 2026-05-12(no semver package range) - Latest action release
v0.1.22/v0(f77273f4, 24 April 2026)- Action runtime flag
--yolostill hardcoded inaction.ymlonmain
A Code Injection vulnerability in automated triage workflows in Google Gemini CLI and run-gemini-cli GitHub Action versions prior to 2026-05-12 on GitHub Actions allows an unauthenticated remote attacker to execute arbitrary commands or read sensitive files using crafted GitHub issue inputs.
GoogleCloud CNA record for CVE-2026-85259, 1 December 2026
- The two cited patch PRs did not fix command injection. run-gemini-cli #518 touched zero triage workflows; it added
persist-credentials: falsetoevals-nightly.ymlandpublish.ymland unquoted'false'in four other files, while gemini-cli #26897 only addedpersist-credentials: falseacross 33 workflows. - The actual triage injection fix landed weeks earlier on
main. PR #505 and PR #512 removed!{echo $ISSUE_BODY},$GITHUB_ENVwrites andrun_shell_command(echo), replacing them with.gemini/context.jsonand"tools": {"core": []}. gemini-clikeptrun_shell_command(echo)for four months past May 12. Its owngemini-automated-issue-triage.ymlstayed pinned tov0.1.11withechoenabled until PR #29506 merged on 25 September 2026.
- First Gemini triage workflow ships in gemini-cliPR #2310 triggers on opened issues, passes a GitHub App token to checkout and allows shell commands.
- gemini-cli narrows shell tools to echoPR #20047 sets
coreToolstorun_shell_command(echo); checkout credentials stay persisted. - run-gemini-cli publishes v0.1.22 (current v0 tag)Released 18.5 hours before PR #505; example triage files at
v0.1.22still write to$GITHUB_ENVviaecho. - run-gemini-cli hardens example workflows on mainPRs #505, #511 and #512 replace shell interpolation with
.gemini/context.jsonand set"tools": {"core": []}. - Advisory PRs #518 and #26897 set persist-credentials: falseDisables token persistence in 33
gemini-cliworkflows and six internalrun-gemini-clifiles. - gemini-cli removes run_shell_command(echo) from triagePR #29506 drops
echo, updates the action pin fromv0.1.11tov0.1.22and fixes agithub-scriptinjection. - Google discloses CVE-2026-85259 (CVSS 10.0)Published 203 days after the May 12 cutoff as an unreviewed GitHub Advisory with no package version range.
Measuring from the initial triage workflow in google-gemini/gemini-cli on 28 June 2025 shows how long legacy patterns persisted before each fix and public disclosure:
Any team that copied a triage workflow during that 10-month window still carries the exposed YAML today unless someone audited and edited .github/workflows/ directly.
Why GitHub scanners stayed silent.
On 4 December, most GitHub security dashboards showed zero alerts for CVE-2026-85259. Checking GitHub's advisory docs, GitHub's 3 December Copilot scan changelog and all 25 CodeQL Actions queries explains why four standard safeguards missed it.
Dependabot alerts
Skips unreviewed advisories, only parses uses: lines rather than workflow YAML logic, and never alerts on actions pinned to a commit SHA.
Copilot dependency scan
Shipped 3 December off by default, checks only GitHub-reviewed advisories, excludes GitHub Actions workflows, and lets repository settings override org defaults.
CodeQL for Actions
Default setup flags actions/code-injection/critical and missing permissions, but has no standalone check for persist-credentials: true without old upload-artifact.
Package and action bumps
Updating @google/gemini-cli or pinning run-gemini-cli@v0 leaves committed .github/workflows/ and .gemini/*.toml files unchanged.
Comparing the five tools teams reach for first shows where static workflow linters close the gap that package scanners leave open:
| Tool | Unreviewed CVE | YAML injection | Persisted token |
|---|---|---|---|
| Dependabot alerts | No | No | No |
| Copilot review scan | No | No | No |
| CodeQL default | No | Yes | Artifact upload only |
actionlint | No | Yes | No |
zizmor | No | Yes | artipacked |
GitHub also shipped Copilot server-to-server authentication on 3 December using 1-hour ghs_ GitHub App tokens (organization_copilot_requests: read) with app_client_id logged in AI usage CSV exports. That separates Copilot SDK agent runs from human logins, but GitHub's docs note it does not replace GITHUB_TOKEN inside Actions workflows.
Copied workflows drift between audits.
In the eight-week Pilot, we map up to 25 commitments from your report and take two real gaps through verified restoration.
How four coding-agent actions compare.
This failure pattern is not limited to Gemini. Checked live on 4 December 2026, actions/checkout still defaults to persist-credentials: true (writing tokens to .git/config before v6 and to $RUNNER_TEMP in v6 and later), and each major coding-agent action handles untrusted triggers differently.
| Agent workflow | Write-access gate | Example checkout | Runner isolation |
|---|---|---|---|
run-gemini-cli | Copied YAML only | false on main | Hardcoded --yolo |
claude-code-action | Built into action | Defaults to true | Bubblewrap on non-write |
codex-action | Built into action | false in README | Drops sudo and proxy |
| Copilot cloud agent | Enforced by GitHub | Managed by GitHub | Ephemeral cloud sandbox |
run-gemini-clirelies on copied workflow YAML. Its hardenedmainexample splitstriage(no checkout,GITHUB_TOKEN: '',"tools": {"core": []}) from a separatelabeljob, butaction.ymlperforms no actor check and always passes--yolo.claude-code-actionenforces write access, yet examples omitpersist-credentials. Anthropic's action blocks fork PRs and non-write users by default, yet all 10 checkout-using files inexamples/omitpersist-credentials: false, andexamples/issue-triage.ymlsetsallowed_non_write_users: "*"alongsideissues: write.codex-actionand Copilot cloud agent isolate secrets at the runtime layer. OpenAI's action revokessudo, blocks root sockets, proxiesOPENAI_API_KEYout of process and splits jobs in its README, while GitHub Copilot cloud agent runs in a managed sandbox with isolated Agents secrets and draft-only PRs.
Which audit controls this touches.
In CBIZ's 2024 SOC Benchmark Study of 193 SOC reports, 54.9% carried at least one exception, with 11.7% in change management. When a CVSS 10.0 flaw sits inside copied CI workflows, auditors test four areas across SOC 2, ISO 27001 and HIPAA.
| Framework | Control | What it covers | What an auditor asks for |
|---|---|---|---|
| SOC 2 | CC6.1 | Logical access security | Token scope and key rotation |
| SOC 2 | CC6.6 | System boundary protection | Untrusted trigger isolation |
| SOC 2 | CC7.1 | Vulnerability detection | Org-wide workflow inventory |
| SOC 2 | CC8.1 | Change management | Approved workflow PR diffs |
| ISO 27001 | A.8.8 | Technical vulnerabilities | Repo exposure determination |
| ISO 27001 | A.8.25 | Secure development rules | Automated workflow linting |
| ISO 27001 | A.8.32 | Change management | Independent PR approval logs |
| HIPAA | §164.312(a)(1) | Software access control | Scoped CI agent permissions |
A point-in-time screenshot of Dependabot will not satisfy Type 2 fieldwork if copied workflows drifted mid-period. Teams need evidence covering the full repository population, independent review on workflow fixes (see SOC 2 change management with coding agents) and run-log checks for the exposure window.
Keeping GitHub workflow controls, branch rulesets and token boundaries aligned after a disclosure requires daily live checks, customer-approved pull requests and post-merge re-checks rather than a one-time CLI bump, which is the post-audit loop ZeroTB runs across GitHub, AWS, Google Workspace, Okta and endpoints.
Six checks you can run today.
- Inventory every coding-agent workflow in your orgSearch
.github/workflowsacross every repository forrun-gemini-cli,gemini-triage,claude-code-action,codex-actionand--yolo, and save the full list as your CC7.1 population. - Disable persisted credentials on untrusted checkoutsOmit
actions/checkoutin pure issue-triage jobs, or explicitly setpersist-credentials: falseon every checkout step that processes external issues, comments or fork pull requests. - Split untrusted analysis from privileged writesSet
permissions: {}at workflow level, stripGITHUB_TOKEN: ''and set"tools": {"core": []}in the untrusted job, then apply labels in a separate job that validates output against an allowlist. Copyrun-gemini-clitemplates frommain, notv0orv0.1.22. - Run zizmor beside CodeQL and lock default token permissionsAdd
zizmorin CI to catchartipacked,template-injection,excessive-permissionsandunpinned-uses, and confirmSettings > Actions > General > Workflow permissionsis set to read-only. - Rotate exposed runner secrets and inspect Actions logsFor any repository that ran a legacy triage workflow on external issues, review workflow run logs for the exposure window and rotate
GEMINI_API_KEY, GitHub App private keys and cloud credentials reachable by that runner. - Protect .github/workflows/ with CODEOWNERS and audit scan overridesRequire security review on workflow changes via repository rulesets, and if you enable Copilot dependency scans under
Settings > Copilot > Code review, verify no repository overrode your org setting.
Run these read-only checks to build your org population and flag workflows missing persist-credentials: false:
# 1. Find copied Gemini workflows across a GitHub organization
gh search code "run-gemini-cli" --owner YOUR_ORG path:.github/workflows \
--limit 200 --json repository,path,url \
--jq '.[] | "\(.repository.nameWithOwner)\t\(.path)\t\(.url)"'
# 2. Flag local actions/checkout steps missing persist-credentials: false
awk '
FNR == 1 { if (c && !p) print f ":" l " missing persist-credentials: false"; c = 0 }
/uses:[[:space:]]*actions\/checkout@/ { f = FILENAME; l = FNR; p = 0; c = 1; next }
c && /^[[:space:]]*-[[:space:]]/ { if (!p) print f ":" l " missing persist-credentials: false"; c = 0 }
c && /persist-credentials:[[:space:]]*false/ { p = 1 }
END { if (c && !p) print f ":" l " missing persist-credentials: false" }
' .github/workflows/*.yml .github/workflows/*.yaml 2>/dev/null
# 3. Audit workflow files locally for injection, persisted tokens and unpinned actions
zizmor .github/workflows/
Use this two-job boundary as the baseline whenever an agent triages untrusted GitHub issues:
permissions: {}
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
contents: read
issues: read
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
persist-credentials: false
- name: Run agent without GitHub token or shell tools
uses: google-github-actions/run-gemini-cli@07d4f8d2ee4a891b5e2541e0ea2c78536ed7147d
env:
GITHUB_TOKEN: ''
with:
gemini_api_key: ${{ secrets.GEMINI_API_KEY }}
settings: '{"tools":{"core":[]}}'
prompt: '/gemini-triage'
apply-labels:
runs-on: ubuntu-latest
needs: [analyze]
permissions:
issues: write
# Validate analyze output against existing repo labels before calling setLabels
What's still unknown.
- When GitHub will review GHSA-g6vw-c6rx-j9ph. Checked on 4 December 2026, the advisory remains
unreviewedwith an emptyvulnerabilitieslist, and NVD still marksCVE-2026-85259asAwaiting Analysis. - When Google will publish a post-fix run-gemini-cli release. Both
v0.1.22and floating tagv0still point to commitf77273f4from 24 April 2026, leaving anyone browsing the latest release tag on pre-fix example templates. - Whether run-gemini-cli will make --yolo opt-in. Current
main/action.ymlstill passes--yolounconditionally on lines 332 and 339, leaving workflowtools.coreallowlists as the only execution gate. - How many repositories still carry pre-May 12 copies. Because teams copied workflow templates into private and public repositories, no central telemetry counts unpatched copies; CISA ADP currently records
Exploitation: nonealongsideAutomatable: yes.
Sources.
- CVE-2026-85259 CNA record and CISA SSVCGoogleCloud CNA / CISA ADP, 1–2 Dec 2026
- GitHub Advisory GHSA-g6vw-c6rx-j9ph (unreviewed)GitHub Advisory Database, checked 4 Dec 2026
- CVE-2026-85259: Gemini CLI triage flaw in GitHub ActionsStepSecurity, 3 Dec 2026
- gemini-cli PR #26897 (persist-credentials: false across 33 workflows)GitHub, merged 12 May 2026
- run-gemini-cli PR #518 (checkout configuration alignment)GitHub, merged 11 May 2026
- run-gemini-cli PR #505 (modernize example triage workflows)GitHub, merged 24 Apr 2026
- gemini-cli PR #29506 (remove run_shell_command(echo) from triage)GitHub, merged 25 Sep 2026
- run-gemini-cli v0.1.22 latest release tagGitHub, 24 Apr 2026 (checked 4 Dec 2026)
- actions/checkout action.yml (persist-credentials default: true)GitHub, checked 4 Dec 2026
- About the GitHub Advisory Database and unreviewed advisoriesGitHub Docs, checked 4 Dec 2026
- Copilot code review: dependency vulnerability and license scansGitHub Changelog, 3 Dec 2026
- GitHub Copilot server-to-server authentication GAGitHub Changelog, 3 Dec 2026
- CodeQL query help for GitHub ActionsGitHub CodeQL, checked 4 Dec 2026
- zizmor GitHub Actions security audits (artipacked, template-injection)zizmor Docs, checked 4 Dec 2026
- claude-code-action security documentationAnthropic, checked 4 Dec 2026
- codex-action security documentationOpenAI, checked 4 Dec 2026
- Copilot cloud agent risks and mitigationsGitHub Docs, checked 4 Dec 2026
- 2024 SOC Benchmark StudyCBIZ
Questions.
Does upgrading @google/gemini-cli or run-gemini-cli fix CVE-2026-85259?
No. CVE-2026-85259 lives in copied workflow YAML files under .github/workflows/ and their .gemini command templates. Bumping package versions or action tags never rewrites committed workflow files, and the latest run-gemini-cli release tag (v0.1.22 / v0 from 24 April 2026) still predates the hardened templates on main.
Why did Dependabot and Copilot code review send zero alerts for CVE-2026-85259?
As of 4 December 2026, GitHub Advisory GHSA-g6vw-c6rx-j9ph is marked unreviewed with an empty vulnerabilities array. Both Dependabot alerts and GitHub's 3 December Copilot code review dependency scan only evaluate GitHub-reviewed advisories, and neither inspects copied workflow YAML logic or SHA-pinned actions.
Does run-gemini-cli still pass --yolo after the May 2026 fixes?
Yes. Google's advisory recommends avoiding unrestricted shell access and --yolo, but google-github-actions/run-gemini-cli/action.yml on main still hardcodes --yolo on lines 332 and 339. Security depends on setting tools.core to an empty array in the workflow settings and stripping GITHUB_TOKEN from the untrusted job.
Does GitHub CodeQL catch missing persist-credentials: false on actions/checkout?
Not on its own. CodeQL for GitHub Actions checks code injection and missing workflow permissions by default, but its only persist-credentials rule (actions/secrets-in-artifacts) fires only when paired with vulnerable actions/upload-artifact versions v4.0.0 through v4.3.6. Use zizmor's artipacked audit to catch all persisted checkout tokens.
What evidence will a SOC 2 or ISO 27001 auditor ask for after CVE-2026-85259?
Auditors expect a full repository population search across your GitHub organization, approved remediation pull requests with workflow diffs, proof that exposed secrets such as GEMINI_API_KEY or GitHub App keys were rotated, and evidence of an ongoing control such as CODEOWNERS and workflow linting across the audit period.
Keep GitHub workflow controls verified between audits.
ZeroTB checks your commitments against your systems each day and carries detected gaps through to verified restoration. In the eight-week Pilot, we map up to 25 commitments from your report and take two real gaps through verified restoration.