Skip to content

CVE-2026-53965 MCP PHP SDK: Unbounded SSE buffer in HttpTransport enables client-side denial of service

MediumCVSS 6.9 EPSS 0.62% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
PHP

Description

The MCP PHP SDK (Composer package mcp/sdk) is the official Model Context Protocol SDK for PHP. In versions 0.5.0 through 0.7.0, the HTTP client transport reads a Server-Sent Events response stream incrementally and appends each chunk to an in-memory buffer with no upper bound. The buffer is only flushed when an SSE event delimiter, a double newline, is found, so a remote MCP server that streams response bytes without ever sending the delimiter causes the buffer to grow without limit. A malicious, compromised, or man-in-the-middle-controlled server that the client connects to over the HTTP transport can exploit this to exhaust the client process's memory, triggering a fatal allocation error or OS out-of-memory kill and denying service to the MCP client. The issue affects any client using HttpTransport against an untrusted server endpoint and does not require authentication or user interaction beyond initiating the connection. This issue is fixed in version 0.7.1.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
mcp/sdk(Packagist) = v0.5.0; = v0.6.0; = v0.7.0; >= 0.5.0, < 0.7.1 0.7.1 Fixed
modelcontextprotocol php-sdk = >= 0.5.0, < 0.7.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
mcp/sdk(Packagist) >= 0.5.0, < 0.7.1 0.7.1
mcp/sdk(Packagist) = v0.5.0 No fix listed
mcp/sdk(Packagist) = v0.6.0 No fix listed
mcp/sdk(Packagist) = v0.7.0 No fix listed
modelcontextprotocol php-sdk = >= 0.5.0, < 0.7.1 No fix listed

References