# CVE-2026-52870: Model Context Protocol Python SDK missing authorization in experimental tasks

Source: https://junglewise.ai/threats/cve-2026-52870-model-context-protocol-python-sdk-missing-authorization-in  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-15. Updated: 2026-07-16  
License: CC BY 4.0 with a link back

CVE-2026-52870 · Severity: high · CVSS 7.6 · Published 2026-07-15

A vulnerability exists in the Python SDK for the Model Context Protocol (MCP), a framework used to connect AI models to data sources and tools. When an experimental task feature is enabled, the software fails to verify which user created a specific task before allowing actions on it. This allows any connected user to view, intercept, or cancel tasks belonging to other users, potentially exposing sensitive data or disrupting operations.

Technologies: [Anthropic Model Context Protocol](https://junglewise.ai/threats/technologies/model-context-protocol), [Model Context Protocol MCP Python SDK](https://junglewise.ai/threats/technologies/mcp-python-sdk), [mcp (PyPI)](https://junglewise.ai/threats/technologies/pypi-mcp). Vendors: [Anthropic](https://junglewise.ai/threats/vendors/anthropic), [Model Context Protocol](https://junglewise.ai/threats/vendors/model-context-protocol), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-52870 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-52870 being exploited in the wild.

**How severe is CVE-2026-52870?** High severity, with a CVSS score of 7.6, published 15 July 2026.

**Which products and versions are affected?** Anthropic Model Context Protocol >= 1.23.0, <= 1.27.1; Model Context Protocol MCP Python SDK >= 1.23.0, < 1.27.2; mcp (PyPI) ECOSYSTEM:introduced=1.23.0,fixed=1.27.2.

**Is there a fix for CVE-2026-52870?** Yes. mcp (PyPI): upgrade to 1.27.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-52870 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-52870?** Check whether you run Anthropic Model Context Protocol, Model Context Protocol MCP Python SDK or mcp (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- mcp (PyPI): upgrade to 1.27.2 or later

  ```sh
  pip install "mcp>=1.27.2"
  ```


## Technical details

A missing authorization vulnerability (CWE-862) exists in the MCP Python SDK when the experimental tasks feature is enabled via 'server.experimental.enable_tasks()'. The default request handlers for 'tasks/list', 'tasks/get', 'tasks/result', and 'tasks/cancel' operate solely on task identifiers without verifying the session ownership of the task. A network-reachable attacker with basic client privileges can enumerate all active tasks, retrieve task results and elicitation payloads, and cancel tasks belonging to other sessions. The issue is resolved in version 1.27.2 by embedding per-session markers in task IDs and enforcing session-based filtering in the default handlers.

## Affected products

- Model Context Protocol (MCP) mcp >= 1.23.0, <= 1.27.1

## Identifiers

- CVE-2026-52870
- GHSA-hvrp-rf83-w775
- PYSEC-2026-3481

## Timeline

- 2026-06-05: disclosed: Initial report to maintainers
- 2026-07-15: advisory: NVD publication date
- 2026-07-16: patched: GitHub Advisory published and patch confirmed in v1.27.2

## References

- [https://api.github.com/users/cjmielke](https://api.github.com/users/cjmielke)
- [https://github.com/cjmielke](https://github.com/cjmielke)
- [https://api.github.com/users/cjmielke/gists%7B/gist_id%7D](https://api.github.com/users/cjmielke/gists%7B/gist_id%7D)
- [https://api.github.com/users/cjmielke/repos](https://api.github.com/users/cjmielke/repos)
- [https://avatars.githubusercontent.com/u/5335944?v=4](https://avatars.githubusercontent.com/u/5335944?v=4)
- [https://api.github.com/users/cjmielke/events%7B/privacy%7D](https://api.github.com/users/cjmielke/events%7B/privacy%7D)

## Related threats

- [Model Context Protocol Python SDK unvalidated $ref fetching](https://junglewise.ai/threats/cve-2026-116686-the-model-context-protocol-python-sdk-is-the-official-python-sdk)
- [Model Context Protocol Python SDK credential and body leak on cross-origin redirects](https://junglewise.ai/threats/cve-2026-116685-the-model-context-protocol-python-sdk-is-the-official-python-sdk)
- [Model Context Protocol Python SDK token resource confusion in bearer authentication](https://junglewise.ai/threats/cve-2026-116684-the-model-context-protocol-python-sdk-is-the-official-python-sdk)
- [MCP Python SDK unbounded session accumulation in StreamableHTTP](https://junglewise.ai/threats/cve-2026-59951-mcp-python-sdk-unbounded-session-accumulation-in-streamablehttp)
- [RMCP Streamable HTTP server unauthenticated session-table memory leak](https://junglewise.ai/threats/cve-2026-63128-rmcp-streamable-http-server-unauthenticated-session-table-memory)
