Mark3labs mcp-go
mcp-go before v1.2.1 Origin Validation Error via Unvalidated Well-Known Protected Resource Metadata
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.0high · scored by CNA · CWE-346
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
mark3labs mcp-go
- >= v0.48.0, < v1.2.1
Fixed in v1.2.1
Mitigation
Upgrade mcp-go to v1.2.1 or later.
References
- Vendor advisory github.com/mark3labs/mcp-go/security/advisorie…
- Patch github.com/mark3labs/mcp-go/pull/1053
- Patch github.com/mark3labs/mcp-go/commit/90d247ed8d4…
1 more
- Release notes github.com/mark3labs/mcp-go/releases/tag/v1.2.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.