Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-52869: CWE-639: Authorization Bypass Through User-Controlled Key in modelcontextprotocol python-sdk

0
High
VulnerabilityCVE-2026-52869cvecve-2026-52869cwe-639
Published: 07/15/2026 (07/15/2026, 20:06:23 UTC)
Source: CVE Database V5
Vendor/Project: modelcontextprotocol
Product: python-sdk

Description

A vulnerability in the Model Context Protocol (MCP) Python SDK prior to version 1.27.2 allows authorization bypass. The issue occurs because certain transports route requests to sessions based solely on session identifiers without verifying the authenticated user who created the session. This enables an attacker with a known session ID and bearer token to inject JSON-RPC messages into another user's session. The vulnerability is fixed in version 1.27.2.

CVSS v3.1

Score 7.1high

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L

Affected software

mcp
pkg:pypi/mcp
Affected versions
<1.27.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 20:32:36 UTC

Technical Analysis

The MCP Python SDK (mcp on PyPI) versions before 1.27.2 have an authorization bypass vulnerability (CWE-639) in the SSE and stateful Streamable HTTP transports (mcp.server.sse.SseServerTransport and mcp.server.streamable_http_manager.StreamableHTTPSessionManager). These transports route requests to existing sessions using only the session_id query parameter or Mcp-Session-Id header without verifying that the authenticated principal owns the session. Consequently, a client authenticated with a bearer token who knows a valid session ID can inject JSON-RPC messages into that session. This issue is resolved in version 1.27.2.

Potential Impact

An attacker with a bearer token and knowledge of a valid session ID can bypass authorization controls to inject JSON-RPC messages into sessions belonging to other users. This can lead to unauthorized actions within the affected sessions, resulting in high confidentiality and integrity impact, and a low availability impact.

Mitigation Recommendations

Upgrade the MCP Python SDK to version 1.27.2 or later, where this authorization bypass vulnerability is fixed. No other mitigation or workaround is specified. Patch status is confirmed fixed in 1.27.2.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-08T21:44:27.363Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a57eb0b68715ace4363c891

Added to database: 07/15/2026, 20:18:19 UTC

Last enriched: 07/15/2026, 20:32:36 UTC

Last updated: 07/15/2026, 22:16:32 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses