Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @google/gemini-cli
  4. ›
  5. GHSA-wpqr-6v78-jr5g

GHSA-wpqr-6v78-jr5g: Gemini CLI: Remote Code Execution via workspace trust and tool allowlisting bypasses

April 24, 2026 (updated September 24, 2026)

Gemini CLI (@google/gemini-cli) and the run-gemini-cli GitHub Action are being updated to harden workspace trust and tool allowlisting, in particular when used in untrusted environments like GitHub Actions. This update introduces a breaking change to how non-interactive (headless) environments handle folder trust, which may impact existing CI/CD workflows under specific conditions.

References

  • github.com/advisories/GHSA-wpqr-6v78-jr5g
  • github.com/google-github-actions/run-gemini-cli/security/advisories/GHSA-wpqr-6v78-jr5g
  • nvd.nist.gov/vuln/detail/CVE-2026-12537

Code Behaviors & Features

Detect and mitigate GHSA-wpqr-6v78-jr5g with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.39.1, all versions starting from 0.40.0-preview.2 before 0.40.0-preview.3

Fixed versions

  • 0.39.1
  • 0.40.0-preview.3

Solution

Upgrade to versions 0.39.1, 0.40.0-preview.3 or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/@google/gemini-cli/GHSA-wpqr-6v78-jr5g.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:17 +0000.