Skip to main content

CVE-2026-96620: CWE-20: Improper Input Validation in anthropics claude-agent-sdk-python

0
Critical
VulnerabilityCVE-2026-96620cvecve-2026-96620cwe-20cwe-78cwe-88
Published: 10/16/2026 (10/16/2026, 19:44:01 UTC)
Source: CVE Database V5
Vendor/Project: anthropics
Product: claude-agent-sdk-python

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.

CVSS v4.0

Score 9.2critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

anthropics

claude-agent-sdk-python

Affected versions
<0.2.121

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-09-23T14:35:50.128Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ad283572cdf04f6562f6cef

Added to database: 10/16/2026, 20:04:39 UTC

Last updated: 10/16/2026, 20:04:39 UTC

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses