mcp-cve-project

CVE-2026-53965 | MCP PHP SDK HttpTransport unbounded SSE buffer DoS | High |

CVE Information

Field Value
CVE / NVD CVE-2026-53965
Date (index) 2026-08-19
Affected product (index) MCP PHP SDK (modelcontextprotocol/php-sdk): HttpTransport SSE buffer exhaustion
GHSA ID GHSA-7m52-jw36-44r3
OWASP MCP Top 10 (2025) MCP07 — Insufficient Authentication & Authorization
Published / disclosed 2026-08-19
Ecosystem Composer
Component Mcp\Client\Transport\HttpTransport
EPSS score Not yet scored (FIRST EPSS as of indexing)
CVSS score High (GHSA severity; NVD entry pending at indexing)
CWE CWE-770 / CWE-400
Affected versions >= 0.5.0, < 0.7.1
Fixed versions 0.7.1
Fix status Patched
Exploit status Public advisory
Notes Added during 2026-08-25 gap review. Client-side DoS: malicious or compromised remote MCP server can crash PHP clients.

CVE Breakdown

What is the vulnerability?

The HTTP client transport appends each 4 KiB SSE chunk to $this->sseBuffer with no upper bound. The buffer flushes only when an SSE event delimiter ("\n\n") appears. A server (or MITM) streaming delimiter-free data causes unbounded memory growth until PHP memory_limit or OOM.

Attack prerequisites / exposure

PHP MCP client using HttpTransport against an untrusted, compromised, or MITM-exposed MCP HTTP/SSE endpoint.

CVE is because of what bug?

Uncontrolled resource consumption (CWE-770): $this->sseBuffer .= $chunk without length guard in processSSEStream().

MCP-specific impact / why it matters

Any MCP client built on the official PHP SDK can be remotely crashed by the server it connects to — relevant for agent hosts pulling tools from third-party MCP endpoints.

Where was the bug? (source + snippet)

Fix / Remediation

Upgrade to mcp/sdk >= 0.7.1, which caps sseBuffer at MAX_SSE_BUFFER_BYTES (8 MiB default) and aborts the stream on overflow.