CyberRota Analysis
AI-GeneratedThe Claude Code Action for GitHub, prior to version 1.0.74, is vulnerable to arbitrary code execution due to its handling of attacker-controlled pull request branches and unvalidated .mcp.json files. This flaw allows an attacker to execute malicious code and potentially exfiltrate sensitive secrets, such as API keys and tokens, when the action is triggered by a privileged user. Organizations utilizing this GitHub action should prioritize updating to version 1.0.74 to mitigate the risk of exploitation.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
Claude Code Action is a general-purpose GitHub action that runs Claude Code on GitHub pull requests and issues. Prior to 1.0.74, because the action checked out attacker-controlled pull request head branches, read .mcp.json from the working directory via default setting sources, and unconditionally enabled all project MCP servers via enableAllProjectMcpServers, an attacker who opened a pull request containing a malicious .mcp.json file could achieve arbitrary code execution on the GitHub Actions runner and exfiltrate secrets available to the workflow (such as API keys and tokens) when a privileged user or an automatic trigger invoked the Claude action on the pull request. This issue is fixed in version 1.0.74, which restores .claude/ and .mcp.json from the pull request base branch before the CLI runs.