[ CVE-2026-111771 · Published 5 Nov 2026 ]
MCP TypeScript SDK: Server bearer authentication accepted tokens issued for another service
[ Description ]Official description
The Model Context Protocol TypeScript SDK provides TypeScript client and server implementations of the Model Context Protocol. From 1.6.0 until 1.32.0 in @modelcontextprotocol/sdk, from 2.0.0 until 2.3.0 in @modelcontextprotocol/server, from 2.0.0 until 2.0.2 in @modelcontextprotocol/express, and from 2.0.0 until 2.3.1 in @modelcontextprotocol/server-legacy, server-side bearer authentication could accept a valid access token issued for a different service because the SDK did not enforce the token audience. The affected surface is server-side HTTP bearer authentication. The trigger is a valid token whose audience names another service. The authorization server must issue tokens for multiple services, and the application's verifyAccessToken() must not independently validate aud. Applications already validating aud inside verifyAccessToken() are not affected. An attacker with a token for another service could authenticate to the MCP server and obtain the confidentiality and integrity capabilities granted to an authenticated caller. Upgrading alone leaves the new audience validation disabled. Operators must enable audience validation and provide the token audience together. Enabling only the expected audience check causes every request to receive HTTP 401. This issue is fixed in @modelcontextprotocol/sdk 1.32.0, @modelcontextprotocol/server 2.3.0, @modelcontextprotocol/express 2.0.2, and @modelcontextprotocol/server-legacy 2.3.1.
[ Fixes ]How to fix it
- @modelcontextprotocol/sdk 1.32.0Fixed version · GitHub Advisories · npm package @modelcontextprotocol/sdk: upgrade to 1.32.0 or later (affected >= 1.6.0, < 1.32.0)
- @modelcontextprotocol/server 2.3.0Fixed version · GitHub Advisories · npm package @modelcontextprotocol/server: upgrade to 2.3.0 or later (affected >= 2.0.0, < 2.3.0)
- @modelcontextprotocol/express 2.0.2Fixed version · GitHub Advisories · npm package @modelcontextprotocol/express: upgrade to 2.0.2 or later (affected >= 2.0.0, < 2.0.2)
- @modelcontextprotocol/server-legacy 2.3.1Fixed version · GitHub Advisories · npm package @modelcontextprotocol/server-legacy: upgrade to 2.3.1 or later (affected >= 2.0.0, < 2.3.1)
Fixed versions
- modelcontextprotocol typescript-sdk: upgrade to 1.32.0 or laterEarlier versions are listed as affected
- @modelcontextprotocol sdk: upgrade to 1.32.0 or laterEarlier versions are listed as affected
- @modelcontextprotocol server: upgrade to 2.3.0 or laterEarlier versions are listed as affected
- @modelcontextprotocol express: upgrade to 2.0.2 or laterEarlier versions are listed as affected
- @modelcontextprotocol server-legacy: upgrade to 2.3.1 or laterEarlier versions are listed as affected
From the affected-version ranges in the CVE record. Check the vendor's advisory for the exact release for your platform or branch.
Vendor advisories and patches
- Vendor advisorygithub.com
- Patchgithub.com
- Patchgithub.com
- Patchgithub.com
- Release notesgithub.com
- Release notesgithub.com
- Release notesgithub.com
- Release notesgithub.com
[ Packages ]Affected open-source packages
- @modelcontextprotocol/sdk npmAffected >= 1.6.0, < 1.32.0 · fixed in 1.32.0 · GHSA-rvq5-wwqv-78pq
- @modelcontextprotocol/server npmAffected >= 2.0.0, < 2.3.0 · fixed in 2.3.0 · GHSA-rvq5-wwqv-78pq
- @modelcontextprotocol/express npmAffected >= 2.0.0, < 2.0.2 · fixed in 2.0.2 · GHSA-rvq5-wwqv-78pq
- @modelcontextprotocol/server-legacy npmAffected >= 2.0.0, < 2.3.1 · fixed in 2.3.1 · GHSA-rvq5-wwqv-78pq
[ References ]References
- github.com/modelcontextprotocol/typescript-sdk/commit/40f8f4e229d963cd7fd2890bda2aeebe7…
- github.com/modelcontextprotocol/typescript-sdk/commit/5a0724d14cf34a27a3b070224d2996cdd…
- github.com/modelcontextprotocol/typescript-sdk/commit/5a1867390b91b8836f49af76c45427279…
- github.com/modelcontextprotocol/typescript-sdk/pull/2929
- github.com/modelcontextprotocol/typescript-sdk/pull/2930
- github.com/modelcontextprotocol/typescript-sdk/pull/2952
- github.com/modelcontextprotocol/typescript-sdk/releases/tag/1.32.0
- github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/expre…
- github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/serve…
- github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/serve…
- github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-rvq5-wwqv-78pq