{"id":"GO-2026-4770","revision":null,"records":[{"revision":"ec75de96a8894b3d83f618be373fa7e9","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-q382-vc8q-7jhj","aliases":["GO-2026-4770"],"title":"Improper handling of null Unicode character when parsing JSON in github.com/modelcontextprotocol/go-sdk","description":"The Go SDK recently transitioned to the `segmentio/encoding` library for JSON parsing in version 1.3.1. While this change addressed both case-insensitivity and ASCII folding issues, the new parser implemented aggressive key matching that treated keys with `null` Unicode characters appended at the end as equivalent to their base strings.\n\n#### Impact\n\nWhen combined with duplicate keys, the described behavior leads to a \"last key wins\" resolution that could override the intended MCP message. 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\nThe `segmentio/encoding` package was patched with a fix in https://github.com/segmentio/encoding/commit/7d5a25dbc5da13aed3cb047a127e4d0e96f536fb and a new version of the package was released (`v0.5.4`). The SDK switched to the patched version of the dependency in 724dd47aa. Users are advised to update to v1.4.1 to resolve this issue.\n\n#### Credits:\nThank you to Francesco Lacerenza (Doyensec) for reporting this issue.","state":0,"publishedAt":"2026-03-19T12:44:07+00:00","modifiedAt":"2026-09-10T03:50:40.4186264+00:00","affected":[{"ecosystem":"Go","name":"github.com/modelcontextprotocol/go-sdk","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.4.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:L/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/modelcontextprotocol/go-sdk/security/advisories/GHSA-q382-vc8q-7jhj","https://github.com/modelcontextprotocol/go-sdk/commit/724dd47aa3431b9d4cf9ac2eebbf7b38a629afca","https://github.com/segmentio/encoding/commit/7d5a25dbc5da13aed3cb047a127e4d0e96f536fb","https://github.com/modelcontextprotocol/go-sdk"],"sourceUrl":"https://github.com/advisories/GHSA-q382-vc8q-7jhj","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-q382-vc8q-7jhj","identifiers":["GHSA-q382-vc8q-7jhj","GO-2026-4770"]},"retained":false,"historicalAffected":[]},{"revision":"da2122c2e4ad48cd992cad709e7494b6","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-4770","aliases":["GHSA-q382-vc8q-7jhj"],"title":"Improper handling of null Unicode character when parsing JSON in github.com/modelcontextprotocol/go-sdk","description":"Improper handling of null Unicode character when parsing JSON in github.com/modelcontextprotocol/go-sdk","state":0,"publishedAt":"2026-03-23T18:14:51+00:00","modifiedAt":"2026-03-25T15:29:13.034372+00:00","affected":[{"ecosystem":"Go","name":"github.com/modelcontextprotocol/go-sdk","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.4.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/modelcontextprotocol/go-sdk/security/advisories/GHSA-q382-vc8q-7jhj","https://github.com/modelcontextprotocol/go-sdk/commit/724dd47aa3431b9d4cf9ac2eebbf7b38a629afca","https://github.com/segmentio/encoding/commit/7d5a25dbc5da13aed3cb047a127e4d0e96f536fb"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-4770","license":"OSV · upstream source license applies","key":"osv:GO-2026-4770","identifiers":["GO-2026-4770","GHSA-q382-vc8q-7jhj"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-17T06:29:38.2958139+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-17T06:29:38.2958139+00:00","lastSuccessAt":"2026-11-17T06:29:41.2543024+00:00","error":null,"lastVerifiedAt":"2026-11-17T06:29:41.2543032+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-30c3da459c38698a15d626d89e52e03e55e19fc45dae0e6d8d723cbf35472cf4-13858d504ceb3c16ebfe1bf53c65f1863780df29bc077f62bf4c0647a25616dd","complete":true,"records":426273,"lastAttemptAt":"2026-11-17T07:26:09.9281018+00:00","lastSuccessAt":"2026-11-17T07:26:09.9090917+00:00","error":null,"lastVerifiedAt":"2026-11-17T07:26:09.9281018+00:00","snapshotPublishedAt":"2026-11-17T06:26:22+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-0c65521bf68f4e32a6056cdacec309eb","complete":false,"records":13836,"lastAttemptAt":"2026-11-17T06:40:28.6106863+00:00","lastSuccessAt":"2026-11-17T06:40:28.606+00:00","error":"71 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-17T06:40:28.606+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13442,"expectedIdentifiers":13890,"failedIdentifiers":71},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-17T06:29:38.2958139+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-17T06:29:38.2958139+00:00","lastSuccessAt":"2026-11-17T06:29:41.2602594+00:00","error":null,"lastVerifiedAt":"2026-11-17T06:29:41.2602635+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-4d28621da3eb492ea48a120da4fcdb58","complete":true,"records":13849,"lastAttemptAt":"2026-11-17T06:29:44.6841344+00:00","lastSuccessAt":"2026-11-17T06:29:44.673+00:00","error":null,"lastVerifiedAt":"2026-11-17T06:29:44.673+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13890,"expectedIdentifiers":13890,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-db3ae05f3e19425298b475ceb81e33f22d67df93dfef77c2b0200c8b05fd85ae","complete":true,"records":9958,"lastAttemptAt":"2026-11-17T06:29:38.1094421+00:00","lastSuccessAt":"2026-11-16T23:31:31.5526753+00:00","error":null,"lastVerifiedAt":"2026-11-17T06:29:38.1094421+00:00","snapshotPublishedAt":"2026-11-16T22:48:36+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-17T07:26:10.1857247+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-17T07:26:10.1857247+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-17T06:29:38.2380461+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-17T06:29:38.2380461+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-d2be9f4bf5c8eefd1f37fa3a7150771a6fadcf6ec7b00f77182b082af7ca8a09","complete":true,"records":232592,"lastAttemptAt":"2026-11-17T07:26:19.0534776+00:00","lastSuccessAt":"2026-11-17T06:29:36.4291644+00:00","error":null,"lastVerifiedAt":"2026-11-17T06:29:37.3616984+00:00","snapshotPublishedAt":"2026-11-17T06:03:42+00:00","importing":true,"stagedRecords":232592,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}