# CVE-2026-39313: MCP-Framework: Unbounded memory allocation in readRequestBody allows denial of service via HTTP transport

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-04-16T20:44:32.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-353c-v8x9-v7c3
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- QuantGeekDev mcp-framework: < 0.2.22
- mcp-framework (npm): before 0.2.22

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/QuantGeekDev/mcp-framework/security/advisories/GHSA-353c-v8x9-v7c3> (web)
- <https://github.com/QuantGeekDev/mcp-framework/commit/f97d2bb76d6359faf10cd1fc54b4911476b62524> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39313> (advisory)
- <https://github.com/QuantGeekDev/mcp-framework> (package)

## Sources

- CVE List: [CVE-2026-39313](https://www.cve.org/CVERecord?id=CVE-2026-39313), CVE Terms of Use, modified 2026-04-17
- GitHub Advisory Database: [GHSA-353c-v8x9-v7c3](https://github.com/advisories/GHSA-353c-v8x9-v7c3), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-39313](https://nvd.nist.gov/vuln/detail/CVE-2026-39313), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-39313 · Whole record: https://cve.day/CVE-2026-39313.json · Rebuilt by cve.day 2026-11-25T22:59:18.918Z
