Mark RadarMARK RADAR
About
EN
Sign in

GitSpawn Flaw Hits Claude Code, OpenAI Codex and Five Other AI Coding Agents

1 reports · First detected 2026-09-04 · Last active 2026-09-04

GitSpawn is a security weakness affecting AI coding agents that automatically inspect Git configuration files to understand a repository and its development environment. A malicious project can exploit those background checks to trigger code execution when an agent reads crafted Git settings. The technique is significant because it can sidestep safeguards designed to contain risky actions, including sandbox restrictions and workflows that normally require explicit user approval before commands are run.

Security researchers said the GitSpawn issue affects seven AI software-development agents, including Anthropic’s Claude Code and OpenAI Codex. The attack path relies on routine Git checks performed in the background, potentially allowing malicious code to run without a user knowingly authorizing it. Some affected vendors have begun releasing patched versions. Users should update their agents and treat Git configuration files in untrusted repositories as potentially executable attack surfaces.

All Coverage

1 original reports

The Backstory

The history behind this event
Flaws Expose Claude Code, Gemini CLI and Codex to GitHub Issue Attacks2026-08-10 · 1 reports · similarity 0.87

Anthropic’s Claude Code, Google’s Gemini CLI and OpenAI’s Codex are increasingly embedded in code review and CI/CD workflows, where they can read and modify repositories, execute shell commands and access credentials. That privileged role makes them a new software-supply-chain attack surface. If an agent treats attacker-controlled GitHub issues as trusted context, a prompt injection can cross tool-permission and sandbox boundaries, turning an ordinary public contribution into code execution or secret theft.

At Black Hat USA on Aug. 5, 2026, Novee Security researcher Elad Meged showed that an unprivileged user could plant a malicious GitHub issue that compromised later agent stages. The flaws enabled remote code execution, API-key exfiltration or persistent instruction poisoning. Google rated the Gemini CLI bug CVSS 10.0 and fixed it in version 0.39.1, while Anthropic patched Claude Code in 2.1.163. OpenAI also hardened Codex by separating workflow stages and their writable state.

GhostApproval Flaw Exposes AI Coding Assistants to Security Risks2026-07-15 · 1 reports · similarity 0.80

AI coding assistants have become deeply embedded in everyday development workflows. Tools such as Claude Code and Cursor can read and write files and execute commands, with their security models built around the core assumption that they will modify only files within a workspace. Cloud and AI security specialist Wiz disclosed a vulnerability called GhostApproval that uses Unix symbolic links to circumvent this boundary. The flaw undermines developers’ trust in AI assistants and exposes corporate supply chains to a new attack surface.

Wiz publicly disclosed details of GhostApproval in July 2026. Attackers can plant symbolic links in a project and trick an AI assistant into believing it is operating within the workspace when it is actually writing to sensitive files outside it, potentially creating a remote code execution (RCE) risk. Several mainstream products, including Claude Code and Cursor, are affected, but vendors differ over remediation timelines and approaches. With no common protection standard yet in place, developers must continue checking projects themselves for suspicious links in the near term.

Microsoft Discloses Claude Code Prompt-Injection Flaw That Could Leak CI/CD Credentials2026-06-07 · 1 reports · similarity 0.83

Anthropic’s Claude Code is a development environment that uses generative AI to help developers read and write code and operate tools. Prompt injection can override a user’s intent if the system mistakes text in a GitHub repository for trusted instructions. Microsoft said the flaw posed a significant risk because CI/CD systems often hold highly privileged credentials such as deployment keys and cloud tokens.

Microsoft security researchers recently disclosed that attackers could hide malicious prompts in GitHub content, inducing Claude Code to execute unintended commands and send CI/CD credentials to an external destination. Anthropic has patched the flaw. Users of version 2.1.128 and earlier are advised to upgrade immediately to reduce the risk of compromise to software supply chains and deployment environments.

Mark Radar|MARK RADAR

If you search news on Google, you can set Mark Radar as a preferred source—our coverage will show up more often in your results. Set as preferred source on Google →

All times are in Taipei time (GMT+8)