GO-2026-6911: SSRF and credential leak via unvalidated redirects and SSE endpoint origin in github.com/mark3labs/mcp-go
- Source
- OSV(opens in a new tab)
- Published
- Record updated
- 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.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- github.com/mark3labs/mcp-goGoLLM dependency since 2024-11-28, 5 tracked dependents
Related items
- HighCVE-2026-128877: IBM Langflow OSS 1.0.0 through 1.13.0 agentic MCP endpoint uses an internal client to send requests to the server's own…Similar attack, NVD/CVE Database
- MediumCVE-2026-120038: IBM Langflow OSS credential exposure via attacker-controlled OpenAI base_urlSimilar attack, NVD/CVE Database
- MediumCVE-2026-136957: Sonatype Nexus Repository 3 HuggingFace proxy download token verification flawSimilar attack, NVD/CVE Database
- HighCVE-2026-142134 - Uncontrolled search path element in the workflow linting tools in AWS HealthOmics MCP ServerSimilar attack, AWS Security Bulletins
- HighCVE-2026-142134: AWS HealthOmics MCP Server uncontrolled search path in workflow linting toolsSimilar attack, NVD/CVE Database