VulnWatch by ve1ve2
unknown

GO-2026-6911: SSRF and credential leak via unvalidated Location header in github.com/mark3labs/mcp-go

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
github.com/mark3labs/mcp-go

https://osv.dev/vulnerability/GO-2026-6911 ↗

osvgono-fix-yet

SSRF and credential leak via unvalidated Location header in github.com/mark3labs/mcp-go 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. Affected: Go:github.com/mark3labs/mcp-go No fixed version published yet References: https://github.com/golang/vulndb/issues/6911 https://github.com/mark3labs/mcp-go/issues/1164