MCP Go SDK Vulnerable to Improper Handling of Case Sensitivity
CVE-2026-27896 · GHSA-wvj2-96wp-fq3f · published 2026-02-26
- Severity
- High
- CVSS score
- 7.0
- Chance of exploitation (EPSS)
- 0.29%
- Fixed in
- 1.3.1
- Exploitation No known exploitation
- Automatable Yes
- Technical impact Partial
- CISA SSVC
A malicious MCP peer may have been able to send protocol messages with non-standard field casing (e.g., "Method" instead of "method") that the SDK would silently accept. This had the potential for: Bypassing intermediary inspection: Proxies or policy layers that matched on exact field names may have failed to detect or filter these messages. Cross-implementation inconsistency: Other MCP SDKs (TypeScript, Python) use case-sensitive parsing and would reject the same messages, creating potential security-boundary confusion.
Upgrade github.com/modelcontextprotocol/go-sdk to 1.3.1 or later.
Go's standard JSON unmarshaling was replaced with a case-sensitive decoder (github.com/segmentio/encoding) in commit 7b8d81c. Users are advised to update to v1.3.1 to resolve this issue.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| github.com/modelcontextprotocol/go-sdk | Go | < 1.3.1 | 1.3.1 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- HighDNS Rebinding Protection Disabled by Default in Model Context Protocol Go SDK for Servers Running on Localhostgithub.com/modelcontextprotocol/go-sdk
- HighCross-Site Tool Execution for HTTP Servers without Authorizatrion in github.com/modelcontextprotocol/go-sdkgithub.com/modelcontextprotocol/go-sdk
- HighImproper handling of null Unicode character when parsing JSON in github.com/modelcontextprotocol/go-sdkgithub.com/modelcontextprotocol/go-sdk
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.