Skip to content
HighVulnerability

CVE-2026-39313: mcp-framework HTTP transport crash via unlimited request body size on /mcp

Identifier
CVE-2026-39313
Published
Record updated
View JSON

Summary

mcp-framework, a framework for building Model Context Protocol (MCP) servers, is affected by CVE-2026-39313 in versions 0.2.21 and below. The readRequestBody() function in the HTTP transport concatenates request body chunks with no size limit, and the maxMessageSize setting is never enforced there. A remote unauthenticated attacker can crash any mcp-framework HTTP server with one large POST to /mcp, causing memory exhaustion and denial of service.

Mitigation

Fixed in 0.2.22.