Skip to main content
VulnerabilityPublished

Gemini CLI Vulnerability Could Have Led to Code Execution, Supply Chain Attack

Source SecurityWeek

0

Fixed in 0.39.1 : update affected systems when convenient.

Data as of 7 May 2026, 10:51 UTC

Severity
Medium

Rated by Threat Radar

Patch
Available – fixed in 0.39.1

What to do

AI-suggested

Google has released an official fix in Gemini CLI version 0.39.1 that enforces tool allowlisting in –yolo mode and addresses the trust issue in headless mode. Users and organizations should update to this version immediately to mitigate the vulnerability. The run-gemini-cli GitHub Action has also been updated and should be applied. Since this is not a cloud service, patching the client software is required. Patch status is confirmed by the vendor advisory.

Description

A critical vulnerability in Gemini CLI allowed attackers to inject malicious prompts into GitHub issues, potentially leading to full supply chain compromise. The flaw existed because the CLI's –yolo mode ignored tool allowlists, enabling execution of arbitrary commands. Attackers could exploit this by submitting crafted issues that hijack the AI agent responsible for triaging issues, extracting internal secrets and escalating privileges to push malicious code to the main repository branch. Google addressed this vulnerability in Gemini CLI version 0.39.1 by enforcing tool allowlisting in –yolo mode and updating related GitHub Actions. An additional trust issue in headless mode was also fixed, preventing unauthorized access to credentials and source code in CI workflows. No known exploits in the wild have been reported. The vulnerability was rated medium severity by the source but is technically critical due to its potential impact.

References

Community reviews

Loading reviews…