mcp-cve-project

CVE-2026-52870 | MCP Python SDK experimental task handlers cross-client access | High | 7.6

CVE Information

Field Value
CVE / NVD CVE-2026-52870
Date (index) 2026-06-05
Affected product (index) MCP Python SDK (mcp): experimental enable_tasks() session isolation gap
GHSA ID GHSA-hvrp-rf83-w775
OWASP MCP Top 10 (2025) MCP07 — Insufficient Authentication & Authorization
Published / disclosed 2026-06-05
Ecosystem PyPI
Component server.experimental.enable_tasks() default handlers
EPSS score 0.002270000 (FIRST EPSS, 2026-07-16)
CVSS score 7.6 (v3.1)
CWE CWE-862
Affected versions >= 1.23.0, <= 1.27.1
Fixed versions 1.27.2
Fix status Patched
Exploit status Public advisory
Notes Added during 2026-07-17 gap review. Only affects servers that call enable_tasks(); grep for enable_tasks to confirm exposure.

CVE Breakdown

What is the vulnerability?

Default handlers for experimental MCP tasks (tasks/list, tasks/get, tasks/result, tasks/cancel) operated on task IDs alone with no record of which session created each task. Any connected client could enumerate, read, consume, or cancel other clients’ tasks.

Attack prerequisites / exposure

Multi-client servers with server.experimental.enable_tasks() enabled. Servers that never enable tasks are unaffected.

CVE is because of what bug?

Missing authorization (CWE-862) on experimental task handlers.

MCP-specific impact / why it matters

Task results and elicitation payloads intended for one MCP client can be read or cancelled by another client on the same server.

Where was the bug? (source + snippet)

Fix / Remediation

Upgrade to mcp >= 1.27.2, which embeds a per-session marker in task IDs and restricts default handlers to the owning session.

Workarounds / mitigations