{
  "schema": "aidefend-secureflow-metadata-v1",
  "flow_id": "aidefend-research-sf0070-mcp-python-sdk-cross-session-tasks",
  "title": "MCP Python SDK: Task IDs Cross the Session Ownership Boundary",
  "subtitle": "A task identifier must locate state without authorizing another client to use it.",
  "summary": "The MCP Python SDK connects AI applications to tools and supports experimental long-running tasks. When a multi-client server enabled the affected default task handlers, another client could list tasks, read results and cancel work without a task-owner check. CVE-2026-52870 was fixed for default generated task IDs in 1.27.2; explicitly supplied IDs and direct TaskStore writes need separate ownership review.",
  "reviewed": true,
  "import_status": "curated-research",
  "ai_layers": [
    "tool-integrations-mcp"
  ],
  "risk_impact": [
    "data-exfiltration",
    "service-disruption-dos"
  ],
  "affected_components": [
    "MCP Python SDK",
    "Experimental task handlers",
    "TaskStore"
  ],
  "source_research": {
    "provider": "Model Context Protocol Python SDK",
    "primary_url": "https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-hvrp-rf83-w775",
    "published": "2026-06-05",
    "note": "Source-grounded AIDEFEND curation. ATLAS annotations describe the supported mechanism and do not establish an official ATLAS case or unreported malicious intent."
  },
  "attack_steps": [
    {
      "id": "enable-experimental-tasks",
      "title": "Enable Default Experimental Task Handlers",
      "zhTitle": "啟用預設實驗性任務處理器",
      "summary": "The vulnerable condition requires server.experimental.enable_tasks() on a server with more than one client. A server that leaves the feature disabled is outside this path.",
      "zhSummary": "這條路徑需要伺服器呼叫 server.experimental.enable_tasks()，且有不只一個用戶端連線；未啟用此功能的伺服器不屬於這個受影響路徑。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": -960,
        "y": 0
      }
    },
    {
      "id": "enumerate-other-tasks",
      "title": "List Tasks without Session Ownership Filtering",
      "zhTitle": "列出任務時未依工作階段篩選",
      "summary": "The default tasks/list handler exposes task identifiers without filtering them to the creating session. An ordinary connected client need not be the task creator.",
      "zhSummary": "預設 tasks/list 處理器沒有依建立任務的工作階段篩選 ID，一般已連線用戶端也能看到不是自己建立的任務。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": -480,
        "y": 0
      }
    },
    {
      "id": "read-another-result",
      "title": "Read Another Client's Task Result",
      "zhTitle": "讀取另一個用戶端的任務結果",
      "summary": "Handlers acting on an identifier alone can return another client's task state, result or queued task messages. The advisory includes sensitive elicitation payloads among possible exposures.",
      "zhSummary": "僅憑 ID 處理請求的處理器，可能回傳另一個用戶端的任務狀態、結果或佇列訊息；公告亦指出徵求使用者輸入的內容可能隨之暴露。",
      "tactic": "AML.TA0009",
      "technique": "AML.T0085.001",
      "layout": {
        "x": 0,
        "y": -310
      }
    },
    {
      "id": "cancel-another-task",
      "title": "Cancel Work Created by Another Client",
      "zhTitle": "取消另一個用戶端建立的任務",
      "summary": "As a separate operation using the same missing-owner check, a client can cancel another client's task. Reading a result is not a prerequisite for cancellation.",
      "zhSummary": "同一個擁有權檢查缺陷，也讓用戶端能透過另一項操作取消別人的任務；不必先讀取結果，才能執行取消。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 0,
        "y": 390
      }
    }
  ],
  "threat_refs": [
    {
      "id": "AML.T0085.001",
      "name": "Data from AI Services: AI Agent Tools"
    }
  ]
}
