{"answers":{"affected":"1 open source package ship an affected version, including anthropics/claude-code-action.","exploited":"There is no known exploitation of CVE-2026-47751 in the wild and no public exploit code.","fix":"Upgrade anthropics/claude-code-action to 1.0.74 or later.","what":"CVE-2026-47751 is a medium-severity code injection vulnerability in anthropics claude-code-action, published on 16 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-47751 and fix it if it is affected.\n\nWhat it is: CVE-2026-47751 is a medium-severity code injection vulnerability in anthropics claude-code-action, published on 16 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-47751 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- anthropics/claude-code-action (GitHub Actions): affected all versions; fixed in 1.0.74\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-47751/ (Markdown: https://insights.sbomify.com/CVE-2026-47751/index.md)","id":"CVE-2026-47751","markdown":"https://insights.sbomify.com/CVE-2026-47751/index.md","name":"CVE-2026-47751","record":{"aliases":["GHSA-8q5r-mmjf-575q"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"GitHub Actions","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code and steal secrets by submitting pull requests with malicious MCP configurations to the Claude Code GitHub Action.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","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","version":"4.0"},"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"}],"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.","ecosystems":["GitHub Actions"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Claude Code Action: Malicious MCP Server Configuration in PRs Enables Remote Code Execution and Secret Exfiltration","id":"CVE-2026-47751","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"GitHub Actions","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":1,"n_references":4,"next":{"headline":"Tugtainer has Server-Side Template Injection in notification templates that leads to Remote Code Execution","id":"CVE-2026-47752"},"packages":[{"ecosystem":"GitHub Actions","fixed":["1.0.74"],"introduced":["0"],"last_affected":[],"package":"anthropics/claude-code-action","purl":null,"source":"GHSA-8q5r-mmjf-575q"}],"prev":{"headline":"stable-diffusion.cpp: Heap buffer overflow in GLOBAL opcode parsing for PyTorch checkpoint files","id":"CVE-2026-47750"},"products":["claude-code-action"],"published":"2026-07-16","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-18","vendors":["anthropics"]},"summary":"Attackers can execute arbitrary code and steal secrets by submitting pull requests with malicious MCP configurations to the Claude Code GitHub Action.","url":"https://insights.sbomify.com/CVE-2026-47751/"}