GO-2026-6911 SSRF and credential leak via unvalidated Location header in github.com/mark3labs/mcp-go
- Published
- Updated
- Exploit status
- No public exploit known
Description
In github.com/mark3labs/mcp-go/client/transport, NewStreamableHTTP constructs an http.Client with a nil CheckRedirect policy when no custom WithHTTPBasicClient is supplied, and attaches static custom headers and OAuth bearer tokens inside a RoundTripper layer. If an MCP server responds with a 3xx redirect, the client follows the Location header to arbitrary hosts and schemes and attaches configured WithHeaders and OAuth Authorization headers to the redirected request, enabling server-side request forgery (SSRF) and credential disclosure.
Upgrade path
1 package: 0 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| mark3labs github.com/mark3labs/mcp-go(Go) | All versions | No fix listed | No fix yet |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| mark3labs github.com/mark3labs/mcp-go(Go) | All versions | No fix listed |
References
- github.com issue-tracking
- github.com issue-tracking