Intel

AIKIDO-2026-190480

mcp/sdk is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 16, 2026

53

Medium Risk

This Affects:

PHPmcp/sdk
0.1.0 - 0.6.0
Fixed in 0.7.0
Are you affected? Scan for Free

TL;DR

The MCP server request handling in mcp/sdk does not bound untrusted input on the Streamable HTTP transport and JSON-RPC parser. StreamableHttpTransport reads the entire POST body into memory with no size cap, MessageFactory accepts JSON-RPC batches of unbounded size and mishandles scalar or empty payloads, and a malformed or duplicated Mcp-Session-Id header reaches Uuid::fromString() and raises an uncaught exception. A remote client can exhaust server memory with an oversized body or huge batch, or crash request handling with a malformed session header. The fix enforces a maxBodyBytes cap with incremental reads, adds a maxBatchSize limit, rejects scalar/empty/non-object JSON-RPC input, and returns 400 for malformed or repeated session ID headers.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and expose an MCP server over the Streamable HTTP transport.

Background info

mcp/sdk is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 0.6.0.

How to fix this

Upgrade the mcp/sdk library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform