| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-52869 |
| Date (index) | 2026-06-05 |
| Affected product (index) | MCP Python SDK (mcp): SSE + Streamable HTTP session principal not verified |
| GHSA ID | GHSA-jpw9-pfvf-9f58 |
| OWASP MCP Top 10 (2025) | MCP07 — Insufficient Authentication & Authorization |
| Published / disclosed | 2026-06-05 |
| Ecosystem | PyPI |
| Component | mcp.server.sse.SseServerTransport, mcp.server.streamable_http_manager.StreamableHTTPSessionManager |
| EPSS score | 0.002510000 (FIRST EPSS, 2026-07-16) |
| CVSS score | 7.1 (v3.1) |
| CWE | CWE-639 |
| Affected versions | <= 1.27.1 |
| Fixed versions | 1.27.2 |
| Fix status | Patched |
| Exploit status | Public advisory |
| Notes | Added during 2026-07-17 gap review. Affects bearer-token-authenticated HTTP transports only; stdio and stateless Streamable HTTP unaffected. |
The MCP Python SDK routes SSE and stateful Streamable HTTP requests to an existing session using only the session identifier (session_id query parameter for SSE; Mcp-Session-Id header for Streamable HTTP), without verifying that the request is authenticated as the same principal that created the session.
Servers using SSE or stateful Streamable HTTP with the SDK’s built-in bearer-token authentication. Exploitation requires obtaining a session UUID out of band (logs, network observation).
Authorization bypass through user-controlled key (CWE-639): session lookup succeeds without comparing OAuth client / token principal to the session creator.
Per-client isolation from bearer authentication can be bypassed: a different OAuth client can inject JSON-RPC on a victim session. On Streamable HTTP the injecting client may also read the response.
Upgrade to mcp >= 1.27.2, which records the authenticated principal at session creation and returns 404 for mismatched principals.
AccessToken.subject for per-user session isolation.