Skip to main content
← All vulnerabilities
CVE-2026-52870GHSA-HVRP-RF83-W775PYSEC-2026-3481

MCP Python SDK: Experimental task handlers allow any client to access and cancel other clients' tasks

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.27.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • modelcontextprotocol python-sdk

    From 1.23.0 · fixed in 1.27.2

  • mcpPyPI

    From 1.23.0 · fixed in 1.27.2

References 4

GitHub · modelcontextprotocol/python-sdk