GO-2026-6911: SSRF and credential leak via unvalidated redirects and SSE endpoint origin in github.com/mark3labs/mcp-go
Published 2026-11-05 · Updated 2026-11-23
Summary
A Server-Side Request Forgery (SSRF) and credential leak vulnerability exists in github.com/mark3labs/mcp-go due to unvalidated HTTP redirects and incomplete server-supplied endpoint validation in Server-Sent Events (SSE). Engineering teams using affected versions of this library should update their dependencies immediately.
Who is affected
When MCP or OAuth servers issue 3xx redirects, the default HTTP client follows them to arbitrary origins, potentially leaking custom headers, Authorization tokens, and sensitive request bodies (including OAuth secrets and JSON-RPC payloads). Additionally, the SSE endpoint validation only checks the host without verifying the scheme or port. This impacts deployments utilizing the client transport handlers without custom HTTP clients.
Exploitability
The severity, CVSS vector, and EPSS scores are not documented in the record. CISA Known Exploited Vulnerabilities indicates no active exploitation.
Remediation
- Update github.com/mark3labs/mcp-go to fixed version 1.5.1-0.20261109144041-2f5b9637ea84 or later.
How to check your project
- Check go.mod and go.sum files to see if github.com/mark3labs/mcp-go is included in versions prior to 1.5.1-0.20261109144041-2f5b9637ea84.
Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/mark3labs/mcp-go |
>= 0, < 1.5.1-0.20261109144041-2f5b9637ea84 | 1.5.1-0.20261109144041-2f5b9637ea84 | go get github.com/mark3labs/[email protected] |
FAQ
What packages are affected?
Go package github.com/mark3labs/mcp-go is affected.
Is there active exploitation?
No, CISA Known Exploited Vulnerabilities lists this as no.
What causes the credential leak?
The default http.Client instances use a nil CheckRedirect policy, causing sensitive headers and request bodies to be resent to arbitrary redirect targets.
Original advisory description
References
- FIX https://github.com/mark3labs/mcp-go/commit/2f5b9637ea843f918889293b8d08d600e13b18e2
- FIX https://github.com/mark3labs/mcp-go/pull/1192
- REPORT https://github.com/mark3labs/mcp-go/issues/1188
Source records: GO-2026-6911 (OSV.dev).