Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

High · 8.6 Node.js & npm GHSA-46jr-4wx8-v453 CVE-2026-111768 GHSA-jm63-cq47-j5jp CVE-2026-111770

Five Vulnerabilities Patched in the MCP TypeScript SDK and Related Packages

Five vulnerabilities in the MCP TypeScript SDK and related @modelcontextprotocol packages allowed memory exhaustion, cross-client message leakage, token audience bypass, cross-origin credential leakage, and session-less access to experimental tasks. All are fixed in the respective updates, but several fixes require configuration changes to take effect.

By PatchBriefing · ·

Produced automatically from official sources with the help of AI. How we work →

AI summary

On 20 October 2026, five separate vulnerabilities were disclosed affecting the MCP TypeScript SDK (`@modelcontextprotocol/sdk`) and several related packages, including `@modelcontextprotocol/server`, `@modelcontextprotocol/client`, `@modelcontextprotocol/express`, and `@modelcontextprotocol/server-legacy`. These packages are used to build servers and clients implementing the Model Context Protocol (MCP). The issues range from memory exhaustion through oversized validation, to cross-client message mixing, token audience bypass, cross-origin credential leakage, and improperly isolated experimental tasks. Fixed versions are available for all five issues, but in several cases upgrading alone does not fully close the gap — additional configuration or code changes are required.

What happened

Five vulnerabilities were disclosed in the MCP TypeScript SDK ecosystem on 20 October 2026: 1. CVE-2026-111768 (GHSA-46jr-4wx8-v453): servers placed no limit on how many array elements and object keys they validated per request. A single HTTP request within the default 4 MiB size limit could exhaust server memory and crash the process with an out-of-memory error. 2. CVE-2026-111770 (GHSA-jm63-cq47-j5jp): when multiple HTTP clients shared one stateless transport or one server instance, responses and notifications intended for one client could be delivered to another. This happened because messages were matched to a connection using the JSON-RPC id alone, and SDK clients commonly number requests starting from 0, causing id collisions. 3. CVE-2026-111771 (GHSA-rvq5-wwqv-78pq): server-side bearer authentication could accept a valid access token that was issued for a different service, because the SDK did not enforce the token audience (aud claim). 4. CVE-2026-111769 (GHSA-6prh-2h8m-c8cw): HTTP client transports and OAuth client functions in the SDK followed redirects to any origin. A redirecting server could receive custom request headers (such as API keys) and the session identifier header, and on 307/308 redirects could also receive the request body, including OAuth refresh tokens and client secrets. 5. CVE-2026-111767 (GHSA-22jm-h49p-29qw): the experimental tasks feature (taskStore) did not check which session created a task. Clients sharing one InMemoryTaskStore could list, read, and cancel each other's tasks.

Technical cause

The five issues have distinct root causes. The memory exhaustion issue (CVE-2026-111768, CWE-770) stems from unbounded validation of array elements and object keys within a single request. The cross-client message mixing issue (CVE-2026-111770, CWE-362) is a race condition caused by matching messages to connections by JSON-RPC id alone, without binding either the transport or server instance to an individual client or session. The token audience issue (CVE-2026-111771, CWE-863) is an authorization flaw: the SDK did not independently validate the aud claim on bearer tokens, so a token issued for one service could be accepted by another. The redirect issue (CVE-2026-111769, CWE-200) results from HTTP client transports and OAuth request logic following redirects across origins without restriction, exposing custom headers, session identifiers, and in some cases request bodies to the redirect target. The task isolation issue (CVE-2026-111767, CWE-639) is an authorization bypass through a user-controlled key: tasks in the in-memory task store were not tied to the session that created them.

Who is affected

Organizations running MCP servers or clients built on the affected packages are impacted differently depending on configuration. The memory exhaustion issue (CVE-2026-111768) affects HTTP-reachable `McpServer` instances whose tools accept array or record input from clients that are not fully trusted; stdio-only servers are not affected. The cross-client message mixing issue (CVE-2026-111770) affects HTTP endpoints reachable by more than one client where the transport or server instance is created once at startup rather than per request or per session; this pattern was previously shown in README examples for the Hono, Express, Fastify, and Node integrations. The token audience issue (CVE-2026-111771) affects deployments where the authorization server issues tokens for multiple services and the application's verifyAccessToken() function does not independently validate the aud claim. The redirect issue (CVE-2026-111769) affects applications using StreamableHTTPClientTransport, SSEClientTransport, or the SDK's OAuth client functions; stdio clients are not affected. The task isolation issue (CVE-2026-111767) affects deployments using the experimental tasks feature where multiple clients share one InMemoryTaskStore.

