GitHub Advisoryadvisory · GitHub Actions
GHSA-8q5r-mmjf-575q Claude Code Action: Malicious MCP Server Configuration in PRs Enables Remote Code Execution and Secret Exfiltration
MEDIUM
Official page ↗
- Aliases
- CVE-2026-47751
- Ecosystem
- GitHub Actions
- Packages
- anthropics/claude-code-action
- Severity
- Moderate
- CVSS 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
- Weaknesses
- CWE-200, CWE-78
- Reviewed
- 2026-06-10
Affected packages
• GitHub Actions anthropics/claude-code-action: < 1.0.74 → fixed in 1.0.74
Description
Due to the combination of checking out PR head branches (attacker-controlled), reading `.mcp.json` from the working directory via default setting sources, and unconditionally enabling all project MCP servers via `enableAllProjectMcpServers`, it was possible for an attacker who opened a PR containing a malicious `.mcp.json` file to achieve arbitrary code execution on the GitHub Actions runner. This could lead to exfiltration of secrets available to the workflow (such as API keys and tokens) when a privileged user triggered the Claude action on the PR. Exploiting this required the ability to open a pull request against a repository using the claude-code-action and a privileged user or automatic trigger to invoke the action on that PR.
Users pinned to a vulnerable version of claude-code-action are advised to update to the latest version. Users referencing anthropics/claude-code-action@v1, anthropics/claude-code-action@beta, anthropics/claude-code-action@main, or other non-pinned tags will have received this fix already
Claude Code thanks hackerone.com/reptou for reporting this issue.
Related
Alias · CVE (1)
- CVE-2026-47751 Claude Code Action is a general-purpose GitHub action that runs Claude Code on GitHub pull requests and issues. vulnerability
References
- https://github.com/anthropics/claude-code-action/security/advisories/GHSA-8q5r-mmjf-575q web
- https://nvd.nist.gov/vuln/detail/CVE-2026-47751 advisory
- https://github.com/anthropics/claude-code-action/pull/1066 web
- https://github.com/anthropics/claude-code-action/commit/9ddce40de8c1ab71fb6303a125fdad0968dc1312 web
- https://github.com/anthropics/claude-code-action package
- https://github.com/anthropics/claude-code-action/releases/tag/v1.0.74 web