Critical (AgentArmorHQ estimate)Supply chain

Claude Agent SDK: Argument Injection via resume Option Allows Arbitrary Command Execution

Product
claude-agent-sdk
CVE
CVE-2026-96620
Affected
claude-agent-sdk < 0.2.121
Fixed in
0.2.121

Last verified against sources: October 26, 2026

Am I affected?

claude-agent-sdk: affected claude-agent-sdk < 0.2.121. Fixed in 0.2.121.

  • Check your version: run pip show claude-agent-sdk. Versions < 0.2.121 of claude-agent-sdk are affected. [1]

What to do now

  1. Upgrade to the fixed version: run pip install --upgrade "claude-agent-sdk>=0.2.121" (first patched version 0.2.121). [1]
  2. Upgrade to the latest version of the claude-agent-sdk package. [1]
  3. The first patched version is 0.2.121. [1]

General practice, not from the source: if the affected software could read tokens or credentials, rotate them after upgrading; pin versions and review changes before updating tools your agents run.

Discuss this incident

What happened

  • The Claude Agent SDK for Python passed the resume option to the Claude CLI without checking the value. [1]
  • A value beginning with - could be read as a separate CLI flag. [1]
  • The attack required an application to pass untrusted input as the session ID to resume. [1]

Impact

  • An attacker who controlled the resume value could inject an --mcp-config flag that defined a stdio MCP server. [1]
  • This caused arbitrary command execution when the CLI started. [1]
  • The attack bypassed the SDK's permission controls. [1]

What was done

  • The advisory says version 0.2.121 of claude-agent-sdk patches the issue. [1]
  • The advisory advises users to update to the latest version of the claude-agent-sdk package. [1]

Sources

  1. GHSA-h4mw-j7qp-8mwm — GitHub Advisory Database

Every statement above was checked against these sources before publishing. Spotted an error? Tell us and we will correct it with a dated note.

Share advisory brief with your team

Copy a plain-text summary for Slack, GitHub issues, or team security channels.

Brief
[CVE-2026-96620] Claude Agent SDK: Argument Injection via resume Option Allows Arbitrary Command Execution
Product: claude-agent-sdk | Affected: claude-agent-sdk < 0.2.121 | Fixed in: 0.2.121
Summary: The Claude Agent SDK for Python passed the `resume` option to the Claude CLI without checking the value.
Source & remediation on AgentArmorHQ: https://agentarmorhq.com/incidents/2026/10/cve-2026-96620-claude-agent-sdk
Was this page useful?

Corrections

Report an error or request a correction. We review requests within 5 business days and add a dated correction note.

10 to 2,000 characters. A link to a source helps. Stored as plain text.

Discussions for CVE-2026-96620

Ask questions or share configuration tips. Governed by our Community Rules & Terms.

No posts match this filter yet.

Be the first to ask a question or share a working tip.

Check before you install

Paste a package name or a GitHub link and get a clear answer in seconds: Block, Review or No known issues. No account needed.

Check a package

Questions? Contact us