Denial of Service Vulnerability in mcp-framework by QuantGeekDev
CVE-2026-39313
8.7HIGH
What is CVE-2026-39313?
The mcp-framework, designed for the Model Context Protocol (MCP), contains a vulnerability in its readRequestBody() function. In versions up to 0.2.21, this function is vulnerable to memory exhaustion due to its handling of request body chunks without a size limit. While a maximum message size can be configured, it is not enforced, allowing an unauthenticated remote attacker to send an oversized POST request to the /mcp endpoint. This can lead to the server crashing due to denial of service. The issue has been resolved in version 0.2.22.
Affected Version(s)
mcp-framework < 0.2.22
