Home / Resources

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.

10.0CVSS 4.0 score for CVE-2026-85259
0Dependabot alerts on unreviewed GHSA
224 daysSince latest run-gemini-cli release v0.1.22
  • Upgrading the CLI or action does not fix copied YAML. Teams copied run-gemini-cli issue-triage files into .github/workflows/, so bumping @google/gemini-cli leaves 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-cli tag v0.1.22 and floating tag v0 still point to commit f77273f4 from 24 April 2026, predating all workflow hardening PRs on main.
  • The action still hardcodes --yolo on main. Google's advisory warns against unrestricted shell execution and --yolo, yet action.yml still passes --yolo on 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-j9ph is unreviewed with zero mapped packages, GitHub's 3 December Copilot dependency scan skips unreviewed advisories and Actions files, and CodeQL lacks a standalone persist-credentials: false check.
  • 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.

CVE-2026-85259 primary recordchecked 4 Dec 2026
Advisory IDs
CVE-2026-85259 · GHSA-g6vw-c6rx-j9ph
GHSA status
unreviewed (vulnerabilities: [])
Severity
CVSS 4.0 score 10.0 · CWE-78 OS 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
--yolo still hardcoded in action.yml on main

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: false to evals-nightly.yml and publish.yml and unquoted 'false' in four other files, while gemini-cli #26897 only added persist-credentials: false across 33 workflows.
  • The actual triage injection fix landed weeks earlier on main. PR #505 and PR #512 removed !{echo $ISSUE_BODY}, $GITHUB_ENV writes and run_shell_command(echo), replacing them with .gemini/context.json and "tools": {"core": []}.
  • gemini-cli kept run_shell_command(echo) for four months past May 12. Its own gemini-automated-issue-triage.yml stayed pinned to v0.1.11 with echo enabled until PR #29506 merged on 25 September 2026.
  1. First Gemini triage workflow ships in gemini-cliPR #2310 triggers on opened issues, passes a GitHub App token to checkout and allows shell commands.
  2. gemini-cli narrows shell tools to echoPR #20047 sets coreTools to run_shell_command(echo); checkout credentials stay persisted.
  3. run-gemini-cli publishes v0.1.22 (current v0 tag)Released 18.5 hours before PR #505; example triage files at v0.1.22 still write to $GITHUB_ENV via echo.
  4. run-gemini-cli hardens example workflows on mainPRs #505, #511 and #512 replace shell interpolation with .gemini/context.json and set "tools": {"core": []}.
  5. Advisory PRs #518 and #26897 set persist-credentials: falseDisables token persistence in 33 gemini-cli workflows and six internal run-gemini-cli files.
  6. gemini-cli removes run_shell_command(echo) from triagePR #29506 drops echo, updates the action pin from v0.1.11 to v0.1.22 and fixes a github-script injection.
  7. 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:

Unfiltered shell tools240 days
Persisted checkout token318 days
Echo shell tool active454 days
CVE-2026-85259521 days
Elapsed days in google-gemini/gemini-cli from PR #2310 (28 Jun 2025) to PR #20047 (23 Feb 2026), PR #26897 (12 May 2026), PR #29506 (25 Sep 2026) and CVE publication (1 Dec 2026), verified via GitHub API on 4 Dec 2026.

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:

ToolUnreviewed CVEYAML injectionPersisted token
Dependabot alertsNoNoNo
Copilot review scanNoNoNo
CodeQL defaultNoYesArtifact upload only
actionlintNoYesNo
zizmorNoYesartipacked

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.

See the Pilot

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 workflowWrite-access gateExample checkoutRunner isolation
run-gemini-cliCopied YAML onlyfalse on mainHardcoded --yolo
claude-code-actionBuilt into actionDefaults to trueBubblewrap on non-write
codex-actionBuilt into actionfalse in READMEDrops sudo and proxy
Copilot cloud agentEnforced by GitHubManaged by GitHubEphemeral cloud sandbox
  • run-gemini-cli relies on copied workflow YAML. Its hardened main example splits triage (no checkout, GITHUB_TOKEN: '', "tools": {"core": []}) from a separate label job, but action.yml performs no actor check and always passes --yolo.
  • claude-code-action enforces write access, yet examples omit persist-credentials. Anthropic's action blocks fork PRs and non-write users by default, yet all 10 checkout-using files in examples/ omit persist-credentials: false, and examples/issue-triage.yml sets allowed_non_write_users: "*" alongside issues: write.
  • codex-action and Copilot cloud agent isolate secrets at the runtime layer. OpenAI's action revokes sudo, blocks root sockets, proxies OPENAI_API_KEY out 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.

FrameworkControlWhat it coversWhat an auditor asks for
SOC 2CC6.1Logical access securityToken scope and key rotation
SOC 2CC6.6System boundary protectionUntrusted trigger isolation
SOC 2CC7.1Vulnerability detectionOrg-wide workflow inventory
SOC 2CC8.1Change managementApproved workflow PR diffs
ISO 27001A.8.8Technical vulnerabilitiesRepo exposure determination
ISO 27001A.8.25Secure development rulesAutomated workflow linting
ISO 27001A.8.32Change managementIndependent PR approval logs
HIPAA§164.312(a)(1)Software access controlScoped 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.

  1. Inventory every coding-agent workflow in your orgSearch .github/workflows across every repository for run-gemini-cli, gemini-triage, claude-code-action, codex-action and --yolo, and save the full list as your CC7.1 population.
  2. Disable persisted credentials on untrusted checkoutsOmit actions/checkout in pure issue-triage jobs, or explicitly set persist-credentials: false on every checkout step that processes external issues, comments or fork pull requests.
  3. Split untrusted analysis from privileged writesSet permissions: {} at workflow level, strip GITHUB_TOKEN: '' and set "tools": {"core": []} in the untrusted job, then apply labels in a separate job that validates output against an allowlist. Copy run-gemini-cli templates from main, not v0 or v0.1.22.
  4. Run zizmor beside CodeQL and lock default token permissionsAdd zizmor in CI to catch artipacked, template-injection, excessive-permissions and unpinned-uses, and confirm Settings > Actions > General > Workflow permissions is set to read-only.
  5. 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.
  6. 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 unreviewed with an empty vulnerabilities list, and NVD still marks CVE-2026-85259 as Awaiting Analysis.
  • When Google will publish a post-fix run-gemini-cli release. Both v0.1.22 and floating tag v0 still point to commit f77273f4 from 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.yml still passes --yolo unconditionally on lines 332 and 339, leaving workflow tools.core allowlists 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: none alongside Automatable: yes.

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.