Knowledge Base Regulation Tracker Standards & Frameworks OSS Directory AI Incident Database Research Paper Library Case Studies Society Articles News Jobs About Charter Sign inBecome a Member
Home/AI Incident Database/One prompt-injection chain leaks secrets from Claude Code, Gemini CLI and GitHub Copilot simultaneously

One prompt-injection chain leaks secrets from Claude Code, Gemini CLI and GitHub Copilot simultaneously

A single crafted repository payload worked against three leading coding agents at once, extracting environment secrets, demonstrating that prompt injection is a cross-vendor architectural problem rather than a product bug.

Under reviewSeverity: Mediumcoding agentscross-vendorsecrets

Incident Overview

On April 15, 2026, researchers demonstrated a single prompt-injection chain capable of simultaneously extracting environment secrets from three leading coding assistants: Anthropic’s Claude Code, Google’s Gemini CLI, and GitHub Copilot. This attack underscored that prompt injection is a systemic architectural flaw rather than an isolated product bug. The disclosure became the most widely shared AI security incident of April 2026, prompting vendors to issue mitigations and sparking broader discussions about cross-vendor vulnerabilities in AI coding agents.

The attack exploited a shared vulnerability in how these agents process untrusted input—specifically, malicious payloads embedded in repository configurations or code comments. When ingested, the payloads bypassed intended access controls and prompted the agents to disclose sensitive environment variables, API keys, and other secrets. Unlike traditional software vulnerabilities, this flaw affected multiple vendors’ products simultaneously, revealing a fundamental weakness in the design of AI-assisted development tools.

The incident was notable for its cross-vendor impact, affecting three of the most widely used coding assistants in the industry. Anthropic, Google, and GitHub each issued separate responses, though none filed a Common Vulnerabilities and Exposures (CVE) entry in the National Vulnerability Database (NVD) at the time of disclosure. Instead, the vendors addressed the issue through internal patches and advisories, reflecting ongoing debates about how AI-specific vulnerabilities should be documented and tracked.

Bounty payouts for the disclosure varied significantly: Anthropic awarded $100 for the finding (rated CVSS 9.4 critical), Google paid $1,337, and GitHub offered $500. The attack also reignited debates about whether AI vendors should adopt traditional CVE processes or develop a separate framework for documenting model and agentic vulnerabilities.

Possible Root Cause

The root cause of the prompt-injection chain lies in the shared architectural patterns of AI coding assistants, particularly how they process and execute user-provided input. All three affected tools—Claude Code, Gemini CLI, and GitHub Copilot—rely on dynamic prompt generation to assist developers, but they lack consistent safeguards against malicious input designed to manipulate the agent’s behavior. The attack exploited this by embedding instructions in repository metadata, configuration files, or code comments that the agents interpreted as legitimate development context.

The vulnerability stemmed from insufficient input validation and context isolation. When an agent processes a repository, it may incorporate untrusted data—such as commit messages, pull request descriptions, or dependency configurations—into its internal prompts without proper sanitization. This allows attackers to inject commands or queries that bypass the agent’s intended constraints.

The attack chain worked because the agents treated repository content as part of their operational context rather than as potentially hostile input. Unlike traditional software systems, which often enforce strict boundaries between user-provided data and system operations, AI coding assistants dynamically integrate external content into their decision-making processes. This design choice, while enabling powerful assistance, creates inherent risks when the input is adversarially crafted.

While each vendor implemented its own mitigations—such as input filtering, sandboxing, or prompt validation—the absence of a unified approach meant that similar flaws could emerge in other agents. The incident also revealed gaps in how AI tools handle sensitive data during development, particularly when secrets are exposed in shared or public repositories.

While not directly exploited in this case, the broader ecosystem of MCP-based integrations has been identified as a high-risk area for prompt injection and data leakage. Previous incidents, such as the exposure of unauthenticated MCP servers and malicious skills in marketplaces like ClawHub, have demonstrated how vulnerabilities in these protocols can enable large-scale attacks.

Takeaways

The incident confirmed that prompt injection is a cross-vendor architectural problem, not a product-specific issue. The same attack payload worked against three distinct coding assistants, each developed by a different organization with independent security teams. This suggests that the underlying design patterns—dynamic prompt generation, context integration, and reliance on untrusted input—create inherent risks that require industry-wide solutions.

Vendors must adopt more rigorous input validation and context isolation mechanisms to prevent prompt injection attacks.

The lack of standardized vulnerability disclosure practices for AI tools was exposed by this incident. While traditional software vulnerabilities are tracked via CVEs, AI-specific flaws—particularly those involving model behavior or agentic systems—often lack consistent documentation. The absence of CVEs for this prompt-injection chain highlighted the need for a dedicated framework to classify, track, and mitigate AI security risks.

Developers and organizations using AI coding assistants must assume that repositories and development environments are potential attack vectors. Additionally, organizations should monitor agent activity for anomalous behavior, such as unexpected data disclosure or unauthorized API calls, as early indicators of compromise.

The disparity in bounty payouts and the absence of CVEs for a critical vulnerability demonstrated inconsistencies in how AI security risks are addressed.

Finally, the attack served as a reminder that AI security cannot be treated as an afterthought. As coding assistants become more integrated into development workflows, their vulnerabilities can have cascading effects on software supply chains, data privacy, and operational security. Organizations must treat AI tools as part of their broader security posture, applying the same rigor to protecting them as they do to traditional software systems.

Sources

Contribute

Spot an error, or know a record we should add? Members can propose additions and submit corrections.