MCP TypeScript SDK missing token audience validation
Start here
A GitHub security advisory disclosed that the server-side bearer authentication of the MCP TypeScript SDK in affected versions does not validate the token's audience, causing valid tokens issued by an authorization server for other services to also be accepted by the MCP server. Affected versions include before @modelcontextprotocol/sdk 1.32.0, before @modelcontextprotocol/server 2.3.0, before @modelcontextprotocol/express 2.0.2, and others.
Generated by AI from reports · Updated 2026-10-21
Storyline
- · 3 reports· Attention44MCP TypeScript SDK fixes redirect and OAuth credential flaws
- · 1 reports· Attention42MCP TypeScript SDK cross-origin redirect leaks request headers and request body
- · 1 reports· Attention35MCP TypeScript SDK fixes task authorization vulnerability
- · 1 reports· Attention41
MCP TypeScript SDK missing token audience validationThis event
- · 2 reports· Attention41MCP TypeScript SDK exposed to memory exhaustion vulnerability
- · 1 reports· Attention45MCP TypeScript SDK cross-client message leakage vulnerability
- · 3 reports· Attention42MCP Python SDK vulnerability: issuer still must be passed after upgrade
Progress timeline
- GitHub Security AdvisoriesSelectedMCP TypeScript SDK server-side bearer authentication accepts tokens issued for other services
The MCP TypeScript SDK's server-side bearer authentication does not validate the token's audience in affected versions, so valid tokens issued by the authorization server for other services are also accepted by the MCP server. Affected versions include versions before @modelcontextprotocol/sdk 1.32.0, before @modelcontextprotocol/server 2.3.0, before @modelcontextprotocol/express 2.0.2, and before @modelcontextprotocol/server-legacy 2.3.1. If upgrading is not possible, tokens whose aud does not contain this service can be rejected in verifyAccessToken().