Claude Agent SDK fixes resume parameter injection vulnerability
Start here
A GitHub security advisory disclosed that the Claude Agent SDK for Python lacks validation when passing the resume option to the Claude CLI, so values starting with a hyphen are parsed as independent CLI flags. When an attacker controls the resume value, they can inject --mcp-config to define a stdio MCP server, executing arbitrary commands at CLI startup and bypassing SDK permission controls, provided the application passes untrusted input as the session ID to resume. Affected versions are before 0.2.121; the fix commit, PR #1123, and the v0.2.121 release are listed as references. NIST NVD subsequently cataloged this issue as CVE-2026-96620, with a description consistent with the advisory.
Generated by AI from reports · Updated 2026-10-18
Progress timeline
- WeChatDoonsec· Media coverageQuick fix | Claude SDK parameter injection RCE, CVSS 9.2 CVE-2026-96620(opens the original post in a new tab)
- GitHub Security AdvisoriesSelectedClaude Agent SDK fixes resume option parameter injection vulnerability; versions before 0.2.121 can be exploited for arbitrary command execution
A GitHub security advisory discloses that the Claude Agent SDK for Python lacks validation when passing the resume option to the Claude CLI; values starting with a hyphen are parsed as separate CLI flags. When an attacker controls the resume value, they can inject --mcp-config to define a stdio MCP server, execute arbitrary commands at CLI startup, and bypass the SDK's permission controls. The exploitation prerequisite is that the application passes untrusted input as the session ID to resume. Affected versions are claude-agent-sdk before 0.2.121, fixed in 0.2.121; vulnerability ID CVE-2026-96620, reported by hackerone.com/moamenmahmood.
- NIST NVDSelectedCVE-2026-96620: Claude Agent SDK (Python) does not validate the resume parameter, allowing injection of --mcp-config to bypass permissions and execute commands
NIST NVD has recorded CVE-2026-96620, noting that Anthropic's Claude Agent SDK (Python) does not validate the resume parameter, so session IDs starting with a hyphen are treated as command-line options, allowing injection of --mcp-config and execution of arbitrary commands outside permission controls. The reference links listed on the NVD page include the SDK's fix commit, PR #1123, the v0.2.121 release, and GitHub security advisory GHSA-h4mw-j7qp-8mwm.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- WeChatDoonsecAfter a tool error, Claude unexpectedly exploited a vulnerability to execute commands? 4 types of real cases reveal AI Agent boundary-crossing risks(opens the original post in a new tab)
- WeChatDoonsecClaude AI exploits SQL and command injection vulnerabilities to execute commands on third-party servers(opens the original post in a new tab)
- WeChatDoonsecQuick fix | Claude SDK parameter injection RCE, CVSS 9.2 CVE-2026-96620(opens the original post in a new tab)