{"id":"GHSA-f897-62hf-6gxq","revision":null,"records":[{"revision":"4f682d7511d847569cda2ade5d9a5673","observedAt":"2026-10-27T19:46:12.986+00:00","statement":{"source":"osv","id":"GHSA-f897-62hf-6gxq","aliases":[],"title":"MCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch length","description":"### Summary\nIn affected versions, MCP servers reachable over HTTP put no limit on the size of a POST body or on the number of messages in a JSON-RPC batch. Large requests could exhaust the server's memory, and one long batch could block it from serving anyone else. No credentials were needed, unless your application authenticates requests before they reach the SDK.\n\n### Am I affected?\nYes, if clients you do not fully trust can reach your server over Streamable HTTP. A body parser such as `express.json()` does not protect you, because it does not limit batch length. Servers that only use stdio are not affected.\n\nAffected versions:\n\n- `@modelcontextprotocol/sdk` 1.10.0 through 1.30.0\n- `@modelcontextprotocol/server` 2.0.0\n- `@modelcontextprotocol/node` 2.0.0\n- `@modelcontextprotocol/hono` 2.0.0\n\n### Fix\nUpgrade to:\n\n- 1.x: `@modelcontextprotocol/sdk` 1.30.1 or later\n- 2.x: `@modelcontextprotocol/server` 2.1.0, `@modelcontextprotocol/node` 2.1.0 and `@modelcontextprotocol/hono` 2.0.1 or later. Upgrade every one you have installed.\n\nBodies over 4 MiB now get `413`, and batches over 100 messages get `400`. If your clients send larger bodies, raise the new `maxRequestBodySize` option.\n\nIf you cannot upgrade yet, cap request body size in a reverse proxy.","state":0,"publishedAt":"2026-10-27T19:02:00+00:00","modifiedAt":"2026-10-27T19:15:22.3886983+00:00","affected":[{"ecosystem":"npm","name":"@modelcontextprotocol/sdk","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.10.0"},{"kind":"fixed","version":"1.30.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@modelcontextprotocol/server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0"},{"kind":"fixed","version":"2.1.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@modelcontextprotocol/node","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0"},{"kind":"fixed","version":"2.1.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@modelcontextprotocol/hono","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0"},{"kind":"fixed","version":"2.0.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-f897-62hf-6gxq","https://github.com/modelcontextprotocol/typescript-sdk/pull/2698","https://github.com/modelcontextprotocol/typescript-sdk/pull/2717","https://github.com/modelcontextprotocol/typescript-sdk/commit/7b781ed4e25355a25d15974f3c76de81299694ed","https://github.com/modelcontextprotocol/typescript-sdk/commit/a9f6eb709b85459d01e8f2a9e881fef2621756c1","https://github.com/modelcontextprotocol/typescript-sdk","https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/1.30.1","https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/hono@2.0.1","https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/node@2.1.0","https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/server@2.1.0"],"sourceUrl":"https://github.com/advisories/GHSA-f897-62hf-6gxq","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-f897-62hf-6gxq","identifiers":["GHSA-f897-62hf-6gxq"]},"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-10-31T20:04:57.5651168+00:00","complete":true,"records":1766,"lastAttemptAt":"2026-10-31T20:04:57.5651168+00:00","lastSuccessAt":"2026-10-31T20:04:57.7272342+00:00","error":null,"lastVerifiedAt":"2026-10-31T20:04:57.7272348+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-9266d7b009bf9c4a0ccdcb5cbdea7f905cb3c4d92fd3b41581ece16b2cfdc4e7-23bfd986e9f4762f21aecac69d5fa9ae4654bc3173074abeea03d97bee4337c8","complete":true,"records":417593,"lastAttemptAt":"2026-10-31T20:04:56.4991174+00:00","lastSuccessAt":"2026-10-31T20:04:55.7915905+00:00","error":null,"lastVerifiedAt":"2026-10-31T20:04:56.4991174+00:00","snapshotPublishedAt":"2026-10-31T19:25:28+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-00b549a69b6049088aac1154dd5745fc","complete":false,"records":13567,"lastAttemptAt":"2026-10-31T20:17:14.3321965+00:00","lastSuccessAt":"2026-10-31T20:17:14.325+00:00","error":"11 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-10-31T20:17:14.325+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13601,"expectedIdentifiers":13637,"failedIdentifiers":11},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-31T20:04:57.5651168+00:00","complete":true,"records":1094,"lastAttemptAt":"2026-10-31T20:04:57.5651168+00:00","lastSuccessAt":"2026-10-31T20:04:57.7280158+00:00","error":null,"lastVerifiedAt":"2026-10-31T20:04:57.728016+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-a558c2e000674838b5341fe81ce273de","complete":false,"records":13580,"lastAttemptAt":"2026-10-31T20:05:02.8072159+00:00","lastSuccessAt":"2026-10-31T19:05:21.516+00:00","error":"1 identifier lookups failed; latest failures include HTTP 503. Other identifiers were checked independently.","lastVerifiedAt":"2026-10-31T19:05:21.516+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13636,"expectedIdentifiers":13637,"failedIdentifiers":1},{"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-21dcd6662970dfea02e4ea60ee637115e8d92664947484d2b9276b3f6568a84f","complete":true,"records":9815,"lastAttemptAt":"2026-10-31T20:04:57.1415361+00:00","lastSuccessAt":"2026-10-30T23:47:34.1817587+00:00","error":null,"lastVerifiedAt":"2026-10-31T20:04:57.1415361+00:00","snapshotPublishedAt":"2026-10-30T23:33:17+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-2de9ccc5290f060c7aa63f89c25dd76f655a64ba1aba7c05c97fa3bee4f09899","complete":true,"records":1967,"lastAttemptAt":"2026-10-31T20:04:56.5733949+00:00","lastSuccessAt":"2026-10-28T20:55:34.2982937+00:00","error":null,"lastVerifiedAt":"2026-10-31T20:04:56.5733949+00:00","snapshotPublishedAt":"2026-10-28T20:03:08+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-f95f76cd406ae5bae3de632ad37fd2d5160b44f5e6b51748ac6f8f0c0c88e72b","complete":true,"records":3028,"lastAttemptAt":"2026-10-31T20:04:57.5289094+00:00","lastSuccessAt":"2026-10-30T23:47:38.4914494+00:00","error":null,"lastVerifiedAt":"2026-10-31T20:04:57.5289094+00:00","snapshotPublishedAt":"2026-10-30T23:18:12+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-712291bb5a0ee4f1ca7325e317f98ff05e9ab8d14f863abf00a323d9e6d8331e","complete":true,"records":230994,"lastAttemptAt":"2026-10-31T20:04:57.037982+00:00","lastSuccessAt":"2026-10-31T17:06:47.8999408+00:00","error":null,"lastVerifiedAt":"2026-10-31T20:04:57.037982+00:00","snapshotPublishedAt":"2026-10-31T16:33:38+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}