CVE-2026-39313

Source
https://cve.org/CVERecord?id=CVE-2026-39313
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-39313.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-39313
Aliases
Published
2026-04-16T21:24:27.328Z
Modified
2026-07-08T08:02:06.094813620Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
MCP-Framework: Unbounded memory allocation in readRequestBody allows denial of service via HTTP transport
Details

mcp-framework is a framework for building Model Context Protocol (MCP) servers. In versions 0.2.21 and below, the readRequestBody() function in the HTTP transport concatenates request body chunks into a string with no size limit. Although a maxMessageSize configuration value exists, it is never enforced in readRequestBody(). A remote unauthenticated attacker can crash any mcp-framework HTTP server by sending a single large POST request to /mcp, causing memory exhaustion and denial of service. This issue has been fixed in version 0.2.22.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39313.json",
    "cwe_ids": [
        "CWE-770"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/quantgeekdev/mcp-framework

Affected ranges

Type
GIT
Repo
https://github.com/quantgeekdev/mcp-framework
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.2.22"
        }
    ]
}

Affected versions

mcp-framework-v0.*
mcp-framework-v0.2.17
mcp-framework-v0.2.18
mcp-framework-v0.2.19
mcp-framework-v0.2.20
mcp-framework-v0.2.21

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-39313.json"