CVE-2026-111771
Model Context Protocol TypeScript SDK: Server bearer authentication accepted tokens issued for another service
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 and workarounds
Fix
@modelcontextprotocol/sdk (npm): GitHub reports patched versions 1.32.0. Check the advisory for the affected release branch.
Source: GitHub GHSA-rvq5-wwqv-78pqFix
@modelcontextprotocol/server (npm): GitHub reports patched versions 2.3.0. Check the advisory for the affected release branch.
Source: GitHub GHSA-rvq5-wwqv-78pqFix
@modelcontextprotocol/express (npm): GitHub reports patched versions 2.0.2. Check the advisory for the affected release branch.
Source: GitHub GHSA-rvq5-wwqv-78pqFix
@modelcontextprotocol/server-legacy (npm): GitHub reports patched versions 2.3.1. Check the advisory for the affected release branch.
Source: GitHub GHSA-rvq5-wwqv-78pqFix
@modelcontextprotocol/sdk (npm): OSV reports a fixed version 1.32.0. Check the advisory for supported release branches.
Source: OSV GHSA-rvq5-wwqv-78pqFix
@modelcontextprotocol/server (npm): OSV reports a fixed version 2.3.0. Check the advisory for supported release branches.
Source: OSV GHSA-rvq5-wwqv-78pqFix
@modelcontextprotocol/express (npm): OSV reports a fixed version 2.0.2. Check the advisory for supported release branches.
Source: OSV GHSA-rvq5-wwqv-78pqFix
@modelcontextprotocol/server-legacy (npm): OSV reports a fixed version 2.3.1. Check the advisory for supported release branches.
Source: OSV GHSA-rvq5-wwqv-78pqAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| typescript-sdk modelcontextprotocol |
>= 1.6.0, < 1.32.0 (affected) | CNA: GitHub_M |
| sdk @modelcontextprotocol |
>= 1.6.0, < 1.32.0 (affected) | CNA: GitHub_M |
| server @modelcontextprotocol |
>= 2.0.0, < 2.3.0 (affected) | CNA: GitHub_M |
| express @modelcontextprotocol |
>= 2.0.0, < 2.0.2 (affected) | CNA: GitHub_M |
| server-legacy @modelcontextprotocol |
>= 2.0.0, < 2.3.1 (affected) | CNA: GitHub_M |
@modelcontextprotocol/sdk@modelcontextprotocol/sdk
npm |
>= 1.6.0, < 1.32.0 (affected, GitHub advisory range) | GitHub GHSA-rvq5-wwqv-78pq |
@modelcontextprotocol/server@modelcontextprotocol/server
npm |
>= 2.0.0, < 2.3.0 (affected, GitHub advisory range) | GitHub GHSA-rvq5-wwqv-78pq |
@modelcontextprotocol/express@modelcontextprotocol/express
npm |
>= 2.0.0, < 2.0.2 (affected, GitHub advisory range) | GitHub GHSA-rvq5-wwqv-78pq |
@modelcontextprotocol/server-legacy@modelcontextprotocol/server-legacy
npm |
>= 2.0.0, < 2.3.1 (affected, GitHub advisory range) | GitHub GHSA-rvq5-wwqv-78pq |
@modelcontextprotocol/sdk@modelcontextprotocol/sdk
npm |
≥ 1.6.0; < 1.32.0 (affected, semver); OSV events: introduced 1.6.0; fixed 1.32.0Source events (semver)
Other versions: unaffected |
OSV GHSA-rvq5-wwqv-78pq |
@modelcontextprotocol/server@modelcontextprotocol/server
npm |
≥ 2.0.0; < 2.3.0 (affected, semver); OSV events: introduced 2.0.0; fixed 2.3.0Source events (semver)
Other versions: unaffected |
OSV GHSA-rvq5-wwqv-78pq |
@modelcontextprotocol/express@modelcontextprotocol/express
npm |
≥ 2.0.0; < 2.0.2 (affected, semver); OSV events: introduced 2.0.0; fixed 2.0.2Source events (semver)
Other versions: unaffected |
OSV GHSA-rvq5-wwqv-78pq |
@modelcontextprotocol/server-legacy@modelcontextprotocol/server-legacy
npm |
≥ 2.0.0; < 2.3.1 (affected, semver); OSV events: introduced 2.0.0; fixed 2.3.1Source events (semver)
Other versions: unaffected |
OSV GHSA-rvq5-wwqv-78pq |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 6.8 medium |
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N | CNA: GitHub_M |
| 3.1 / 6.8 medium |
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-rvq5-wwqv-78pqCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/modelcontextprotocol/typescript-sdk/pull/2929CNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/pull/2930CNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/pull/2952CNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/commit/40f8f4e229d963cd7fd2890bda2aeebe7005299aCNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/commit/5a0724d14cf34a27a3b070224d2996cdd611df9fCNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/commit/5a1867390b91b8836f49af76c45427279f513325CNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/1.32.0CNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/[email protected]CNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/[email protected]CNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/[email protected]CNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/commit/40f8f4e229d963cd7fd2890bda2aeebe7005299a[email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/commit/5a0724d14cf34a27a3b070224d2996cdd611df9f[email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/commit/5a1867390b91b8836f49af76c45427279f513325[email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/pull/2929[email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/pull/2930[email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/pull/2952[email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/1.32.0[email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/[email protected][email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/[email protected][email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/[email protected][email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-rvq5-wwqv-78pq[email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-rvq5-wwqv-78pqGitHub Security Advisories · advisory
- https://github.com/advisories/GHSA-rvq5-wwqv-78pqOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-rvq5-wwqv-78pqOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.