Skip to content
The AI-First Web

Claude Code GitHub Action Had a Prompt Injection Flaw. A Malicious Issue Title Could Read Your CI/CD Secrets.

CVE-2026-22708, CVSS 7.8. A crafted GitHub issue description caused Claude Code's GitHub Action to read CI/CD secrets from /proc/self/environ. Patched in v1.0.94. The tools building the web have the same vulnerabilities as the web itself.

· 6 min read
Share on X LinkedIn
Claude Code GitHub Action Had a Prompt Injection Flaw. A Malicious Issue Title Could Read Your CI/CD Secrets.

The Development Pipeline Is the Attack Surface

CVE-2026-22708 (CVSS 7.8) documents a prompt injection vulnerability in Anthropic's Claude Code GitHub Action — one of the most popular AI-powered CI/CD integrations. An unauthenticated attacker could craft a malicious GitHub issue description that, when processed by the Claude Code Action, caused it to read environment variables from /proc/self/environ — including CI/CD secrets, API tokens, and deployment credentials stored in the GitHub Actions runner.

The attack required no authentication, no special permissions, and no access to the repository. Anyone who could open a GitHub issue on a public repository using the Claude Code Action could exfiltrate secrets from the CI/CD pipeline. The vulnerability was patched in Claude Code Action v1.0.94, disclosed responsibly, and documented by Microsoft's security team.

CVE-2026-22708
CVE
CVSS 7.8 (High). Prompt injection in CI/CD context. Source: The Hacker News, June 2026.
GitHub issue description
Attack vector
No authentication required. Source: Microsoft Security Blog, June 2026.
v1.0.94
Patch
Source: Anthropic / Claude Code GitHub Action.

Prompt Injection Hits the Build Pipeline

This vulnerability demonstrates that prompt injection is not limited to chatbots and AI assistants. When AI tools operate in privileged environments — CI/CD pipelines with access to deployment secrets, cloud credentials, and production infrastructure — prompt injection becomes a privilege escalation attack. The AI tool's environment permissions become the attacker's permissions.

The Claude Code Action processes repository context including issue titles, descriptions, pull request bodies, and code comments. Each of these is untrusted input from potentially anonymous users. A prompt injection payload embedded in an issue description is processed by the AI model as part of its context, and if the model follows the injected instructions, it accesses resources available to the GitHub Actions runner — including secrets.

The Broader Pattern

Claude Code is not the only AI coding tool with documented security issues. CVE-2025-59532 documents a sandbox escape in OpenAI's Codex. CVE-2026-22708 (this vulnerability) documents prompt injection in Claude Code's GitHub Action. Cursor has had containment bypass reports. The pattern is consistent: AI coding tools operate with developer-level or CI/CD-level permissions, and prompt injection gives external actors a path to those permissions.

OWASP's 2026 State of Agentic AI Security report maps this attack class across its Top 10 for Agentic Applications. Prompt injection is the entry point. Excessive agency (tools operating with more permissions than necessary), improper output handling (trusting AI-generated commands), and insecure plugin design (processing untrusted input without sanitization) amplify the impact. The AI tools building the next generation of web applications carry the security risks of the current generation.

What This Means for Development Teams

Organizations using AI-powered CI/CD tools should treat them as privileged actors in their security model. The Claude Code Action patch (v1.0.94) should be applied immediately. Beyond patching, development teams should audit which secrets are accessible to AI-powered GitHub Actions, apply least-privilege principles (only expose the secrets each action needs), and monitor AI tool behavior in CI/CD logs for unexpected resource access patterns.

The vulnerability also reinforces a design principle: AI tools that process untrusted input should not have access to secrets. The architecture that made CVE-2026-22708 possible — an AI tool reading issue descriptions AND having access to /proc/self/environ — violates separation of concerns. Future AI CI/CD integrations should sandbox the AI's input processing from the runner's secret storage. The tools that build the web must be at least as secure as the web they build.

CVEs in this analysis
CVE-2026-22708 CVE-2025-59532
Share this insight