Skip to content
OpenAdvisories
High · 7.6 CVE-2026-52870 EUVD-2026-44797GHSA-hvrp-rf83-w775PYSEC-2026-3481

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

Published Jul 15, 2026 · Updated Jul 16, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
modelcontextprotocol python-sdk >= 1.23.0, < 1.27.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling semgrep 1.172.0-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mcp >= 1.23.0, < 1.27.2 1.27.2 GHSA-hvrp-rf83-w775

References