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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: Active; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.61% (percentile 44, 2026-11-28)
- **CWE:** CWE-400, CWE-770
- **Aliases:** GHSA-7m52-jw36-44r3
- **Published:** 2026-08-19T19:17:49.000Z
- **Modified:** 2026-09-09T21:07:31.353Z

## Who should check

- Projects that depend on Packagist package mcp/sdk (\>= 0.5.0, \< 0.7.1)
- Anyone running modelcontextprotocol php-sdk \>= 0.5.0, \< 0.7.1

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

## Affected and fixed versions

- Packagist `mcp/sdk`: affected \>= 0.5.0, \< 0.7.1; fixed 0.7.1 (osv)
- modelcontextprotocol php-sdk: \>= 0.5.0, \< 0.7.1 (cvelist)

## Mitigation

- Upgrade mcp/sdk to 0.7.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-53965. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53965.md
Affected: mcp/sdk >= 0.5.0, < 0.7.1
Fixed in: 0.7.1

Steps:
1. Search this machine and project for mcp/sdk (Packagist), modelcontextprotocol php-sdk: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-53965 being exploited?

There is no confirmed exploitation: CVE-2026-53965 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.61% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-53965?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-53965?

mcp/sdk \>= 0.5.0, \< 0.7.1.

### Is there a fix for CVE-2026-53965?

Yes. Fixed in 0.7.1. Upgrade mcp/sdk to 0.7.1 or later.

### How do I check if I'm affected by CVE-2026-53965?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/modelcontextprotocol/php-sdk/security/advisories/GHSA-7m52-jw36-44r3>
- patch: <https://github.com/modelcontextprotocol/php-sdk/commit/055593f2592e1d7f5f48587c999ca7068a3be90d>
- other: <https://github.com/modelcontextprotocol/php-sdk/releases/tag/v0.7.1>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/mcp/sdk/CVE-2026-53965.yaml>
- other: <https://github.com/modelcontextprotocol/php-sdk>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-53965>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7m52-jw36-44r3> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-53965> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-53965>
