CVE-2026-27896: CWE-178: Improper Handling of Case Sensitivity in modelcontextprotocol go-sdk
The Go MCP SDK used Go's standard encoding/json.Unmarshal for JSON-RPC and MCP protocol message parsing in versions prior to 1.3.1. Go's standard library performs case-insensitive matching of JSON keys to struct field tags — a field tagged json:"method" would also match "Method", "METHOD", etc. This violated the JSON-RPC 2.0 specification, which defines exact field names. A malicious MCP peer may have been able to send protocol messages with non-standard field casing that the SDK would silently accept. This had the potential for bypassing intermediary inspection and coss-implementation inconsistency. Go's standard JSON unmarshaling was replaced with a case-sensitive decoder in commit 7b8d81c. Users are advised to update to v1.3.1 to resolve this issue.
AI Analysis
Technical Summary
The modelcontextprotocol go-sdk versions before 1.3.1 used Go's standard encoding/json.Unmarshal for parsing JSON-RPC and MCP protocol messages. This standard library unmarshaler matches JSON keys to struct fields in a case-insensitive manner, allowing fields tagged as "method" to also match "Method", "METHOD", etc. This behavior violates the JSON-RPC 2.0 specification, which mandates exact field name matching. Consequently, a malicious MCP peer could craft protocol messages with non-standard casing to bypass intermediary inspection or cause cross-implementation inconsistencies. The vulnerability was addressed by replacing the standard unmarshaler with a case-sensitive decoder in commit 7b8d81c, and users are advised to update to version 1.3.1 or later to resolve the issue.
Potential Impact
The vulnerability allows a malicious MCP peer to send protocol messages with non-standard field casing that the SDK would accept, violating the JSON-RPC 2.0 specification. This can lead to bypassing intermediary inspection mechanisms and cause inconsistencies between implementations that expect exact field name matching. The CVSS 4.0 score is 7, indicating a high severity impact with network attack vector, low attack complexity, and no required privileges or user interaction.
Mitigation Recommendations
An official fix is available in version 1.3.1 of the modelcontextprotocol go-sdk, which replaces the case-insensitive JSON unmarshaler with a case-sensitive decoder. Users should update to version 1.3.1 or later to remediate this vulnerability. No additional mitigation steps are indicated by the vendor advisory.
CVE-2026-27896: CWE-178: Improper Handling of Case Sensitivity in modelcontextprotocol go-sdk
Description
The Go MCP SDK used Go's standard encoding/json.Unmarshal for JSON-RPC and MCP protocol message parsing in versions prior to 1.3.1. Go's standard library performs case-insensitive matching of JSON keys to struct field tags — a field tagged json:"method" would also match "Method", "METHOD", etc. This violated the JSON-RPC 2.0 specification, which defines exact field names. A malicious MCP peer may have been able to send protocol messages with non-standard field casing that the SDK would silently accept. This had the potential for bypassing intermediary inspection and coss-implementation inconsistency. Go's standard JSON unmarshaling was replaced with a case-sensitive decoder in commit 7b8d81c. Users are advised to update to v1.3.1 to resolve this issue.
CVSS v4.0
Score 7.0high
Affected software
pkg:golang/github.com/modelcontextprotocol/go-sdkRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The modelcontextprotocol go-sdk versions before 1.3.1 used Go's standard encoding/json.Unmarshal for parsing JSON-RPC and MCP protocol messages. This standard library unmarshaler matches JSON keys to struct fields in a case-insensitive manner, allowing fields tagged as "method" to also match "Method", "METHOD", etc. This behavior violates the JSON-RPC 2.0 specification, which mandates exact field name matching. Consequently, a malicious MCP peer could craft protocol messages with non-standard casing to bypass intermediary inspection or cause cross-implementation inconsistencies. The vulnerability was addressed by replacing the standard unmarshaler with a case-sensitive decoder in commit 7b8d81c, and users are advised to update to version 1.3.1 or later to resolve the issue.
Potential Impact
The vulnerability allows a malicious MCP peer to send protocol messages with non-standard field casing that the SDK would accept, violating the JSON-RPC 2.0 specification. This can lead to bypassing intermediary inspection mechanisms and cause inconsistencies between implementations that expect exact field name matching. The CVSS 4.0 score is 7, indicating a high severity impact with network attack vector, low attack complexity, and no required privileges or user interaction.
Mitigation Recommendations
An official fix is available in version 1.3.1 of the modelcontextprotocol go-sdk, which replaces the case-insensitive JSON unmarshaler with a case-sensitive decoder. Users should update to version 1.3.1 or later to remediate this vulnerability. No additional mitigation steps are indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-02-24T15:19:29.717Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-27896","vendor":"Red Hat"}]
Threat ID: 699f9a40b7ef31ef0b726109
Added to database: 02/26/2026, 00:56:32 UTC
Last enriched: 07/15/2026, 08:45:45 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 275
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.