In github.com/mark3labs/mcp-go/client/transport, NewStreamableHTTP, NewSSE, and NewOAuthHandler construct default http.Client instances with a nil CheckRedirect policy when no custom HTTP client (WithHTTPBasicClient, WithHTTPClient, or OAuthConfig.HTTPClient) is supplied. Additionally, SSE.handleSSEEvent validates the server-supplied endpoint event URL only against the connection's host, without verifying the scheme or port.
When an MCP or OAuth server responds with a 3xx redirect, net/http follows up to 10 http or https redirects to arbitrary origins:
This enables server-side request forgery (SSRF) and credential or payload disclosure.
{
"review_status": "REVIEWED",
"url": "https://pkg.go.dev/vuln/GO-2026-6911"
}{
"imports": [
{
"path": "github.com/mark3labs/mcp-go/client/transport",
"symbols": [
"NewOAuthHandler",
"NewSSE",
"NewStreamableHTTP",
"OAuthHandler.ProcessAuthorizationResponse",
"OAuthHandler.RefreshToken",
"OAuthHandler.RegisterClient",
"SSE.SendNotification",
"SSE.SendRequest",
"SSE.Start",
"SSE.handleSSEEvent",
"StreamableHTTP.SendNotification",
"StreamableHTTP.SendRequest"
]
}
]
}