Affected versions

CVE-2026-111768: `@modelcontextprotocol/sdk` from version 1.3.0 up to (not including) 1.32.0; `@modelcontextprotocol/server` from 2.0.0 up to (not including) 2.3.0. CVE-2026-111770: `@modelcontextprotocol/server` from 2.0.0 up to (not including) 2.3.0. `@modelcontextprotocol/sdk` 1.26.0 and later is not affected by this issue. CVE-2026-111771: `@modelcontextprotocol/sdk` from 1.6.0 up to (not including) 1.32.0; `@modelcontextprotocol/server` from 2.0.0 up to (not including) 2.3.0; `@modelcontextprotocol/express` from 2.0.0 up to (not including) 2.0.2; `@modelcontextprotocol/server-legacy` from 2.0.0 up to (not including) 2.3.1. CVE-2026-111769: `@modelcontextprotocol/sdk` all versions through 1.31.0 (introduced version listed as 0, i.e. no lower bound); `@modelcontextprotocol/client` from 2.0.0 up to (not including) 2.3.0. CVE-2026-111767: `@modelcontextprotocol/sdk` from 1.24.0 up to (not including) 1.32.0.

Fixes and mitigation

Fixed versions are available for all five issues: - CVE-2026-111768: upgrade to `@modelcontextprotocol/sdk` 1.32.0 or `@modelcontextprotocol/server` 2.3.0. Upgrading alone does not change behavior: the patched versions add a `maxToolInputElements` option on `McpServer` that is off by default and must be set explicitly. Operators should also lower the request body size limit to what their tools actually need, using `maxRequestBodySize` on the transport or handler, or the equivalent setting in their own body parser. If upgrading is not possible, `maxRequestBodySize` is available from `@modelcontextprotocol/sdk` 1.30.1 or `@modelcontextprotocol/server` 2.1.0; below those versions, a reverse proxy can enforce a smaller limit. - CVE-2026-111770: upgrade to `@modelcontextprotocol/server` 2.3.0 or later. Code changes are also required: the SDK now refuses to let a transport or server instance be shared, so after upgrading, affected applications will fail requests until they are changed to create a new server/transport per request, per session, or via a factory function (for `createMcpHandler()`). - CVE-2026-111771: upgrade to `@modelcontextprotocol/sdk` 1.32.0, `@modelcontextprotocol/server` 2.3.0, `@modelcontextprotocol/express` 2.0.2, or `@modelcontextprotocol/server-legacy` 2.3.1 depending on which package is used. Upgrading alone leaves audience validation disabled; operators must enable it and supply the expected token audience. Enabling the audience check without supplying the correct value will cause all requests to receive HTTP 401. - CVE-2026-111769: upgrade to `@modelcontextprotocol/sdk` 1.32.0 or `@modelcontextprotocol/client` 2.3.0 or later. After upgrading, redirects are followed only within the same origin, and not at all in browsers. Setting `redirectPolicy: 'follow'` restores the old, exposed behavior and should be avoided unless the redirect target is fully trusted. If a redirect may have reached an untrusted host, affected organizations should rotate API keys and client secrets and revoke tokens used by the application. If upgrading is not immediately possible, a custom fetch implementation that refuses redirects can mitigate the issue. - CVE-2026-111767: upgrade to `@modelcontextprotocol/sdk` 1.32.0 or later, which ties experimental tasks to the session that created them.

Recommended action

Identify which of the affected packages (`@modelcontextprotocol/sdk`, `@modelcontextprotocol/server`, `@modelcontextprotocol/client`, `@modelcontextprotocol/express`, `@modelcontextprotocol/server-legacy`) are in use and upgrade each to the version that fixes the relevant issue(s). Because several of these fixes are opt-in or require code changes, upgrading the package version alone is not sufficient: review whether `maxToolInputElements` and `maxRequestBodySize` are configured, whether server/transport instances are created per request or session rather than shared, whether audience validation is enabled on bearer token checks, and whether a redirect policy override is in place. If a cross-origin redirect to an untrusted host may have occurred before patching, rotate affected API keys, client secrets, and tokens.

PatchBriefing score

8.6 / 10 · High

Official CVSS: 8.6

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

