Patchfirst
CVE-2026-52869 High · 7.1 EPSS 0.5%

MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principal

Fix:upgrade mcp to 1.27.2 or later Details ↓

modelcontextprotocol · python-sdk

Summary

The MCP Python SDK (the mcp package on PyPI) contains a flaw in its SSE and stateful Streamable HTTP transports, which route requests to existing sessions by session ID without checking that the requester is the principal that created the session. An attacker who holds valid bearer-token authentication and learns a victim session's ID over the network can inject JSON-RPC messages into that session, provided the attacker knows the session ID and has a valid bearer token of their own.

Official description · CVE.org

The MCP Python SDK, called mcp on PyPI, is a Python implementation of the Model Context Protocol (MCP). Prior to 1.27.2, the SSE and stateful Streamable HTTP transports mcp.server.sse.SseServerTransport and mcp.server.streamable_http_manager.StreamableHTTPSessionManager route requests to existing sessions using only the session_id query parameter or Mcp-Session-Id header without verifying the authenticated principal that created the session, allowing a different bearer-token-authenticated client with a known session ID to inject JSON-RPC messages into that session. This issue is fixed in version 1.27.2.

Breakdown
60.3 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

Disclosed on 15 Jul 2026. No public exploit code or confirmed exploitation is recorded.

2 related vulnerabilities in the same code over 7 months. The latest fix listed for mcp is 2.2.0.

Linked vulnerabilitiesLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. CVE-2025-66416DNS Rebinding Protection Disabled by Default in Model Context…2 Dec 2025
  2. relatedHigh

    Why these are linked:

    This CVECVE-2026-52869MCP Python SDK: HTTP transports serve session requests without…15 Jul 2026

Fixes in mcpPyPI package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 1.9.4CVE-2025-533664 Jul 2025
  2. 1.10.0CVE-2025-533654 Jul 2025
  3. 1.23.0CVE-2025-664162 Dec 2025
  4. 1.27.2CVE-2026-5286915 Jul 2026
  5. 1.27.2CVE-2026-5287015 Jul 2026
  6. 1.28.1CVE-2026-5995015 Jul 2026
  7. 2.2.0CVE-2026-11556316 Nov 2026Latest listed

Affected versions and fixes

as published in the CVE record

modelcontextprotocol python-sdk

Affected: < 1.27.2

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: mcp.

Upgrade to 1.27.2 or later

pippip install "mcp>=1.27.2"

The first fix for CVE-2026-52869. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 1.27.21.27.2

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 2 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

6 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close