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…
EPSS 0.3%top 83%

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

0
High
VulnerabilityCVE-2026-27896cvecve-2026-27896cwe-178cwe-436
Published: 02/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.

CVSS v4.0

Score 7.0high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N

Affected software

github.com/modelcontextprotocol/go-sdk
pkg:golang/github.com/modelcontextprotocol/go-sdk
Affected versions
<1.3.1

Run 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

AILast updated: 07/15/2026, 08:45:45 UTC

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.

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
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 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