Modelcontextprotocol python-sdk
MCP Python SDK: Experimental task handlers allow any client to access and cancel other clients' tasks
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.6high · scored by CNA · CWE-862
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
modelcontextprotocol python-sdk
- >= 1.23.0, < 1.27.2
Fixed in 1.27.2
Mitigation
Upgrade python-sdk to 1.27.2 or later.
References
- Vendor advisory github.com/modelcontextprotocol/python-sdk/sec…
- Patch github.com/modelcontextprotocol/python-sdk/pul…
- Patch github.com/modelcontextprotocol/python-sdk/com…
1 more
- Release notes github.com/modelcontextprotocol/python-sdk/rel…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.