# CVE-2026-96620: Claude Agent SDK: Argument Injection via resume Option Allows Arbitrary Command Execution

- Severity: Critical 9.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Published: 2026-10-16T19:44:01.260Z
- Modified: 2026-10-21T22:16:50.597Z
- Also known as: GHSA-h4mw-j7qp-8mwm
- Weaknesses: CWE-20, CWE-78, CWE-88
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

Claude Agent SDK is a Python SDK for Claude Code. Prior to 0.2.121, the resume option is passed to the Claude CLI as a separate token without validation, so a dash-leading value is parsed as an independent CLI flag. An attacker can inject the --mcp-config flag to define a stdio MCP server, causing arbitrary command execution at CLI startup outside the SDK permission controls. The issue is exploitable when an application passes untrusted input as the session ID to resume. This issue is fixed in version 0.2.121.

(As written by CVE List.)

## Affected

- anthropics claude-agent-sdk-python: < 0.2.121
- claude-agent-sdk (PyPI): before 0.2.121

## Every score

- GitHub_M: CVSS:4.0 9.2 Critical `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/anthropics/claude-agent-sdk-python/security/advisories/GHSA-h4mw-j7qp-8mwm> (web)
- <https://github.com/anthropics/claude-agent-sdk-python/pull/1123> (web)
- <https://github.com/anthropics/claude-agent-sdk-python/commit/347a1cb88d7652199399db1b7f914e0a459a6662> (web)
- <https://github.com/anthropics/claude-agent-sdk-python/releases/tag/v0.2.121> (web)
- <https://github.com/anthropics/claude-agent-sdk-python> (package)

## Sources

- CVE List: [CVE-2026-96620](https://www.cve.org/CVERecord?id=CVE-2026-96620), CVE Terms of Use, modified 2026-10-21
- GitHub Advisory Database: [GHSA-h4mw-j7qp-8mwm](https://github.com/advisories/GHSA-h4mw-j7qp-8mwm), CC-BY-4.0, modified 2026-10-16
- NVD: [CVE-2026-96620](https://nvd.nist.gov/vuln/detail/CVE-2026-96620), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2026-96620 · Whole record: https://cve.day/CVE-2026-96620.json · Rebuilt by cve.day 2026-11-25T22:59:45.113Z
