Multiple MCP SDKs fix the issue of unbounded request bodies
Start here
In April 2026, author Raza Sharif reported CVE-2026-39313: the MCP framework mcp-framework reads HTTP request bodies without a size limit (CWE-770), so a single unauthenticated request can exhaust memory and take the server offline; he calls it the first such CVE and cites a July third-party analysis calling it the first documented denial-of-service vulnerability on the MCP HTTP transport. Over the following six months, the author says defects with the same root cause were successively fixed in at least nine MCP projects, including the official Python, Java, Go, Ruby, PHP, and TypeScript SDKs, among which the PHP SDK fix targets the client SSE buffer, and the fixes are almost all a default 4 MiB request body limit. The author recommends checking SDK versions and upgrading, or setting a request body limit at the reverse proxy; he says that as of early November 2026, the MCP security best practices document still has no guidance on request body size limits.
Generated by AI from reports · Updated 6 days ago
Progress timeline
- DEV CommunitySelectedAuthor says the mcp-framework CVE is the first of its kind, and several MCP SDKs subsequently fixed the lack of a request body size limit
Author Raza Sharif reviews CVE-2026-39313, which he reported in April 2026: the MCP framework mcp-framework reads HTTP request bodies without a size limit (CWE-770), so a single unauthenticated request can exhaust memory and take the server offline; the author says this is the first CVE of its kind, and cites a July third-party analysis calling it the first documented denial-of-service vulnerability on the MCP HTTP transport. Over the following six months, the author says defects with the same root cause were successively fixed in at least nine MCP projects, including the official Python, Java, Go, Ruby, PHP and TypeScript SDKs (the PHP SDK fix targets the client SSE buffer), almost all by defaulting to a 4 MiB request body limit. The author recommends directly checking the SDK version and upgrading, or setting a request body limit at the reverse proxy; the author says that as of early November 2026, the MCP security best practices document still has no guidance on request body size limits.