CVE-2026-33252: modelcontextprotocol go-sdk · Cross-Site Request Forgery (CSRF)
Affects modelcontextprotocol go-sdkSource CVE Database V5
Not known to be exploited · CVSS 7.1 High : upgrade to 1.4.1 soon.
Data as of 29 Oct 2026, 19:04 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 7% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.4.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:LExploitation evidence
Disclosed: evidence found.
CVE published 23 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade go-sdk and github.com/modelcontextprotocol/go-sdk to 1.4.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| modelcontextprotocolgo-sdk | Affected
| Fixed in
|
Gogithub.com/modelcontextprotocol/go-sdkpkg:golang/github.com/modelcontextprotocol/go-sdkOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Upgrade the modelcontextprotocol go-sdk to version 1.4.1 or later immediately to apply the official patch addressing this vulnerability.
- Implement strict validation of the Origin and Referer headers on the server side to ensure that only requests from trusted origins are processed.
- Enforce the Content-Type header to be application/json for all MCP POST requests to prevent acceptance of cross-site form submissions with other content types.
- Introduce or strengthen authorization mechanisms in MCP deployments, especially avoiding stateless or sessionless configurations without authentication.
- Employ anti-CSRF tokens or similar mechanisms if the SDK or application allows customization to validate legitimate requests.
- Monitor network traffic and logs for unusual POST requests to the MCP endpoints, particularly those originating from unexpected sources or with missing/incorrect headers.
- Educate users about the risks of visiting untrusted websites that could trigger CSRF attacks.
- Consider network-level controls such as firewall rules to restrict access to MCP services from untrusted networks or browsers. These measures collectively reduce the attack surface and prevent exploitation even if a user visits a malicious site.
Description
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.