Claude Code GitHub Action Flaw Let One Malicious Issue Hijack Repositories
- Published
- Record updated
Summary
A security researcher found that Anthropic's Claude Code GitHub Action let anyone running a GitHub App bypass the write-access check, so a single opened issue could trigger the action on public repositories. Through indirect prompt injection, the attacker could make Claude write /proc/self/environ values, including the GitHub Actions OIDC credentials, back into the issue, enabling write access to the target's code, issues and workflows. Anthropic fixed the core bypass within four days of a January report and rated the issues 7.8 under CVSS v4.0.
Mitigation
Update to claude-code-action v1.0.94 or later. Then audit any workflow that lets users without write access, or bots, trigger Claude: if it takes untrusted input, don't feed it any secret beyond the Anthropic API key and GITHUB_TOKEN, and remove tools and permissions that can be used for exfiltration.
Topics
Related items
- InfoClaude AI can review pull requests and ship fixes on its own nowSame vendor · The Verge (AI)
- InfoA legendary philosopher isn’t buying Anthropic’s consciousness argumentSame vendor · MIT Technology Review
- InfoAI Agents Are Creating a Shared Responsibility GapSame vendor · BleepingComputer
- LowElastic ships 143 detection rules for AI agents and LLM platformsSame vendor · Elastic Security Labs
- InfoAnthropic, Nvidia shares rise in premarket trading after major tech selloffSame vendor · CNBC Technology