CVE-2026-108859 Details
Description
mcp-go through 1.2.1 contains a denial of service vulnerability in StreamableHTTPServer.ServeHTTP that allows remote unauthenticated attackers to exhaust memory by sending oversized POST bodies. Attackers can send arbitrarily large or many concurrent POST requests, read fully via io.ReadAll before validation, to degrade or OOM-kill the server process.
A denial-of-service vulnerability has been identified in mark3labs mcp-go versions through 1.2.1. The issue resides in the StreamableHTTPServer's ServeHTTP method, where the server reads the entire body of POST requests into memory without any prior validation or size limits. This flaw allows remote, unauthenticated attackers to send oversized POST bodies, leading to memory exhaustion and potentially causing the server process to be terminated. The vulnerability is exacerbated by the absence of default request-body limits in Go's net/http package, allowing attackers to exploit the issue by sending large or numerous concurrent POST requests.
To address this vulnerability, the body should be capped before it is read into memory. This can be done by using the http.MaxBytesReader function to limit the size of the request body. Additionally, the server should reject oversized Content-Length headers with an HTTP 413 status. It is also recommended to set timeouts and a header size limit in the HTTP server configuration to prevent similar issues.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 11, 2026CISA-ADP
Assessed Oct 18, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mark3labs/mcp-go | <= 1.2.1 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Modified | CISA-ADP |
| Oct 11, 2026 | New CVE Received | [email protected] |
Volerion