mcp-go through 1.2.1 Denial of Service via Unbounded POST Body Buffering
mark3labs mcp-go
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| mark3labs mcp-go |
| No fix yet |
Original 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.
From the CVE record · VulnCheck