---
schema_version: '1.0'
id: security-20261028-8c2194
title: 'CVE-2026-116684: Model Context Protocol Python SDK: Server bearer-token authentication
  accepts tokens issued for a different resource server'
url: https://osv.dev/vulnerability/GHSA-w4fh-qvv9-3v23
url_hash: 8c2194d8c5dbb9d3d3704f8945d186e786615006b1025d82ce3042df6294f2b9
canonical_url: https://osv.dev/vulnerability/GHSA-w4fh-qvv9-3v23
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-116684
- GHSA-w4fh-qvv9-3v23
- severity:CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- mcp
- PyPI
lang: en
published_at: '2026-10-27T21:06:59Z'
fetched_at: '2026-10-28T12:20:30.923389Z'
updated_at: '2026-11-03T10:38:37.451956Z'
status: published
content_hash: a4c13411ff66edc7d6fed028b715b240d6e3c3e36b04b3f3e047cd54228e03a9
content_changed_at: null
license_note: full
summary: 'Model Context Protocol Python SDK: Server bearer-token authentication accepts
  tokens issued for a different resource server'
summary_source: rss
summary_en: 'Model Context Protocol Python SDK: Server bearer-token authentication
  accepts tokens issued for a different resource server'
summary_omitted_reason: null
redistribution: true
keywords_en:
- accepts
- authentication
- bearer-token
- Context
- ContextManagement
- cve
- CVE-2026-116684
- different
- for
- GHSA-w4fh-qvv9-3v23
- gts-mcp
- issued
- library vulnerability
- mcp
- Model
- ModelPress
- Protocol
- PyPI
- PyPIのBrotliパッケージ
- Python
- resource
- SDK
- Server
- severity:CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
entities_en:
- name: ContextManagement
  type: tool
- name: gts-mcp
  type: organization
- name: ModelPress
  type: organization
- name: PyPIのBrotliパッケージ
  type: organization
- name: Shay McVeigh
  type: person
- name: ヘルシンコ Protocols
  type: organization
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: Shay McVeigh
  type: person
- name: gts-mcp
  type: organization
- name: PyPIのBrotliパッケージ
  type: organization
- name: ModelPress
  type: organization
- name: ContextManagement
  type: tool
- name: ヘルシンコ Protocols
  type: organization
key_facts: []
related: []
related_auto:
- name: context管理
  type: artifact
  weight: 7.8
- name: wiki-mcp
  type: organization
  weight: 7.2
- name: PHP
  type: concept
  weight: 1.0
- name: サカナクション
  type: organization
  weight: 1.0
computed_at: '2026-10-28T15:40:41Z'
---

# CVE-2026-116684: Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource server

## TL;DR
Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource server

## Key Points
- cve / CVE-2026-116684 / GHSA-w4fh-qvv9-3v23 / severity:CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N / mcp / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
**Advisory:** GHSA-w4fh-qvv9-3v23 (CVE-2026-116684)

**Details:**
### Summary
In affected versions, the SDK's server-side bearer authentication had no way to check that a token was issued for your server (its audience). Where one authorization server issues tokens for several services, a valid token for another service was also accepted by your MCP server.

### Am I affected?
Yes, if your HTTP server uses the SDK's bearer authentication (`auth=AuthSettings(...)` with `token_verifier=`), its authorization server also issues tokens for other services, and your `TokenVerifier` does not check the token's audience (`aud`) itself.

Affected versions:

- `mcp` 1.10.0 through 1.29.1
- `mcp` 2.0.0 through 2.1.1

### Fix
Upgrade to:

- 1.x: `mcp` 1.30.0 or later
- 2.x: `mcp` 2.2.0 or later

**Upgrading alone changes nothing.** The patched versions add a `validate_token_resource` setting that is off unless you set it. To turn the check on, make both of these changes together:

1. Set `validate_token_resource=True` in `AuthSettings`, with `resource_server_url` set to the audience your authorization server puts in tokens for your server.
2. Return the token's audience from `verify_token()` as `AccessToken.resource`.

A token for another service then gets `401`. With only the first change, every request gets `401`.

If your `TokenVerifier` already checks the audience, set `validate_token_resource=False` to silence the deprecation warning. The setting will default to `True` in 3.0.

If you cannot upgrade yet, reject any token whose `aud` does not include your server inside `verify_token()`. That closes the issue on every version.

**References:**
- https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-w4fh-qvv9-3v23
- https://github.com/modelcontextprotocol/python-sdk/pull/3447
- https://github.com/modelcontextprotocol/python-sdk/pull/3451
- https://github.com/modelcontextprotocol/python-sdk/commit/0c9136841ff092987a20700ff9c2c9789bda2f40
- https://github.com/modelcontextprotocol/python-sdk/commit/8c2fa6eabacde869d75568e33b9d466b58c2f512
- https://github.com/modelcontextprotocol/python-sdk
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-w4fh-qvv9-3v23_

## Source
元記事: [CVE-2026-116684: Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource server](https://osv.dev/vulnerability/GHSA-w4fh-qvv9-3v23) — published 2026-10-27T21:06:59Z
