{"id":"CVE-2026-47751","published":"2026-07-16T15:59:29Z","modified":"2026-07-18T02:55:59Z","title":"Claude Code Action: Malicious MCP Server Configuration in PRs Enables Remote Code Execution and Secret Exfiltration","vendor":"anthropics","product":"claude-code-action","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00766,"percentile":0.5639,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/anthropics/claude-code-action/security/advisories/GHSA-8q5r-mmjf-575q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/anthropics/claude-code-action/pull/1066","tags":["x_refsource_MISC"]},{"url":"https://github.com/anthropics/claude-code-action/commit/9ddce40de8c1ab71fb6303a125fdad0968dc1312","tags":["x_refsource_MISC"]},{"url":"https://github.com/anthropics/claude-code-action/releases/tag/v1.0.74","tags":["x_refsource_MISC"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":11.28},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"anthropics","affectedVersions":[{"vendor":"anthropics","product":"claude-code-action","versions":["< 1.0.74"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-18T02:55:45.984671Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"GitHub Actions","package":"anthropics/claude-code-action","vulnerableRanges":["<1.0.74"],"patched":["1.0.74"],"from":["GHSA-8q5r-mmjf-575q"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-44952","exploited":false,"provenance":"source"}}