EPSS 0.0044 (30 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

@modelcontextprotocol/sdk >= 1.3.0, < 1.32.0
vulnerable
@modelcontextprotocol/sdk ≥ 1.3.0 < 1.32.0
vulnerable
≥ 1.32.0
patched
@modelcontextprotocol/server >= 2.0.0, < 2.3.0
vulnerable
@modelcontextprotocol/server ≥ 2.0.0 < 2.3.0
vulnerable
≥ 2.3.0
patched
@modelcontextprotocol/server >= 2.0.0, < 2.3.0
vulnerable
@modelcontextprotocol/server ≥ 2.0.0 < 2.3.0
vulnerable
≥ 2.3.0
patched
@modelcontextprotocol/sdk >= 1.6.0, < 1.32.0
vulnerable
@modelcontextprotocol/sdk ≥ 1.6.0 < 1.32.0
vulnerable
≥ 1.32.0
patched
@modelcontextprotocol/server >= 2.0.0, < 2.3.0
vulnerable
@modelcontextprotocol/server ≥ 2.0.0 < 2.3.0
vulnerable
≥ 2.3.0
patched
@modelcontextprotocol/express >= 2.0.0, < 2.0.2
vulnerable
@modelcontextprotocol/express ≥ 2.0.0 < 2.0.2
vulnerable
≥ 2.0.2
patched
@modelcontextprotocol/server-legacy >= 2.0.0, < 2.3.1
vulnerable
@modelcontextprotocol/server-legacy ≥ 2.0.0 < 2.3.1
vulnerable
≥ 2.3.1
patched
@modelcontextprotocol/sdk ≥ 0 < 1.32.0
vulnerable
@modelcontextprotocol/sdk < 1.32.0
vulnerable
≥ 1.32.0
patched
@modelcontextprotocol/client ≥ 2.0.0 < 2.3.0
vulnerable
@modelcontextprotocol/client >= 2.0.0, < 2.3.0
vulnerable
≥ 2.3.0
patched
@modelcontextprotocol/sdk >= 1.24.0, < 1.32.0
vulnerable
@modelcontextprotocol/sdk ≥ 1.24.0 < 1.32.0
vulnerable
≥ 1.32.0
patched

Reported fixes

Fixed versions are available for all five issues: - CVE-2026-111768: upgrade to `@modelcontextprotocol/sdk` 1.32.0 or `@modelcontextprotocol/server` 2.3.0. Upgrading alone does not change behavior: the patched versions add a `maxToolInputElements` option on `McpServer` that is off by default and must be set explicitly. Operators should also lower the request body size limit to what their tools actually need, using `maxRequestBodySize` on the transport or handler, or the equivalent setting in their own body parser. If upgrading is not possible, `maxRequestBodySize` is available from `@modelcontextprotocol/sdk` 1.30.1 or `@modelcontextprotocol/server` 2.1.0; below those versions, a reverse proxy can enforce a smaller limit. - CVE-2026-111770: upgrade to `@modelcontextprotocol/server` 2.3.0 or later. Code changes are also required: the SDK now refuses to let a transport or server instance be shared, so after upgrading, affected applications will fail requests until they are changed to create a new server/transport per request, per session, or via a factory function (for `createMcpHandler()`). - CVE-2026-111771: upgrade to `@modelcontextprotocol/sdk` 1.32.0, `@modelcontextprotocol/server` 2.3.0, `@modelcontextprotocol/express` 2.0.2, or `@modelcontextprotocol/server-legacy` 2.3.1 depending on which package is used. Upgrading alone leaves audience validation disabled; operators must enable it and supply the expected token audience. Enabling the audience check without supplying the correct value will cause all requests to receive HTTP 401. - CVE-2026-111769: upgrade to `@modelcontextprotocol/sdk` 1.32.0 or `@modelcontextprotocol/client` 2.3.0 or later. After upgrading, redirects are followed only within the same origin, and not at all in browsers. Setting `redirectPolicy: 'follow'` restores the old, exposed behavior and should be avoided unless the redirect target is fully trusted. If a redirect may have reached an untrusted host, affected organizations should rotate API keys and client secrets and revoke tokens used by the application. If upgrading is not immediately possible, a custom fetch implementation that refuses redirects can mitigate the issue. - CVE-2026-111767: upgrade to `@modelcontextprotocol/sdk` 1.32.0 or later, which ties experimental tasks to the session that created them.

How this was built

20 source records were collected, matched and used to prepare the report above.

  • GitHub Advisory Database database
  • OSV.dev database
  • GitHub Advisory Database database
  • GitHub Advisory Database database
  • GitHub Advisory Database database
  • GitHub Advisory Database database
Unified report
Five Vulnerabilities Patched in the MCP TypeScript SDK and Related Packages
1 article · 20 sources cited
Revision history
  1. Generated
  2. Published
  3. Generated
  4. Merged
  5. Published
  6. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email