Impact
Claude Code Action is a general-purpose GitHub action that runs Claude Code on pull requests and issues. Prior to version 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 opens 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 invokes the action on the pull request. This problem was fixed by restoring .claude/ and .mcp.json from the pull-request base branch before execution.
Affected Systems
The affected product is Claude Code Action produced by Anthropic. Versions prior to 1.0.74 are vulnerable. The vulnerability is present only when the action is used in repositories that permit pull requests with unchecked head branches.
Risk and Exploitability
The CVSS score of 5.3 indicates moderate severity. The EPSS score of <1% indicates a very low exploitation probability. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is via a malicious pull request opened by an attacker. An attacker who can open a pull request—such as a contributor with write access—or can trick a privileged user into accepting the pull request will be able to execute arbitrary code and exfiltrate secrets during the action run.
OpenCVE Enrichment
Github GHSA