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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-19T19:17:49.000Z
- Modified: 2026-09-09T21:07:31.353Z
- Also known as: GHSA-7m52-jw36-44r3
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- modelcontextprotocol php-sdk: >= 0.5.0, < 0.7.1
- mcp/sdk (Packagist): from 0.5.0 before 0.7.1

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/modelcontextprotocol/php-sdk/security/advisories/GHSA-7m52-jw36-44r3> (exploit, web)
- <https://github.com/modelcontextprotocol/php-sdk/commit/055593f2592e1d7f5f48587c999ca7068a3be90d>
- <https://github.com/modelcontextprotocol/php-sdk/releases/tag/v0.7.1> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/mcp/sdk/CVE-2026-53965.yaml> (web)
- <https://github.com/modelcontextprotocol/php-sdk> (package)

## Sources

- CVE List: [CVE-2026-53965](https://www.cve.org/CVERecord?id=CVE-2026-53965), CVE Terms of Use, modified 2026-08-26
- GitHub Advisory Database: [GHSA-7m52-jw36-44r3](https://github.com/advisories/GHSA-7m52-jw36-44r3), CC-BY-4.0, modified 2026-08-19
- NVD: [CVE-2026-53965](https://nvd.nist.gov/vuln/detail/CVE-2026-53965), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-53965 · Whole record: https://cve.day/CVE-2026-53965.json · Rebuilt by cve.day 2026-11-25T22:59:35.218Z
