Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108859 Overview
CVE-2026-108859 is a denial of service vulnerability in mcp-go through version 1.2.1. The flaw resides in StreamableHTTPServer.ServeHTTP, which reads incoming POST bodies fully into memory with io.ReadAll before applying any validation or size limits. Remote unauthenticated attackers can send oversized or many concurrent POST requests to exhaust server memory, degrading service or triggering an out-of-memory (OOM) kill of the server process. The weakness is categorized as CWE-770: Allocation of Resources Without Limits or Throttling.
Critical Impact
Unauthenticated remote attackers can exhaust server memory and crash mcp-go based Model Context Protocol (MCP) services without any credentials or user interaction.
Affected Products
- mcp-go library (mark3labs/mcp-go) through version 1.2.1
- Applications embedding StreamableHTTPServer from mcp-go
- MCP server implementations exposing the streamable HTTP transport over the network
Discovery Timeline
- 2026-10-11 - CVE-2026-108859 published to the National Vulnerability Database (NVD)
- 2026-10-11 - Last updated in NVD database
Technical Details for CVE-2026-108859
Vulnerability Analysis
The mcp-go library implements the Model Context Protocol over a streamable HTTP transport. In the vulnerable code path, the server handler accepts a POST request and invokes io.ReadAll on the request body before performing any schema or size validation. Because the handler imposes no MaxBytesReader, no Content-Length ceiling, and no streaming parse, the full body is materialized in Go heap memory first.
An attacker can abuse this behavior in two ways. First, a single request with an arbitrarily large body forces the process to allocate a buffer matching the attacker's payload size. Second, many concurrent large POST requests multiply memory pressure linearly across goroutines. Either pattern degrades response latency, triggers garbage collection thrash, or causes the kernel OOM killer to terminate the process.
The vulnerability requires no authentication, no privileges, and no user interaction. The impact is limited to availability; confidentiality and integrity are not affected.
Root Cause
The root cause is unbounded resource allocation in StreamableHTTPServer.ServeHTTP. The handler calls io.ReadAll(r.Body) directly on the incoming http.Request body without wrapping it in http.MaxBytesReader or enforcing a configurable size cap. See the upstream code snippet for the vulnerable region.
Attack Vector
Exploitation occurs over the network against any exposed mcp-go streamable HTTP endpoint. An attacker issues one or more HTTP POST requests to the MCP endpoint with large or chunk-streamed bodies. Because validation occurs after full-body read, the server commits memory for every byte the attacker transmits. Technical details are documented in the Vulncheck advisory and the HackMD write-up.
No verified public exploit code is referenced in the advisory beyond the behavioral description. See the mcp-go GitHub repository for source context.
Detection Methods for CVE-2026-108859
Indicators of Compromise
- Sudden spikes in resident set size (RSS) or Go heap allocations in processes linking mcp-go
- HTTP POST requests to MCP endpoints with abnormally large Content-Length headers or chunked transfer encoding
- Repeated process restarts, OOM-killer entries in dmesg, or systemd service crash loops tied to the MCP server
- Bursts of concurrent inbound connections from a small set of source IP addresses to the streamable HTTP endpoint
Detection Strategies
- Enable request-level logging on reverse proxies in front of mcp-go and alert on POST bodies exceeding a defined threshold (for example, 1 MB)
- Correlate memory-pressure metrics with HTTP access logs to identify request bursts preceding OOM events
- Monitor Go runtime metrics (go_memstats_alloc_bytes, process_resident_memory_bytes) exposed via /metrics endpoints for unexpected growth
Monitoring Recommendations
- Instrument the MCP endpoint with per-client rate and concurrency counters at the proxy layer
- Ship container and host memory telemetry to a centralized analytics platform for anomaly detection
- Capture kernel OOM events and systemd restart counts as high-signal availability indicators
How to Mitigate CVE-2026-108859
Immediate Actions Required
- Inventory all services that embed mark3labs/mcp-go at version 1.2.1 or earlier
- Place a reverse proxy (NGINX, Envoy, or an API gateway) in front of exposed MCP endpoints and enforce a strict request body size limit
- Restrict network exposure of the streamable HTTP transport to trusted clients using firewall rules or mTLS
- Apply per-source rate limiting and concurrency caps to the MCP endpoint
Patch Information
At the time of publication, the NVD entry for CVE-2026-108859 does not list a fixed version. Monitor the mcp-go GitHub repository and the Vulncheck advisory for an upstream fix that introduces a bounded reader on the POST body path. Upgrade mcp-go as soon as a patched release is available and rebuild dependent binaries.
Workarounds
- Wrap the request body with http.MaxBytesReader in a custom handler or middleware before invoking the vulnerable code path
- Terminate TLS and enforce client_max_body_size (NGINX) or equivalent limits at the ingress layer
- Drop or throttle requests whose Content-Length exceeds the expected MCP message size
- Run the MCP server under a cgroup memory limit so a single OOM kill does not impact co-located services
# NGINX example: cap request body size and concurrent connections to the MCP endpoint
http {
limit_conn_zone $binary_remote_addr zone=mcp_conn:10m;
limit_req_zone $binary_remote_addr zone=mcp_req:10m rate=20r/s;
server {
listen 443 ssl;
server_name mcp.example.com;
location /mcp {
client_max_body_size 256k;
limit_conn mcp_conn 8;
limit_req zone=mcp_req burst=40 nodelay;
proxy_pass http://127.0.0.1:8080;
}
}
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

