mcp-go before v1.2.1 Origin Validation Error via Unvalidated Well-Known Protected Resource Metadata
- State
- Published
- Severity
- 5.1 Medium
- Published
- Nov 5, 2026
- Updated
- Nov 8, 2026
- Reserved
- Nov 5, 2026
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.
| Product | Versions |
|---|---|
| mcp-go mark3labs | v0.48.0 to before v1.2.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.1 Medium | VulnCheck | |
| 3.1 | 8.0 High | VulnCheck |
Weaknesses
- CWE-346 Origin Validation Error
References
- GitHub Security Advisory (GHSA-xf6j-693p-wqxx)Vendor Advisory
- https://github.com/mark3labs/mcp-go/pull/1053Issue TrackerPatch
- https://github.com/mark3labs/mcp-go/commit/90d247ed8d45cbb7d71d9a95e112789b78760443Patch
- mcp-go v1.2.1 Release NotesRelease Notes
- https://github.com/mark3labs/mcp-go/blob/4cb0d2015f24b669726fd8e5e53fc8c6d3f57abf/client/transport/oauth.go#L799-L821Technical Details
- VulnCheck Advisory: mcp-go before v1.2.1 Origin Validation Error via Unvalidated Well-Known Protected Resource MetadataThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.