Improper handling of null Unicode character when parsing JSON in github.com/modelcontextprotocol/go-sdk
GHSA-q382-vc8q-7jhj · published 2026-03-19
- Severity
- High
- CVSS score
- 8.2
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 1.4.1
When combined with duplicate keys, the described behavior leads to a "last key wins" resolution that could override the intended MCP message. 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.4.1 or later.
The segmentio/encoding package was patched with a fix in https://github.com/segmentio/encoding/commit/7d5a25dbc5da13aed3cb047a127e4d0e96f536fb and a new version of the package was released (v0.5.4). The SDK switched to the patched version of the dependency in 724dd47aa. Users are advised to update to v1.4.1 to resolve this issue.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| github.com/modelcontextprotocol/go-sdk | Go | <= 1.4.0 | 1.4.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
- HighMCP Go SDK Vulnerable to Improper Handling of Case Sensitivitygithub.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.