Skip to main content
VulnerabilityPublished

CVE-2026-33252: modelcontextprotocol go-sdk · Cross-Site Request Forgery (CSRF)

Affects modelcontextprotocol go-sdkSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.1 High : upgrade to 1.4.1 soon.

Data as of 29 Oct 2026, 19:04 UTC

CVSS 3.1 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.
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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 23 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
modelcontextprotocolgo-sdkAffected
  • <1.4.1
Fixed in
  • 1.4.1
Gogithub.com/modelcontextprotocol/go-sdkpkg:golang/github.com/modelcontextprotocol/go-sdkOther threatsAffected
  • <1.4.1
Fixed in
  • 1.4.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Upgrade the modelcontextprotocol go-sdk to version 1.4.1 or later immediately to apply the official patch addressing this vulnerability.
  2. Implement strict validation of the Origin and Referer headers on the server side to ensure that only requests from trusted origins are processed.
  3. 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.
  4. Introduce or strengthen authorization mechanisms in MCP deployments, especially avoiding stateless or sessionless configurations without authentication.
  5. Employ anti-CSRF tokens or similar mechanisms if the SDK or application allows customization to validate legitimate requests.
  6. Monitor network traffic and logs for unusual POST requests to the MCP endpoints, particularly those originating from unexpected sources or with missing/incorrect headers.
  7. Educate users about the risks of visiting untrusted websites that could trigger CSRF attacks.
  8. 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.

References

Community reviews

Loading reviews…