# CVE-2026-111771: Model Context Protocol TypeScript SDK: Server bearer authentication accepted tokens issued for another service

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.8
- **CVSS:** 6.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.60% (percentile 43, 2026-11-28)
- **CWE:** CWE-863
- **Aliases:** GHSA-rvq5-wwqv-78pq
- **Published:** 2026-10-20T19:43:36.000Z
- **Modified:** 2026-11-12T22:18:51.470Z

## Who should check

- Projects that depend on npm package @modelcontextprotocol/sdk (\>= 1.6.0, \< 1.32.0)
- Projects that depend on npm package @modelcontextprotocol/server (\>= 2.0.0, \< 2.3.0)
- Projects that depend on npm package @modelcontextprotocol/express (\>= 2.0.0, \< 2.0.2)
- Projects that depend on npm package @modelcontextprotocol/server-legacy (\>= 2.0.0, \< 2.3.1)
- Anyone running modelcontextprotocol typescript-sdk \>= 1.6.0, \< 1.32.0
- Anyone running @modelcontextprotocol sdk \>= 1.6.0, \< 1.32.0
- Anyone running @modelcontextprotocol server \>= 2.0.0, \< 2.3.0
- Anyone running @modelcontextprotocol express \>= 2.0.0, \< 2.0.2

## 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.

## Affected and fixed versions

- npm `@modelcontextprotocol/sdk`: affected \>= 1.6.0, \< 1.32.0; fixed 1.32.0 (osv)
- npm `@modelcontextprotocol/server`: affected \>= 2.0.0, \< 2.3.0; fixed 2.3.0 (osv)
- npm `@modelcontextprotocol/express`: affected \>= 2.0.0, \< 2.0.2; fixed 2.0.2 (osv)
- npm `@modelcontextprotocol/server-legacy`: affected \>= 2.0.0, \< 2.3.1; fixed 2.3.1 (osv)
- modelcontextprotocol typescript-sdk: \>= 1.6.0, \< 1.32.0 (cvelist)
- @modelcontextprotocol sdk: \>= 1.6.0, \< 1.32.0 (cvelist)
- @modelcontextprotocol server: \>= 2.0.0, \< 2.3.0 (cvelist)
- @modelcontextprotocol express: \>= 2.0.0, \< 2.0.2 (cvelist)
- @modelcontextprotocol server-legacy: \>= 2.0.0, \< 2.3.1 (cvelist)

## Mitigation

- Upgrade @modelcontextprotocol/sdk to 1.32.0 or later.
- Upgrade @modelcontextprotocol/server to 2.3.0 or later.
- Upgrade @modelcontextprotocol/express to 2.0.2 or later.
- Upgrade @modelcontextprotocol/server-legacy to 2.3.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-111771. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-111771.md
Affected: @modelcontextprotocol/sdk >= 1.6.0, < 1.32.0; @modelcontextprotocol/server >= 2.0.0, < 2.3.0; @modelcontextprotocol/express >= 2.0.0, < 2.0.2; @modelcontextprotocol/server-legacy >= 2.0.0, < 2.3.1
Fixed in: 1.32.0, 2.3.0, 2.0.2, 2.3.1

Steps:
1. Search this machine and project for @modelcontextprotocol/sdk (npm), @modelcontextprotocol/server (npm), @modelcontextprotocol/express (npm), @modelcontextprotocol/server-legacy (npm), modelcontextprotocol typescript-sdk, @modelcontextprotocol sdk: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-111771 being exploited?

There is no confirmed exploitation: CVE-2026-111771 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.60% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-111771?

Medium: CVSS 6.8 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-111771?

@modelcontextprotocol/sdk \>= 1.6.0, \< 1.32.0; @modelcontextprotocol/server \>= 2.0.0, \< 2.3.0; @modelcontextprotocol/express \>= 2.0.0, \< 2.0.2; @modelcontextprotocol/server-legacy \>= 2.0.0, \< 2.3.1.

### Is there a fix for CVE-2026-111771?

Yes. Fixed in 1.32.0, 2.3.0, 2.0.2, 2.3.1. Upgrade @modelcontextprotocol/sdk to 1.32.0 or later. Upgrade @modelcontextprotocol/server to 2.3.0 or later. Upgrade @modelcontextprotocol/express to 2.0.2 or later. Upgrade @modelcontextprotocol/server-legacy to 2.3.1 or later.

### How do I check if I'm affected by CVE-2026-111771?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-rvq5-wwqv-78pq>
- patch: <https://github.com/modelcontextprotocol/typescript-sdk/pull/2929>
- patch: <https://github.com/modelcontextprotocol/typescript-sdk/pull/2930>
- patch: <https://github.com/modelcontextprotocol/typescript-sdk/pull/2952>
- patch: <https://github.com/modelcontextprotocol/typescript-sdk/commit/40f8f4e229d963cd7fd2890bda2aeebe7005299a>
- patch: <https://github.com/modelcontextprotocol/typescript-sdk/commit/5a0724d14cf34a27a3b070224d2996cdd611df9f>
- patch: <https://github.com/modelcontextprotocol/typescript-sdk/commit/5a1867390b91b8836f49af76c45427279f513325>
- other: <https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/1.32.0>
- other: <https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/express@2.0.2>
- other: <https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/server-legacy@2.3.1>
- other: <https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/server@2.3.0>
- other: <https://github.com/modelcontextprotocol/typescript-sdk>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-111771>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-rvq5-wwqv-78pq> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-111771> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-111771>
