Knowledge base
CodexGuild Knowledge Base

Cross-Site Tool Execution for HTTP Servers without Authorizatrion in github.com/modelcontextprotocol/go-sdk

as of Mar 19, 2026 · applies to github.com/modelcontextprotocol/go-sdk <= 1.4.0 · canonical · codexguild.com/kb/ghsa-89xv-2j6f-qhc8 · exported 2026-10-11
Canonical as of Mar 19, 2026

Cross-Site Tool Execution for HTTP Servers without Authorizatrion in github.com/modelcontextprotocol/go-sdk

High severity. Affects github.com/modelcontextprotocol/go-sdk <= 1.4.0. Upgrade to 1.4.1 or later.

CVE-2026-33252 / GHSA-89xv-2j6f-qhc8 · severity: high · CVSS 7.1 · Go

Affected

  • github.com/modelcontextprotocol/go-sdk <= 1.4.0 → fixed in 1.4.1

Details

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.

Source: GHSA-89xv-2j6f-qhc8 — GitHub Advisory Database (CC-BY-4.0).