Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-27896: CWE-178: Improper Handling of Case Sensitivity in modelcontextprotocol go-sdk

0
High
VulnerabilityCVE-2026-27896cvecve-2026-27896cwe-178cwe-436
Published: Thu Feb 26 2026 (02/26/2026, 00:47:46 UTC)
Source: CVE Database V5
Vendor/Project: modelcontextprotocol
Product: 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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/05/2026, 11:08:34 UTC

Technical Analysis

CVE-2026-27896 identifies a vulnerability in the modelcontextprotocol (MCP) Go SDK prior to version 1.3.1, stemming from improper handling of case sensitivity during JSON-RPC message parsing. The SDK relied on Go's standard encoding/json.Unmarshal function, which matches JSON keys to struct field tags in a case-insensitive manner. According to the JSON-RPC 2.0 specification, field names must match exactly, including case. This discrepancy allows a malicious MCP peer to craft protocol messages with altered casing in field names (e.g., "Method" instead of "method") that the SDK would accept without error. Such acceptance can lead to bypassing intermediary inspection mechanisms that expect strict adherence to the spec, as well as inconsistencies between different implementations of the protocol. The vulnerability is classified under CWE-178 (Improper Handling of Case Sensitivity) and CWE-436 (Interpretation Conflict). The patch involved replacing the standard JSON unmarshaler with a custom case-sensitive decoder, ensuring exact field name matching. The vulnerability has a CVSS 4.0 score of 7 (high), reflecting its network attack vector, low complexity, no privileges required, no user interaction, but with high scope and impact on confidentiality, integrity, and availability. No known exploits are currently reported in the wild. Users of the MCP Go SDK versions earlier than 1.3.1 are strongly advised to upgrade to the patched version to prevent potential protocol manipulation.

Potential Impact

This vulnerability can have significant impacts on organizations using the modelcontextprotocol Go SDK in their systems, especially those relying on JSON-RPC 2.0 for inter-service communication. By accepting JSON keys with non-standard casing, attackers can craft malicious protocol messages that bypass security controls such as protocol validators, firewalls, or intermediary inspection tools expecting strict compliance with JSON-RPC specifications. This can lead to unauthorized command execution, data manipulation, or disruption of service, affecting confidentiality, integrity, and availability of critical systems. The vulnerability requires no authentication or user interaction, increasing the risk of remote exploitation. Organizations with microservices architectures, cloud-native applications, or distributed systems using this SDK are particularly vulnerable. The inconsistency in protocol interpretation may also cause interoperability issues, leading to unexpected behavior or failures in multi-vendor environments. Although no active exploits are known, the ease of exploitation and high impact warrant immediate remediation to avoid potential attacks.

Mitigation Recommendations

To mitigate this vulnerability, organizations should immediately upgrade the modelcontextprotocol Go SDK to version 1.3.1 or later, which includes a case-sensitive JSON decoder that enforces exact field name matching per the JSON-RPC 2.0 specification. Additionally, organizations should audit their codebases and dependencies to identify any usage of affected SDK versions and plan for prompt updates. Implementing strict protocol validation at network boundaries and intermediary devices can help detect anomalous messages with non-standard casing. Security teams should monitor network traffic for unusual JSON-RPC messages and consider deploying application-layer firewalls capable of enforcing case-sensitive protocol compliance. For environments where immediate upgrade is not feasible, consider implementing custom input validation or message sanitization to reject messages with incorrect casing. Finally, maintain awareness of vendor advisories and subscribe to vulnerability feeds to stay informed of any emerging exploits or patches related to this issue.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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

Threat ID: 699f9a40b7ef31ef0b726109

Added to database: 2/26/2026, 12:56:32 AM

Last enriched: 3/5/2026, 11:08:34 AM

Last updated: 4/12/2026, 7:58:58 AM

Views: 159

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses