CVE-2026-96620: Claude Agent SDK argument injection via resume option

CVE-2026-96620 · Severity: critical · CVSS 4 · Published 2026-10-16

The Claude Agent SDK for Python, a library used to integrate Claude AI capabilities into applications, passes user-supplied session IDs to the Claude CLI without proper validation. An attacker who can control a session ID can inject malicious command-line flags to execute arbitrary commands on the system, bypassing the SDK's security controls. This could allow an attacker to read sensitive data, modify system files, or gain control of the affected system.

Technologies: Anthropic Claude Agent SDK. Vendors: Anthropic, PyPI.

Quick answers

Is CVE-2026-96620 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-96620 being exploited in the wild.
How severe is CVE-2026-96620?
Critical severity, with a CVSS score of 4, published 16 October 2026.
Which products and versions are affected?
Anthropic Claude Agent SDK < 0.2.121; claude-agent-sdk (PyPI) < 0.2.121, ECOSYSTEM:introduced=0,fixed=0.2.121.
Is there a fix for CVE-2026-96620?
Yes. claude-agent-sdk (PyPI): upgrade to 0.2.121 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-96620 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-96620?
Check whether you run Anthropic Claude Agent SDK or claude-agent-sdk (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • claude-agent-sdk (PyPI): upgrade to 0.2.121 or later
    pip install "claude-agent-sdk>=0.2.121"

Technical details

The vulnerability is an argument injection flaw (CWE-88) combined with improper input validation (CWE-20) in the resume parameter passed to the Claude CLI. When a resume value begins with a dash, it is interpreted as a separate CLI flag rather than a session ID. An attacker can inject an --mcp-config flag to define a stdio Model Context Protocol server, achieving arbitrary command execution at CLI startup. Exploitation requires an application to pass untrusted input as the session ID, and the fix is available in version 0.2.121 and later.

Affected products

  • Anthropic claude-agent-sdk < 0.2.121

Identifiers

  • CVE-2026-96620
  • GHSA-h4mw-j7qp-8mwm

Timeline

  • 2026-09-12: disclosed
  • 2026-09-12: patched: version 0.2.121
  • 2026-10-16: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.