CVE-2026-108395highDenial of service2026-10-14
CVE-2026-108395: MCP Java SDK HTTP servers can be crashed with one huge request
The official MCP Java SDK’s Servlet-based HTTP transports read the whole request body into memory with no size limit. One unauthenticated chunked POST can exhaust the Java heap and take the server down.
What it is
GitHub advisory: the Streamable HTTP, Stateless and SSE server transports “buffered the entire incoming request body into memory before parsing it, with no limit on how large that body could be.”
Chunked transfer encoding gets past any Content-Length check, and a single request was enough to cause an OutOfMemoryError.
Authentication, Origin/Host checks or an upstream request-size limit can reject the request before the vulnerable read. This is the Java counterpart of the MCP Python SDK issue CVE-2026-109527.
How to check
- NVD lists io.modelcontextprotocol.sdk:mcp 0.8.0 to 0.12.0, and mcp-core 0.13.0 to 0.18.3, 1.0.0 to 1.1.3, and 2.0.0-M1 to 2.0.0 as affected.
- Only servers exposing a Servlet-based HTTP transport to unlimited network input are affected.
How to fix
- Upgrade mcp-core to 0.18.4, 1.1.4 or 2.0.1, matching your release line. The old mcp artifact (0.8.0 to 0.12.0) has no fixed release, so move to mcp-core.
- If you can’t upgrade yet, put a reverse proxy or gateway with a request body limit in front of the server.
mvn dependency:tree | grep modelcontextprotocol Sources
More advisories for this tool
- criticalCVE-2026-115555 and 28 more: IBM's Langflow bulletin fixes 29 flaws up to 1.13.0, including 9.9 code execution, MCP tool calls that run custom code without admin rights and an unauthenticated public-flow RCE, upgrade to 1.13.1
- criticalCVE-2026-76092 and CVE-2026-76099: Docker MCP Gateway served its MCP endpoints with no auth in container mode, and its dynamic tools could mount the Docker socket for root on the host (fixed 0.43.1)
- criticalCVE-2026-142487: Joinly's meeting-agent MCP server let any network client import and run subprocess.Popen through the joinly-settings header (fixed 0.5.4)
- criticalCVE-2026-76812 and more: CKAN MCP Server's unauthenticated HTTP mode let anyone bounce sparql_query to the cloud metadata service and read IAM credentials, plus a string of SSRF, injection and DoS fixes (upgrade to 0.4.147)