{"id":"CVE-2026-27896","aliases":["CVE-2026-27896","GHSA-wvj2-96wp-fq3f","GO-2026-4569"],"related":["CGA-vfrx-695v-7wq5"],"kind":"vulnerability","state":"published","title":"MCP Go SDK Vulnerable to Improper Handling of Case Sensitivity","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\n#### Impact:\n\nA malicious MCP peer may have been able to send protocol messages with non-standard field casing (e.g., \"Method\" instead of \"method\") that the SDK would silently accept. This had the potential for:\n  - **Bypassing intermediary inspection:** Proxies or policy layers that matched on exact field names may have failed to detect or filter these messages.\n  - **Cross-implementation inconsistency:** Other MCP SDKs (TypeScript, Python) use case-sensitive parsing and would reject the same messages, creating potential security-boundary confusion.\n\n####  Fix:\n\nGo's standard JSON unmarshaling was replaced with a case-sensitive decoder (github.com/segmentio/encoding) in commit 7b8d81c. Users are advised to update to v1.3.1 to resolve this issue.\n\n#### Credits:\nMCP Go SDK thanks Francesco Lacerenza (Doyensec) for reporting this issue.","format":"markdown","source":"ghsa"},{"lang":"en","text":"MCP Go SDK Vulnerable to Improper Handling of Case Sensitivity in github.com/modelcontextprotocol/go-sdk","format":"markdown","source":"go"},{"lang":"es","text":"El SDK de Go MCP utilizaba la función estándar `encoding/json.Unmarshal` de Go para el análisis de mensajes del protocolo JSON-RPC y MCP en versiones anteriores a la 1.3.1. La biblioteca estándar de Go realiza una coincidencia que no distingue entre mayúsculas y minúsculas de las claves JSON con las etiquetas de campo de las estructuras — un campo etiquetado como json:'method' también coincidiría con 'Method', 'METHOD', etc. Esto violaba la especificación JSON-RPC 2.0, que define nombres de campo exactos. Un par MCP malicioso podría haber sido capaz de enviar mensajes de protocolo con un uso de mayúsculas y minúsculas no estándar en los campos que el SDK aceptaría silenciosamente. Esto tenía el potencial de eludir la inspección intermedia y la inconsistencia entre implementaciones. El desenmascaramiento JSON estándar de Go fue reemplazado por un decodificador que distingue entre mayúsculas y minúsculas en el commit 7b8d81c. Se aconseja a los usuarios actualizar a la versión 1.3.1 para resolver este problema.","source":"nvd"}],"published":"2026-02-26T00:47:46.967Z","modified":"2026-09-16T12:04:21.685Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-178","CWE-436"],"affected":[{"ranges":[{"version":"< 1.3.1","status":"affected"}],"vendor":"modelcontextprotocol","product":"go-sdk","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Migration Toolkit for Virtualization","package":"migration-toolkit-virtualization/mtv-cli-download-rhel9","cpe":"cpe:/a:redhat:migration_toolkit_virtualization:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Migration Toolkit for Virtualization","package":"mtv-candidate/mtv-api-rhel9","cpe":"cpe:/a:redhat:migration_toolkit_virtualization:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Migration Toolkit for Virtualization","package":"mtv-candidate/mtv-cli-download-rhel9","cpe":"cpe:/a:redhat:migration_toolkit_virtualization:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Migration Toolkit for Virtualization","package":"mtv-candidate/mtv-controller-rhel9","cpe":"cpe:/a:redhat:migration_toolkit_virtualization:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Migration Toolkit for Virtualization","package":"mtv-candidate/mtv-operator-bundle","cpe":"cpe:/a:redhat:migration_toolkit_virtualization:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Lightspeed","package":"openshift-lightspeed/openshift-mcp-server-rhel9","cpe":"cpe:/a:redhat:openshift_lightspeed","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Serverless","package":"openshift-serverless-1/kn-client-kn-rhel9","cpe":"cpe:/a:redhat:serverless:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Serverless","package":"openshift-serverless-1/kn-plugin-func-func-util-rhel9","cpe":"cpe:/a:redhat:serverless:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-dashboard-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mod-arch-gen-ai-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mod-arch-model-registry-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.3.1"}],"ecosystem":"Go","package":"github.com/modelcontextprotocol/go-sdk","purl":"pkg:golang/github.com/modelcontextprotocol/go-sdk","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.3.1"}],"ecosystem":"Go","package":"github.com/modelcontextprotocol/go-sdk","purl":"pkg:golang/github.com/modelcontextprotocol/go-sdk","source":"go"},{"ranges":[{"status":"affected","fixed":"1.3.1"}],"vendor":"lfprojects","product":"mcp_go_sdk","cpe":"cpe:2.3:a:lfprojects:mcp_go_sdk:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/modelcontextprotocol/go-sdk/security/advisories/GHSA-wvj2-96wp-fq3f","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/modelcontextprotocol/go-sdk/commit/7b8d81c264074404abdf5aa16e2cf0c2d9c64cc0","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-27896","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2442903","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27896.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27896","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/modelcontextprotocol/go-sdk","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-02-26T17:06:14.973Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-27896","url":"https://www.cve.org/CVERecord?id=CVE-2026-27896","licence":"CVE Terms of Use","modified":"2026-09-16T12:04:21.685Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wvj2-96wp-fq3f","url":"https://github.com/advisories/GHSA-wvj2-96wp-fq3f","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:36.139Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4569","url":"https://pkg.go.dev/vuln/GO-2026-4569","licence":"CC-BY-4.0","modified":"2026-03-23T04:52:45.041Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-27896","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27896","licence":"Public domain","modified":"2026-07-15T02:19:12.600Z"}],"updatedAt":"2026-11-25T22:59:14.928Z","epss":{"score":0.00544,"percentile":0.39291,"date":"2026-11-30T12:00:22.000Z"}}