Skip to content
HighVulnerability

GO-2026-6911: SSRF and credential leak via unvalidated redirects and SSE endpoint origin in github.com/mark3labs/mcp-go

Published
Record updated
View JSON
Affected
  • github.com/mark3labs/mcp-go < 1.5.1-0.20261109144041-2f5b9637ea84
Fixed in
1.5.1-0.20261109144041-2f5b9637ea84
  • released November 9, 2026, 4 days after disclosure

Summary

In github.com/mark3labs/mcp-go, the transport constructors NewStreamableHTTP, NewSSE and NewOAuthHandler build default http.Client instances with a nil CheckRedirect policy when no custom client is supplied. SSE.handleSSEEvent also checks a server-supplied endpoint URL only against the connection's host, without checking scheme or port. A server responding with a 3xx redirect can therefore send custom headers, the Authorization header and, on 307 and 308 responses, request bodies such as JSON-RPC payloads or OAuth client_secret, authorization codes and refresh tokens to arbitrary origins.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.