Work

Fail-Open by Default: Divergent requestState Integrity Across Model Context Protocol Reference SDKs (Spec 2026-07-28)

Year: 2026
Type: report
Abstract: The Model Context Protocol (MCP) 2026-07-28 revision introduced Multi Round-Trip Requests (MRTR, SEP-2322), in which a server defers a call by returning an InputRequiredResult carrying an opaque, server-minted requestState that the client echoes back on retry. Because this value leaves the server's trust boundary and returns through a party the server does not control, the specification requires servers to integrity-protect it and reject state that fails verification. This note reports a source-level audit of the three official reference SDKs (Python, Go, TypeScript) and finds that they ship divergent and mostly-unsafe defaults for this security-mandated field: the Python SDK protects requestState automatically (authenticated encryption plus principal, audience, and lifetime binding), while the Go and TypeScript SDKs apply no integrity protection by default — Go offers no built-in facility at all, and TypeScript provides one but leaves it disabled unless explicitly configured. Because Go and TypeScript are the most widely deployed SDKs and the introductory examples omit protection, the predictable outcome is a population of deployed MCP servers whose round-trip state is forgeable by default. The finding is a default-safety divergence and ecosystem-exposure prediction, not an exploit against any named deployed product; all evidence is drawn from the SDKs' own public source and documentation and is independently reproducible.
Language: English
Open Access status: green
OpenAlex ID: W7220678558
Cites:
Cited by:
Related to: 10