| Field | Value |
|---|---|
| GHSA ID | GHSA-2hm9-qff2-hrpj |
| CVE ID | No CVE assigned |
| Date (index) | 2026-10-20 |
| Affected product | io.modelcontextprotocol.sdk:mcp-core |
| OWASP MCP Top 10 (2025) | MCP07 — Insufficient Authentication & Authorization |
| Published / disclosed | 2026-10-20 |
| Ecosystem | Maven |
| Component | io.modelcontextprotocol.sdk:mcp-core |
| CVSS score | High |
| CWE | CWE-770 |
| Affected versions | io.modelcontextprotocol.sdk:mcp-core: >= 0.11.0, 0 < 0.18.5; io.modelcontextprotocol.sdk:mcp-core: >= 1.0.0, < 1.1.5; io.modelcontextprotocol.sdk:mcp-core: >= 2.0.0, < 2.1.0 |
| Fixed versions | io.modelcontextprotocol.sdk:mcp-core: 0.18.5; io.modelcontextprotocol.sdk:mcp-core: 1.1.5; io.modelcontextprotocol.sdk:mcp-core: 2.1.0 |
| Fix status | Patched |
| Notes | Updated on 2026-11-09 from the GitHub repository advisory. |
Unbounded session retention in the Streamable HTTP transport allows an initialize flood DoS
initialize request and never removes it on its own. It has no idle timeout, no cap on the number of sessions, and no background reaper. A session is removed only by an explicit client DELETE. The security validator defaults to a no-op, so initialize is unauthenticated. An attacker can send initialize requests in a loop and never delete them, and the server keeps one session object per request until it runs out of memory. ## Details In HttpServletStreamableServerTransportProvider, doPost handles an initialize request by starting a session and putting it into a sessions map keyed by a fresh session id: java if (message instanceof McpSchema.JSONRPCRequest jsonrpcRequest && jsonrpcRequest.method().equals(McpSchema.METHOD_INITIALIZE)) { // ... McpStreamableServerSession.McpStreamableServerSessionInit init = this.sessionFactory .startSession(initializeRequest); this.sessions.put(init.session().getId(), init.session()); // ... } Nothing else in the transport removes entries except the DELETE handler. The provider has a keepAliveInterval for pings, but no idle timeout, no maximum session count, and no background eviction. The sessions field is a plain ConcurrentHashMap that only grows: ```java private final ConcurrentHashMap<String, McpStreamableServerSession> sessions = new ConUpgrade to the patched version listed above. Where the advisory says a setting is still required after the upgrade, apply that setting as well. Keep HTTP MCP listeners authenticated and off untrusted networks until the upgrade is in place.
io.modelcontextprotocol.sdk:mcp-core with the affected range.