Skip to main content

MCP Python SDK CVE-2026-52870

| EUVDEUVD-2026-44797 HIGH
Missing Authorization (CWE-862)
2026-07-15 GitHub_M GHSA-hvrp-rf83-w775
7.6
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect to shared MCP server as client
  2. Exploit
    Call tasks/list to enumerate other sessions' task IDs
  3. Execution
    Invoke tasks/get and tasks/result on victim tasks
  4. Impact
    Read results or cancel/consume victim messages

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a stateful MCP server that has called server.experimental.enable_tasks() and serves more than one client/session concurrently, with the attacker already an authenticated connected client (PR:L). What LIMITS exploitation: the server must use the default task handlers (custom handlers or identity-scoped handlers neutralize the flaw); stateless-mode servers are not the target of the fix because they intentionally leave tasks unscoped across requests; and single-client deployments have no other session's tasks to reach. Confidentiality impact depends on the sensitivity of the data returned in other clients' task results. Task IDs that were passed explicitly to run_task() remain reachable by anyone presenting the ID even in unpatched and patched versions, but those are never listed by tasks/list.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L, base 7.6) describes a network-reachable, low-complexity attack requiring only that the attacker already be a connected client (PR:L), yielding high confidentiality impact (reading other clients' task results) with lower integrity/availability impact (cancelling tasks, consuming their messages). No EPSS score, SSVC decision, KEV listing, or public POC was provided, so real-world exploitation pressure appears low today and this reads as a design/isolation defect rather than an actively weaponized bug. The practical risk is concentrated in a specific deployment shape: multi-tenant or multi-client stateful MCP servers that enabled the experimental tasks feature - single-client or stateless deployments are largely unaffected because stateless servers deliberately leave tasks unscoped by design. This is a genuine cross-tenant data-exposure priority for those running shared task-enabled servers, but a low priority for the majority who have not adopted the experimental tasks feature. Note the C:H rating hinges on task results containing sensitive data, which varies by application.

Exploit ScenarioDerived

An attacker connects to a shared, task-enabled MCP server as a legitimate client, then issues tasks/list to enumerate task IDs created by other sessions and follows up with tasks/get and tasks/result to read those tasks' outputs, or tasks/cancel to abort a victim's in-flight work. Because exploitation only requires being a connected client on the network (AV:N/AC:L/PR:L) with no user interaction, it is straightforward wherever multiple clients share one stateful server. No public POC is currently identified, but the fix diff clearly documents the exploitable behavior.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 15, 2026

Missing authorization in the MCP Python SDK (the mcp PyPI package) versions 1.23.0 through 1.27.1 lets any authenticated client of a multi-client server enumerate, read the results of, consume messages from, or cancel tasks belonging to other clients. The default handlers wired up by server.experimental.enable_tasks() for tasks/list, tasks/get, tasks/result, and tasks/cancel key solely on the task identifier and never bind a task to the session that created it. There is no public exploit identified at time of analysis and it is not in CISA KEV, but the upstream fix, deprecation warnings, and detailed advisory confirm the flaw; it is resolved in version 1.27.2.

RemediationAI

Vendor-released patch: upgrade the mcp package to version 1.27.2 or later, which binds generated task IDs to the creating session so the default handlers reject cross-session access (see the advisory GHSA-hvrp-rf83-w775 and release https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.27.2, fix in PR https://github.com/modelcontextprotocol/python-sdk/pull/2720 and commit 62137874ff26dd74d2fea80ff528a7fd9ca7a5e7). If you cannot upgrade immediately, stop passing explicit task_id values to run_task() (these remain unscoped even after patching) and, for authorization tied to a user identity rather than a session, register custom handlers via @server.experimental.get_task(), @server.experimental.get_task_result(), @server.experimental.list_tasks(), and @server.experimental.cancel_task() instead of relying on the defaults. As a temporary compensating control, disable the experimental tasks feature (do not call enable_tasks()) or restrict the server to a single trusted client - the trade-off is loss of task functionality or multi-client support. Where explicit task IDs must be used, treat them as capabilities: generate them with high entropy, share only with the intended recipient, and use short TTLs.

Affected VersionsENISA

python-sdk 1.23.0, < 1.27.2

Affected Packages

pypi mcp fix: 1.27.2
euvd python_sdk_1_23_0 fix: 1.27.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Model Context Protocol (MCP) is the client/server protocol used to connect AI models to tools and data, and the mcp package is its reference Python implementation. The vulnerability lives in the experimental tasks subsystem enabled via server.experimental.enable_tasks(), which registers default JSON-RPC handlers for tasks/list, tasks/get, tasks/result, and tasks/cancel. These handlers operated purely on the opaque task identifier with no association to the originating session - the classic root cause of CWE-862 (Missing Authorization), where an action is performed without verifying the requester is entitled to the target object. The CPE cpe:2.3:a:modelcontextprotocol:python-sdk:*:*:*:*:*:*:*:* covers the affected implementation. The fix (PR #2720, commit 62137874) introduces a task_scope module and a per-session task_session_scope marker: run_task() now embeds this session marker into generated task IDs (scoped_task_id) so the default handlers can return 'task not found' for another session's task and omit it from tasks/list. Explicitly supplied task IDs are deprecated because they are used verbatim and remain unscoped/globally reachable.

Know when Python Sdk gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.6 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
vuln.today AI 7.6 HIGH

Attacker must be a connected client (PR:L) reaching the server over the network at low complexity (AV:N/AC:L); reading other tasks' results gives C:H while cancel/consume yields only I:L/A:L, scope unchanged.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
Low

Lifecycle Timeline

2
Patch available
Jul 15, 2026 - 22:33 EUVD
CVE Published
Jul 15, 2026 - 20:07 cve.org
HIGH 7.6

DescriptionCVE.org

The MCP Python SDK, called mcp on PyPI, is a Python implementation of the Model Context Protocol (MCP). From 1.23.0 until 1.27.2, default handlers installed by server.experimental.enable_tasks() for tasks/list, tasks/get, tasks/result, and tasks/cancel operate only on task identifiers without recording the session that created each task, allowing any connected client to enumerate, read results from, consume messages for, or cancel other clients' tasks. This issue is fixed in version 1.27.2.

Executive ViewAI

Why It Matters

The MCP Python SDK (versions 1.23.0-1.27.1) contains a missing authorization vulnerability allowing authenticated clients to access and manipulate other users' tasks in multi-client server deployments. While no public exploit has been identified at time of analysis, this flaw poses significant risks to data confidentiality and operational integrity. Unauthorized cross-user task access could expose sensitive data and disrupt operations for organizations using this widely-deployed package.

Business Impact: High
Compensating Controls

Apply vendor patch to mcp version 1.27.2 or later.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Medium
popular MCP SDK, but vulnerable tasks feature is experimental and opt-in
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy