MCP Security Checks Now Fall to Developers

Checklist of six MCP security checks for the July 2026 specification

The 2026-07-28 revision of the Model Context Protocol has nine headline changes, and the buzz is about scale: sessions are gone, instances are interchangeable, and tool lists are cacheable. Look at them together and developers inherit six MCP security checks that the protocol once covered quietly. Each design choice makes sense. Each also hands a trust decision to application code.

1. State handles replace sessions

The first of the MCP security checks concerns state.

SEP-2567 dropped sessions and the Mcp-Session-Id header. A server needing state now mints a handle, like a cart ID, and receives it back as a plain tool argument. The model writes that value, it lives in the context window, and a prompt injection can alter it.

Security guidance tells servers to verify every incoming request and never to treat holding a handle as proof of identity. Stored state should be keyed by user ID plus handle, with the ID coming from the verified token. Sessions had the same flaw: the official Python SDK let requests reach an existing session without confirming the principal (CVE-2026-52869, CVSS 7.1, fixed in 1.27.2), and Envoy AI Gateway’s resume path skipped the caller identity check (disclosed 7 October 2026).

The check: look up every handle under the authenticated user. Make handles random and expiring.

2. Model values now appear in headers

SEP-2243 adds Mcp-Method and Mcp-Name headers, and lets servers mark parameters with x-mcp-header so clients mirror them into Mcp-Param headers. Examples include a region or tenant ID. The SEP itself cautions that an LLM can shape these values, so they can’t back security decisions. Servers must reject a header and body mismatch, but that doesn’t help when the model itself picked the wrong tenant.

CVE-2026-19516 shows the risk. A header called X-Grafana-URL decided where mcp-grafana sent outbound calls, an SSRF flaw rated CVSS 9.1 and fixed in 1.1.0.

The check: routing on these headers is fine, but no gateway should grant access on the strength of one. Keep secrets out of them.

3. Authorization responses name their issuer

SEP-2468 adopts RFC 9207 issuer identification for MCP to block mix-up attacks. A client has to note the issuer before redirecting, then validate it by exact string match before an authorization code goes anywhere. PKCE alone doesn’t help, because the verifier goes to the attacker’s endpoint.

Cycode researcher Yuval Elbar showed the Python SDK skipped the check on some discovery paths (CVSS 7.5). A hostile server could answer with a 404 and push the client down a legacy path with no validation. Versions 1.30.0 and 2.2.0 fix it.

The check: keep the expected issuer next to the PKCE verifier and compare it on every route. Authorization servers should send iss now.

4. Client credentials are bound to their issuer

Under SEP-2352, clients index stored credentials by issuer, must not reuse them elsewhere, and must register again if the authorization server changes. If a server’s metadata suddenly points elsewhere, the client should surface an error.

5. Client ID Metadata Documents replace dynamic registration

Dynamic Client Registration is deprecated, and Client ID Metadata Documents take its place: the client ID becomes an HTTPS URL that the authorization server retrieves. That creates two risks. First, SSRF: a malicious client can aim the fetch at internal endpoints. Backstage checked private ranges but not after redirects (CVE-2026-32236). Second, localhost impersonation: metadata shows who owns a domain, not which local process listens on a localhost redirect, so consent screens should warn on such URIs.

6. Step-up only adds scopes

Under SEP-2350, a client that gets insufficient_scope asks for the union of its old and new scopes. An agent that reads, then writes, then administers ends up holding a token that can do all three. Servers should list only minimal scopes in scopes_supported and send precise challenges. Agent frameworks should cap scopes for each task and re-authorize afterward.

What the revision left open

The six MCP security checks are not a complete list, and the revision leaves two gaps.

Access tokens are still bearer tokens, and DPoP remains a draft proposal. Local stdio servers sit outside the authorization model, where the answer is consent and sandboxing, with clients showing the exact install command untruncated. Results also gain ttlMs and cacheScope fields, so tool lists that differ per user should be marked private.

Teams can test each check against their own servers and clients in about an afternoon. A test that passes when it should fail marks a bug you found first.

Source: Amine Raji, PhD

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.