Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource server
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| modelcontextprotocolpython-sdk | — | Not listed |
| pipmcp |
< 1.30.0→ 1.30.0 |
1.30.0 |
| PyPImcp |
≥ 1.10.0, < 1.30.0→ 1.30.0 |
1.30.0 |
Original description The description as published by the source.
The Model Context Protocol Python SDK is the official Python SDK for Model Context Protocol servers and clients. From 1.10.0 until 1.30.0 and 2.2.0, server-side bearer authentication configured through AuthSettings with token_verifier accepts a valid token issued for another service when the authorization server serves multiple resources and the TokenVerifier does not independently validate the aud audience. This resource-confusion flaw lets a token holder authenticate to the wrong MCP server and exercise that token's resulting access. This issue is fixed in versions 1.30.0 and 2.2.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com
- web github.com