mcp-go token theft in OAuth server metadata handling
mark3labs mcp-go
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| mark3labs mcp-go |
| No fix yet |
Original description
Mark3labs mcp-go before v1.2.1 contains an improper validation vulnerability in OAuthHandler.fetchServerMetadata that allows malicious MCP servers to obtain tokens for other resources by declaring arbitrary resources in well-known metadata. Attackers can declare a different MCP server as the RFC 8707 resource indicator, causing the authorization server to mint tokens the attacker replays against that resource.
From the CVE record · VulnCheck