GO-2026-6911
SSRF and credential leak via unvalidated redirects and SSE endpoint origin in github.com/mark3labs/mcp-go
Mitigation
- Upgrade github.com/mark3labs/mcp-go to 1.5.1-0.20261109144041-2f5b9637ea84 or later.
Who should check
- Projects that depend on Go package github.com/mark3labs/mcp-go (< 1.5.1-0.20261109144041-2f5b9637ea84)
Vulnerability facts
- Affected
- github.com/mark3labs/mcp-go < 1.5.1-0.20261109144041-2f5b9637ea84
- Fixed in
- 1.5.1-0.20261109144041-2f5b9637ea84
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
Description
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: - Custom headers configured via WithHTTPHeaders, WithHTTPHeaderFunc, WithHeaders, or WithHeaderFunc are copied onto requests to any redirect host. - The Authorization header (including OAuth bearer tokens) is preserved when redirecting to the same host or a subdomain, including across port changes or https-to-http scheme downgrades. - On 307 and 308 redirects, the request body is resent to the redirect target, exposing JSON-RPC payloads on transport requests and form bodies containing client_secret, authorization codes, or refresh tokens on OAuth token, refresh, and client registration requests. This enables server-side request forgery (SSRF) and credential or payload disclosure.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/mark3labs/mcp-go | < 1.5.1-0.20261109144041-2f5b9637ea84 | 1.5.1-0.20261109144041-2f5b9637ea84 | osv |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by GO-2026-6911. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/GO-2026-6911.md Affected: github.com/mark3labs/mcp-go < 1.5.1-0.20261109144041-2f5b9637ea84 Fixed in: 1.5.1-0.20261109144041-2f5b9637ea84 Steps: 1. Search this machine and project for github.com/mark3labs/mcp-go (Go): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is GO-2026-6911 being exploited?
There is no confirmed exploitation: GO-2026-6911 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is GO-2026-6911?
It has no CVSS score yet. Unknown.
Which versions are affected by GO-2026-6911?
github.com/mark3labs/mcp-go < 1.5.1-0.20261109144041-2f5b9637ea84.
Is there a fix for GO-2026-6911?
Yes. Fixed in 1.5.1-0.20261109144041-2f5b9637ea84. Upgrade github.com/mark3labs/mcp-go to 1.5.1-0.20261109144041-2f5b9637ea84 or later.
How do I check if I'm affected by GO-2026-6911?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.