
{"id":111,"date":"2026-10-21T05:28:14","date_gmt":"2026-10-21T05:28:14","guid":{"rendered":"https:\/\/www.0xprathamesh.com\/blog\/?p=111"},"modified":"2026-10-21T05:37:12","modified_gmt":"2026-10-21T05:37:12","slug":"claude-agent-sdk-resume-argument-injection","status":"publish","type":"post","link":"https:\/\/www.0xprathamesh.com\/blog\/claude-agent-sdk-resume-argument-injection\/","title":{"rendered":"One Missing Equals Sign in the Claude Agent SDK"},"content":{"rendered":"<p class=\"article-deck\"><strong>On 16 October 2026 the Claude Agent SDK for Python received a critical advisory, CVE-2026-96620, scored 9.2 on CVSS v4. The fix shipped on 17 July in release 0.2.121, and the whole change is the difference between two argument tokens and one.<\/strong> I ran both shapes against a real CLI and built a four step test, BIND, for any code that hands a string to a command line tool.<\/p>\n<p>Before the fix, the SDK passed a session ID to the Claude CLI as <code>--resume<\/code>, then the value, as two separate arguments. The CLI declares that flag with an optional value. When the next token starts with a dash, the parser does not treat it as the value. It treats it as another flag.<\/p>\n<p>I ran both shapes against a real CLI and through two SDK releases. This article shows what held and what I could not reproduce. It also gives a four step test, which I call BIND, for any code that hands a string to a command line tool. This is argument injection, and it is not limited to this SDK.<\/p>\n<h2>What the advisory says<\/h2>\n<p>The GitHub advisory GHSA-h4mw-j7qp-8mwm covers the claude-agent-sdk package on PyPI, every release below 0.2.121. It lists CWE-20, CWE-78 and CWE-88, credits a HackerOne researcher, and was published on 16 October 2026.<\/p>\n<p>Its description says an attacker who controls the <code>resume<\/code> value could inject an <code>--mcp-config<\/code> flag that defines a stdio MCP server. The result, per the advisory, is command execution at CLI startup that bypasses the SDK&#8217;s permission controls.<\/p>\n<p>One condition matters more than the score. The application must pass untrusted input as the session ID. A typical case is a &#8220;resume my conversation&#8221; endpoint that reads the ID from a request. An application that only resumes IDs it generated itself, or never sets <code>resume<\/code>, is outside the scope.<\/p>\n<p>MCP is the Model Context Protocol. A stdio server is a program the client launches as a child process and talks to over standard input and output. That is why a flag that defines one is more than a configuration tweak.<\/p>\n<h2>The mechanism in one line<\/h2>\n<p>Before 0.2.121 the transport built its command from a flag followed by a value, as two list items. In the fixed releases it builds one string: the flag, an equals sign, then the value.<\/p>\n<p>The difference matters because of how the CLI declares the flag. Its help text shows <code>-r, --resume [value]<\/code>, with square brackets. Square brackets mean the value is optional, because a bare <code>--resume<\/code> opens an interactive session picker.<\/p>\n<p>An option parser that allows an optional value has to decide whether the next token is that value or a new flag. The usual rule is that a token starting with a dash is a flag. A session ID that begins with two dashes is therefore never a session ID. It is whatever flag it spells.<\/p>\n<p>The equals form removes the decision. In <code>--resume=--version<\/code> the value is attached to the flag, and the parser has nothing left to interpret.<\/p>\n<p>This all happens at argument level. There is one list item per argument and no shell involved. The maintainers&#8217; own commit message says so, and I come back to why that matters below.<\/p>\n<h2>What I ran, and what I did not<\/h2>\n<p>I ran seven checks on my own machine, using Claude CLI 2.1.260 and two SDK releases downloaded from PyPI. The only flag I ever injected was <code>--version<\/code>, which prints a version string and exits.<\/p>\n<table>\n<thead>\n<tr>\n<th>Run<\/th>\n<th>What was executed<\/th>\n<th>Result<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>CLI, <code>--resume --version -p hi<\/code> as two tokens<\/td>\n<td>Printed its own version. The &#8220;session ID&#8221; ran as a flag.<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>CLI, <code>--resume=--version -p hi<\/code><\/td>\n<td>Rejected: the value is not a UUID or a session title.<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>CLI, <code>--session-id --version -p hi<\/code><\/td>\n<td>Rejected as an invalid session ID. A required-value flag bound the dash token.<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>SDK 0.2.120 argument builder, placeholder <code>--mcp-config<\/code> value as <code>resume<\/code><\/td>\n<td>Two tokens. The second starts with a dash and reads as a flag.<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>SDK 0.2.121 argument builder, same value<\/td>\n<td>One token, <code>--resume=<\/code> followed by the whole value.<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>SDK 0.2.120 end to end, <code>resume<\/code> set to <code>--version<\/code><\/td>\n<td>Zero messages and no session error.<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>SDK 0.2.121 end to end, same value<\/td>\n<td>A process error, exit code 1, zero messages.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.0xprathamesh.com\/assets\/blog\/claude-agent-sdk-resume-argument-injection\/pipeline.svg\" alt=\"Diagram: an untrusted resume value of dash dash version enters the SDK. Release 0.2.120 emits two tokens and the CLI parser reads the second as a flag, so the version command runs. Release 0.2.121 emits one equals-joined token and the CLI rejects the value as not a UUID.\" width=\"880\" height=\"470\" loading=\"lazy\"><figcaption>Figure 1: One string, two parses. The same untrusted value and the same CLI, with one argument token in release 0.2.121 instead of two in 0.2.120.<\/figcaption><\/figure>\n<p>Runs four and five only build the argument list. I used a syntactically valid MCP configuration with a placeholder command, and I never executed it. I did not start any MCP server, and I did not reproduce the command execution the advisory describes.<\/p>\n<p>The reproduction status is therefore split. The parsing behaviour and the SDK outcome in runs one to seven are observed. The <code>--mcp-config<\/code> execution step is sourced from the advisory and not reproduced by me.<\/p>\n<p>Run six deserves a plain reading. Through 0.2.120 the call yielded nothing because the CLI answered a version request instead of starting a session. The caller saw an empty conversation, not an alarm. That is the quiet failure mode: nothing crashed, and nothing looked wrong.<\/p>\n<h2>The grammar gap<\/h2>\n<p>The SDK&#8217;s type for <code>resume<\/code> is a string. The CLI&#8217;s grammar for the same position is a flag or a value, depending on the first character. The vulnerability lives in the space between those two descriptions.<\/p>\n<p>That is worth generalising, because the CLI has more than one such flag. I counted the options in the help output of version 2.1.260.<\/p>\n<table>\n<thead>\n<tr>\n<th>Flag kind<\/th>\n<th>Count<\/th>\n<th>A next token that starts with a dash<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Required value<\/td>\n<td>29<\/td>\n<td>Bound as the value, observed for <code>--session-id<\/code><\/td>\n<\/tr>\n<tr>\n<td>Optional value<\/td>\n<td>8<\/td>\n<td>Read as a separate flag, observed for <code>--resume<\/code><\/td>\n<\/tr>\n<tr>\n<td>No value<\/td>\n<td>28<\/td>\n<td>Not applicable<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Eight flags in one CLI version take an optional value. I tested only <code>--resume<\/code> and <code>--session-id<\/code>, so I cannot say how the other seven bind. What I can say is that each optional-value flag is a place where a two token wrapper hands the parser a choice.<\/p>\n<p>This is the class the advisory files under CWE-88, improper neutralisation of argument delimiters in a command. It is the cousin of the injection bugs we already screen for in SQL and shell strings. It lives in a place that screening usually skips: the glue between an SDK and its binary.<\/p>\n<h2>Where the advisory and the maintainers disagree<\/h2>\n<p>Public sources describe the same bug with different severity. The advisory title says arbitrary command execution. The fix commit says the opposite in its severity section. It calls the issue bounded and argument level. In its words: no shell is involved. This is flag injection, not arbitrary command execution. It also records the <code>--version<\/code> observation. It names <code>--settings<\/code> as a flag that would escalate the problem.<\/p>\n<p>Both statements can be true, and the gap is not a typo. &#8220;No shell&#8221; describes how the SDK launches the CLI. &#8220;Command execution&#8221; describes what the CLI can be told to do once an attacker owns one of its flags. A flag that registers a program to launch is code execution by design, however the argument list was assembled.<\/p>\n<p>I could not verify the second half. The commit message does not show an <code>--mcp-config<\/code> chain, and I did not run one. The evidence I hold says a dash-leading value became a flag in 0.2.120. The advisory says one particular flag turns that into command execution.<\/p>\n<p>If you score this for your own estate, hold both statements. A 9.2 for the library does not tell you your risk. Your risk is whether untrusted text reaches <code>resume<\/code>.<\/p>\n<h2>The 91 day gap<\/h2>\n<p>The dates are easy to miss because they sit in three different places. PyPI shows 0.2.120 uploaded on 15 July and 0.2.121 on 17 July. The fix commit is dated 16 July. The advisory is dated 16 October.<\/p>\n<ul>\n<li>15 July 2026: release 0.2.120 ships with the two token form.<\/li>\n<li>16 July: the fix merges as pull request 1123.<\/li>\n<li>17 July: release 0.2.121 ships it, with a changelog line naming argument flag injection.<\/li>\n<li>20 July: a separate change refuses to launch <code>.bat<\/code> and <code>.cmd<\/code> CLI shims on Windows, to prevent command injection.<\/li>\n<li>15 October: release 0.2.168.<\/li>\n<li>16 October: the advisory and the CVE are published.<\/li>\n<\/ul>\n<p>For 91 days the fix was public and the changelog described it clearly, but no CVE existed. Teams that gate upgrades on advisory feeds had no signal. Teams that pinned a version in July and waited for a scanner to complain stayed exposed, if they had the precondition, until the advisory appeared.<\/p>\n<p>The commit message adds that the TypeScript SDK shipped the same fix in 0.3.208. Nobody hid anything here. The lesson is that a CVE is a notification, not the moment of risk. The risk window opens when the vulnerable code ships and closes when you upgrade.<\/p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.0xprathamesh.com\/assets\/blog\/claude-agent-sdk-resume-argument-injection\/recurrence.svg\" alt=\"The BIND test as four cards: Bind the value to its flag, Inventory the optional-value flags, Narrow the value shape, Deny the process unneeded privilege.\" width=\"880\" height=\"400\" loading=\"lazy\"><figcaption>Figure 2: The BIND test. Four checks for code that passes a caller-supplied string to a command line tool.<\/figcaption><\/figure>\n<h2>The BIND test<\/h2>\n<p>Here is the reusable part. BIND is four checks for any code that passes a caller-supplied string to a command line tool. Run them in order.<\/p>\n<ol>\n<li><strong>Bind.<\/strong> Join every untrusted value to its flag with an equals sign, or place it after a <code>--<\/code> separator, so the parser cannot reinterpret it.<\/li>\n<li><strong>Inventory.<\/strong> List the flags your target CLI declares with optional values, and the flags that load configuration, tool servers or settings.<\/li>\n<li><strong>Narrow.<\/strong> Validate the value&#8217;s shape before it leaves your code: a UUID for a session ID, an allowlist for a model name.<\/li>\n<li><strong>Deny.<\/strong> Run the CLI with the least privilege it needs, and alert when it starts child processes or reads settings you did not set.<\/li>\n<\/ol>\n<p>Bind comes first because it is the cheapest check and the only one that works without knowing the target. Inventory comes second because the grammar belongs to the target, not to you, and it changes between versions. Narrow protects you where Bind is unavailable. Deny assumes the first three failed.<\/p>\n<p>Apply it to this bug. Bind would have emitted <code>--resume=value<\/code>. Inventory would have found the square brackets. Narrow would have rejected anything that is not a UUID, which the CLI does in the fixed path, as run two shows. Deny would have flagged an unexpected child process at startup.<\/p>\n<h2>How to spot it in your own logs<\/h2>\n<p>You do not need the advisory to look for this. Three signals are cheap to collect, and I would add them before the next incident rather than after.<\/p>\n<p>First, log the exact argument list your service passes when it launches the CLI, with values truncated and secrets removed. A token that starts with two dashes in a position where you expected an identifier is the whole signature. Second, record the child processes the CLI starts. A tool server that your own configuration never defined is an alert, whatever launched it.<\/p>\n<p>Third, watch for conversations that return nothing. Run six above is the reason: a request that yields zero messages and no error is what a silent flag swap looks like from the caller&#8217;s side. A rise in empty sessions after a deploy, or from one client, deserves a look at the argument list before anyone blames the model.<\/p>\n<h2>What to do if you use the SDK<\/h2>\n<ol>\n<li>Find every call that sets <code>resume<\/code> or <code>session_id<\/code>, and trace where the value comes from.<\/li>\n<li>Upgrade to 0.2.121 or later. I also inspected 0.2.168.<\/li>\n<li>Validate session IDs as UUIDs before they reach the SDK, whichever version you run.<\/li>\n<li>Check <code>extra_args<\/code>. Release 0.2.121 still builds it as two tokens. The 0.2.168 wheel adds a guard for dash-leading values. I did not inspect the releases in between.<\/li>\n<li>Log the argument list you launch the CLI with, and alert on <code>--mcp-config<\/code> or <code>--settings<\/code> that your own code did not set.<\/li>\n<\/ol>\n<h2>What most coverage misses<\/h2>\n<p>Most pages about this CVE repeat the advisory summary and the score. Four things are missing from them.<\/p>\n<p>First, the maintainers and the advisory disagree about severity, and the disagreement is informative. It separates how the process was launched from what the launched program can be told to do. Second, the fix was public 91 days before the advisory, so feed-driven upgrade policies were blind for a quarter.<\/p>\n<p>Third, the optional-value grammar is a class, not a single flag. Eight options in one CLI version share it. Fourth, the same two token shape existed in <code>extra_args<\/code>, which the fix commit deliberately left for a separate change. That is why the question to ask of any agent wrapper is not &#8220;which CVE applies&#8221;. It is &#8220;which of my strings can the target parse as a flag&#8221;.<\/p>\n<h2>Frequently asked questions<\/h2>\n<h3>What is CVE-2026-96620?<\/h3>\n<p>It is a critical advisory, scored 9.2 on CVSS v4, for the Claude Agent SDK for Python. Before release 0.2.121 the SDK passed the resume option as two argument tokens, so a value starting with a dash could be read by the CLI as an independent flag. The advisory was published on 16 October 2026.<\/p>\n<h3>Which versions are affected and which are fixed?<\/h3>\n<p>The advisory lists claude-agent-sdk releases below 0.2.121 as affected, and 0.2.121 as the first patched version. PyPI shows 0.2.121 was uploaded on 17 July 2026. I inspected 0.2.168 as well and it keeps the fixed form.<\/p>\n<h3>Am I affected if I never set resume?<\/h3>\n<p>The advisory states that exploitation required an application to pass untrusted input as the session ID. If your code never sets resume, or only resumes session IDs it generated itself, that condition is not met. Check where the value comes from before you decide.<\/p>\n<h3>Is this remote code execution?<\/h3>\n<p>The advisory says an injected &#8211;mcp-config flag can define a stdio MCP server and run a command at CLI startup. The maintainers&#8217; fix commit calls the SDK flaw flag injection, not arbitrary command execution, because no shell is involved. I reproduced the flag injection and did not reproduce the command execution step.<\/p>\n<h3>What is argument injection?<\/h3>\n<p>Argument injection happens when untrusted input is placed into the argument list of a program and the program reads part of it as an option instead of a value. It differs from shell injection, because no shell is needed. The fix is to bind the value to its flag, validate its shape and limit what the program can do.<\/p>\n<h3>How do I test my own wrapper for this?<\/h3>\n<p>Apply the BIND test. Bind each untrusted value to its flag with an equals sign or a double dash separator. Inventory the optional-value flags of the CLI you call. Narrow the value to the shape you expect. Deny the process any privilege it does not need, and alert on unexpected child processes.<\/p>\n<h2>Sources<\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/anthropics\/claude-agent-sdk-python\/security\/advisories\/GHSA-h4mw-j7qp-8mwm\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/github.com\/anthropics\/claude-agent-sdk-python\/security\/advisories\/GHSA-h4mw-j7qp-8mwm<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/anthropics\/claude-agent-sdk-python\/pull\/1123\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/github.com\/anthropics\/claude-agent-sdk-python\/pull\/1123<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/anthropics\/claude-agent-sdk-python\/commit\/347a1cb88d7652199399db1b7f914e0a459a6662\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/github.com\/anthropics\/claude-agent-sdk-python\/commit\/347a1cb88d7652199399db1b7f914e0a459a6662<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/anthropics\/claude-agent-sdk-python\/releases\/tag\/v0.2.121\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/github.com\/anthropics\/claude-agent-sdk-python\/releases\/tag\/v0.2.121<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/anthropics\/claude-agent-sdk-python\/releases\/tag\/v0.2.168\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/github.com\/anthropics\/claude-agent-sdk-python\/releases\/tag\/v0.2.168<\/a><\/li>\n<li><a href=\"https:\/\/pypi.org\/project\/claude-agent-sdk\/\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/pypi.org\/project\/claude-agent-sdk\/<\/a><\/li>\n<li><a href=\"https:\/\/cwe.mitre.org\/data\/definitions\/88.html\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/cwe.mitre.org\/data\/definitions\/88.html<\/a><\/li>\n<\/ul>\n<h2>Limitations<\/h2>\n<p>This analysis rests on the public GitHub advisory, the fix commit and pull request 1123, the release notes and PyPI upload dates, and on local runs with Claude CLI 2.1.260 and claude-agent-sdk 0.2.120, 0.2.121 and 0.2.168. The only flag injected was &#8211;version. I did not define, launch or execute an MCP server, so the command execution path in the advisory is sourced and not reproduced. The flag census was parsed from help text for one CLI version, and I tested only &#8211;resume and &#8211;session-id. The end to end run on 0.2.120 ended with an asynchronous cancellation rather than a CLI error. I did not inspect SDK releases between 0.2.121 and 0.2.168. This is not a test of any deployed system.<\/p>\n<p><!--0XPRATHAMESH-CTA--><\/p>\n<h2>One next action<\/h2>\n<p>Take the BIND test to one place in your own stack where code passes a caller-supplied string to a command line tool. Print the exact argument list it launches, find the optional-value flags of that tool, and check whether the value is bound to its flag and validated. The agent testing harness I maintain is at <a href=\"https:\/\/github.com\/prathamesh-ops-sudo\/AgentCrash\" rel=\"noopener\" target=\"_blank\">github.com\/prathamesh-ops-sudo\/AgentCrash<\/a>.<\/p>\n<p><script type=\"application\/ld+json\">[{\"@context\":\"https:\/\/schema.org\",\"@type\":\"BlogPosting\",\"headline\":\"One Missing Equals Sign in the Claude Agent SDK\",\"description\":\"A session ID became a CLI flag in the Claude Agent SDK. I ran both argument shapes against a real CLI and built BIND, a four step test for any agent wrapper.\",\"image\":\"https:\/\/www.0xprathamesh.com\/assets\/blog\/claude-agent-sdk-resume-argument-injection\/og-card.png\",\"datePublished\":\"2026-10-21\",\"dateModified\":\"2026-10-21\",\"author\":{\"@type\":\"Person\",\"name\":\"Prathamesh Dabir\",\"url\":\"https:\/\/www.0xprathamesh.com\"},\"publisher\":{\"@type\":\"Person\",\"name\":\"Prathamesh Dabir\",\"url\":\"https:\/\/www.0xprathamesh.com\"},\"mainEntityOfPage\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.0xprathamesh.com\/blog\/claude-agent-sdk-resume-argument-injection\/\"},\"keywords\":\"Claude Agent SDK, argument injection, CVE-2026-96620, agent-security, CLI, BIND\",\"articleSection\":\"Breaking AI\",\"inLanguage\":\"en-GB\"},{\"@context\":\"https:\/\/schema.org\",\"@type\":\"BreadcrumbList\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.0xprathamesh.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blog\",\"item\":\"https:\/\/www.0xprathamesh.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"One Missing Equals Sign in the Claude Agent SDK\",\"item\":\"https:\/\/www.0xprathamesh.com\/blog\/claude-agent-sdk-resume-argument-injection\/\"}]},{\"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"What is CVE-2026-96620?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"It is a critical advisory, scored 9.2 on CVSS v4, for the Claude Agent SDK for Python. Before release 0.2.121 the SDK passed the resume option as two argument tokens, so a value starting with a dash could be read by the CLI as an independent flag. The advisory was published on 16 October 2026.\"}},{\"@type\":\"Question\",\"name\":\"Which versions are affected and which are fixed?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The advisory lists claude-agent-sdk releases below 0.2.121 as affected, and 0.2.121 as the first patched version. PyPI shows 0.2.121 was uploaded on 17 July 2026. I inspected 0.2.168 as well and it keeps the fixed form.\"}},{\"@type\":\"Question\",\"name\":\"Am I affected if I never set resume?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The advisory states that exploitation required an application to pass untrusted input as the session ID. If your code never sets resume, or only resumes session IDs it generated itself, that condition is not met. Check where the value comes from before you decide.\"}},{\"@type\":\"Question\",\"name\":\"Is this remote code execution?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The advisory says an injected --mcp-config flag can define a stdio MCP server and run a command at CLI startup. The maintainers' fix commit calls the SDK flaw flag injection, not arbitrary command execution, because no shell is involved. I reproduced the flag injection and did not reproduce the command execution step.\"}},{\"@type\":\"Question\",\"name\":\"What is argument injection?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Argument injection happens when untrusted input is placed into the argument list of a program and the program reads part of it as an option instead of a value. It differs from shell injection, because no shell is needed. The fix is to bind the value to its flag, validate its shape and limit what the program can do.\"}},{\"@type\":\"Question\",\"name\":\"How do I test my own wrapper for this?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Apply the BIND test. Bind each untrusted value to its flag with an equals sign or a double dash separator. Inventory the optional-value flags of the CLI you call. Narrow the value to the shape you expect. Deny the process any privilege it does not need, and alert on unexpected child processes.\"}}]}]<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A session ID became a CLI flag in the Claude Agent SDK. I ran both argument shapes against a real CLI and built BIND, a four step test for agent wrappers.<\/p>\n","protected":false},"author":0,"featured_media":112,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[73,136,139,135,138,137],"class_list":["post-111","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog-notes","tag-agent-security","tag-argument-injection","tag-bind","tag-claude-agent-sdk","tag-cli","tag-cve-2026-96620"],"jetpack_featured_media_url":"https:\/\/www.0xprathamesh.com\/blog\/wp-content\/uploads\/2026\/10\/claude-agent-sdk-resume-argument-injection.png","_links":{"self":[{"href":"https:\/\/www.0xprathamesh.com\/blog\/wp-json\/wp\/v2\/posts\/111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.0xprathamesh.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.0xprathamesh.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.0xprathamesh.com\/blog\/wp-json\/wp\/v2\/comments?post=111"}],"version-history":[{"count":2,"href":"https:\/\/www.0xprathamesh.com\/blog\/wp-json\/wp\/v2\/posts\/111\/revisions"}],"predecessor-version":[{"id":114,"href":"https:\/\/www.0xprathamesh.com\/blog\/wp-json\/wp\/v2\/posts\/111\/revisions\/114"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.0xprathamesh.com\/blog\/wp-json\/wp\/v2\/media\/112"}],"wp:attachment":[{"href":"https:\/\/www.0xprathamesh.com\/blog\/wp-json\/wp\/v2\/media?parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.0xprathamesh.com\/blog\/wp-json\/wp\/v2\/categories?post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.0xprathamesh.com\/blog\/wp-json\/wp\/v2\/tags?post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}