CVE-2026-33252: MCP Go SDK Allows Cross-Site Tool Execution for HTTP Servers without Authorizatrion
The Go MCP SDK used Go's standard encoding/json. Prior to version 1.4.1, the Go SDK's Streamable HTTP transport accepted browser-generated cross-site POST requests without validating the Origin header and without requiring Content-Type: application/json. In deployments without Authorization, especially stateless or sessionless configurations, this allows an arbitrary website to send MCP requests to a local server and potentially trigger tool execution. Version 1.4.1 contains a patch for the issue.
Other sources
The Go SDK's Streamable HTTP transport accepted browser-generated cross-site POST requests without validating the Origin header and without requiring Content-Type: application/json. In deployments without Authorization, especially stateless or sessionless configurations, this allows an arbitrary website to send MCP requests to a local server and potentially trigger tool execution.
Impact:
A malicious website may have been able to send cross-site POST requests with Content-Type: text/plain, which due to CORS-safelisted properties would reach the MCP message handling without any CORS preflight barrier.
Fix:
The SDK was modified to perform Content-Type header validation for POST requests and introduced a configurable protection for verifying the origin of the request in commit a433a83. Users are advised to update to v1.4.1 to use this additional protection.
Note: v1.4.1 requires Go 1.25 or later.
Credits:
Thank you to Lê Minh Quân for reporting the issue.
— GitHub
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/github.com/modelcontextprotocol/go-sdkto a version that resolves this vulnerability.Fixed in 1.4.1 - Upgrade
Upgrade
MCP Go SDKto a version that resolves this vulnerability.Fixed in 1.4.1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-33252?
The severity of CVE-2026-33252 is classified as high due to the potential for unauthorized access through unvalidated cross-site POST requests.
How do I fix CVE-2026-33252?
To fix CVE-2026-33252, upgrade the Go SDK to version 1.4.1 or later.
What software is affected by CVE-2026-33252?
CVE-2026-33252 affects the Go SDK, specifically versions up to 1.4.0 of the package 'github.com/modelcontextprotocol/go-sdk'.
What type of attacks can be executed due to CVE-2026-33252?
CVE-2026-33252 can allow attackers to execute unauthorized actions through cross-site request forgery (CSRF) attacks.
Why is the 'Content-Type' header check important in CVE-2026-33252?
The lack of 'Content-Type: application/json' validation in CVE-2026-33252 enables potentially malicious payloads to be processed, increasing risk.