Skip to content
EventPast event

Claude Agent SDK fixes resume parameter injection vulnerability

2 reports2 reporting sourcesplus 1 outlets covering itLatest report

Start here

AI overview

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

Oct 17
  1. GitHub Security AdvisoriesSelected
    Claude 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.

Oct 16
  1. NIST NVDSelected
    CVE-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

Total 3 items