Missing user ID claims collapse authenticated principals and allow MCP session hijacking
GHSA-x863-g495-4cjc · published 2026-11-03
- Severity
- High
- CVSS score
- 7.5
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 2.3.1
An authenticated attacker with a victim session ID can cross the SDK's documented user-binding boundary and act within the victim's stateful MCP server instance. Depending on application configuration and session-scoped capabilities, this can expose user-specific tool names, resources, prompts, server-to-client state, or sensitive tool results; allow state-changing tool calls under the victim session; and let the attacker terminate the session. The attached proof demonstrates confidentiality, integrity, and availability effects using harmless per-session markers. It does not rely on guessing the session ID.
Upgrade ModelContextProtocol.AspNetCore to 2.3.1 or later.
Do not use one nullable value to represent both an unauthenticated session and an authenticated principal that cannot be identified. 1. If Identity.IsAuthenticated is true but no stable configured identifier can be extracted, fail closed during stateful session creation or reject subsequent session access. 2. Represent ownership as a discriminated state such as Unauthenticated, AuthenticatedWithId, and AuthenticatedWithoutId; never treat the last state as equal across requests. 3. Provide a documented application-configurable user-ID selector for custom authentication schemes, while retaining safe defaults for NameIdentifier, sub, and UPN. …
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| ModelContextProtocol.AspNetCore | NuGet | >= 0.1.0-preview.9, < 1.4.2 | 1.4.2 |
| ModelContextProtocol.AspNetCore | NuGet | >= 2.0.0-preview.1, < 2.3.1 | 2.3.1 |
- CriticalMarimo: Pre-Auth Remote Code Execution via Terminal WebSocket Authentication BypassmarimoExploited
- CriticalLangflow CORS misconfiguration enables Account Takeover and RCElangflowExploited
- HighLiteLLM: MCP Authentication Bypass via OAuth2 Passthrough FallbacklitellmExploited
- HighLangflow: IDOR Vulnerability in `/api/v1/responses` Endpoint Allows Authenticated Attackers to Access Another User's FlowlangflowExploited
- CriticalJupyter MCP Server: Host-header spoof bypasses the CVE-2026-77359/GHSA-9x8x-crjq-g64h fixjupyter-mcp-server
- CriticalUnauthenticated Superuser Token Issuance via Default-Enabled auto_login Endpointlangflow
The impact, patch and workaround text comes from the advisory, shortened (published by the MCP C# SDK project). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.