mcp · Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource
Affects mcpSource GCVE Database
Not known to be exploited · CVSS 6.8 Medium : upgrade to 2.2.0 when convenient.
Data as of 27 Oct 2026, 22:27 UTC
- Patch
- Available – fixed in 2.2.0, 1.30.0
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 27 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade mcp to 2.2.0; mcp to 1.30.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPImcp | Affected
| Fixed in
|
| PyPImcp | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to MCP Python SDK version 1.30.0 or later (for 1.x) or 2.2.0 or later (for 2.x). After upgrading, enable 'validate_token_resource=True' in AuthSettings and set 'resource_server_url' to the expected audience. Also, modify 'verify_token()' to return the token's audience as 'AccessToken.resource'. If upgrading is not possible, implement audience validation in your TokenVerifier to reject tokens whose 'aud' claim does not include your server. If your TokenVerifier already performs audience checks, set 'validate_token_resource=False' to suppress deprecation warnings. The setting will default to True in version 3.0.
Description
The Model Context Protocol (MCP) Python SDK versions 1.10.0 through 1.29.1 and 2.0.0 through 2.1.1 have a vulnerability in server-side bearer-token authentication. The SDK does not verify that a token's audience matches the intended server, allowing tokens issued for other services by the same authorization server to be accepted. This can lead to unauthorized access. Fixed in versions 1.30.0 and 2.2.0, the fix requires enabling a new setting to validate the token audience explicitly.
References
- github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-w4fh-qvv9-3v23 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/pull/3447 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/pull/3451 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/commit/0c9136841ff092987a20700ff9c2c9789bda2f40 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/commit/8c2fa6eabacde869d75568e33b9d466b58c2f512 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0 (opens in a new tab)