Skip to content
OpenAdvisories
High · 7.0 CVE-2026-27896 EUVD-2026-8792GHSA-wvj2-96wp-fq3fGO-2026-4569

MCP Go SDK Vulnerable to Improper Handling of Case Sensitivity

Published Feb 26, 2026 · Updated Sep 16, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
modelcontextprotocol go-sdk < 1.3.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20260317T205859-150000.1.152.1 SUSE-SU-2026:1042-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ferretdb 2.7.0-r7 —
Wolfi rolling github-mcp-server 0.31.0-r1 —
Wolfi rolling gptscript 0.9.8-r35 —
Wolfi rolling jaeger-2-jaeger 2.15.1-r1 —
Wolfi rolling opencost 1.119.2-r1 —
Wolfi rolling osv-scanner 2.3.3-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/modelcontextprotocol/go-sdk < 1.3.1 1.3.1 GHSA-wvj2-96wp-fq3f

Advisories 2

References