Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/modelcontextprotocol/go-sdk
  4. ›
  5. CVE-2026-27896

CVE-2026-27896: MCP Go SDK Vulnerable to Improper Handling of Case Sensitivity

February 26, 2026

The Go MCP SDK used Go’s standard encoding/json.Unmarshal for JSON-RPC and MCP protocol message parsing. 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. Additionally, Go’s standard library folds the Unicode characters ſ (U+017F) and K (U+212A) to their ASCII equivalents s and k, meaning fields like “paramſ” would match “params”. This violated the JSON-RPC 2.0 specification, which defines exact field names.

References

  • github.com/advisories/GHSA-wvj2-96wp-fq3f
  • github.com/modelcontextprotocol/go-sdk
  • github.com/modelcontextprotocol/go-sdk/commit/7b8d81c264074404abdf5aa16e2cf0c2d9c64cc0
  • github.com/modelcontextprotocol/go-sdk/security/advisories/GHSA-wvj2-96wp-fq3f
  • nvd.nist.gov/vuln/detail/CVE-2026-27896

Code Behaviors & Features

Detect and mitigate CVE-2026-27896 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.1

Fixed versions

  • 1.3.1

Solution

Upgrade to version 1.3.1 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-178: Improper Handling of Case Sensitivity
  • CWE-436: Interpretation Conflict

Source file

go/github.com/modelcontextprotocol/go-sdk/CVE-2026-27896.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 28 Feb 2026 00:20:37 +0000.