Case · DiggingBeagle record

mcp-go trusted the wrong resource identity on its well-known OAuth path

mcp-go validated resource metadata on one discovery route but not its well-known route. Versions 0.48.0 through 1.2.0 are affected; 1.2.1 adds the missing binding check.

Public disclosure: Oct 9, 2026

Scope

Vulnerability reported in a controlled research or disclosure setting. Exact prerequisites, versions and absence of documented exploitation must be preserved.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade B
Remediation
patch available
AI role
AGAINST AI
Basis and provenance

The cited first-party advisory or research establishes the stated mechanism only within its documented conditions. No unrelated production compromise, extended victim scope, financial harm or universal mitigation is inferred.

Assessed Nov 9, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    A client connects to an untrusted or malicious MCP server and receives OAuth protected-resource metadata.

  2. 02

    The server asserts a resource identifier not bound to its actual origin.

  3. 03

    The client enters an authorization flow for that other resource and may deliver an audience-specific bearer token to the malicious endpoint.

Claims & evidence

CLM-MCPGO-RESOURCE-METADATAmcp-go 0.48.0 through 1.2.0 trusted an attacker-advertised protected-resource identity, potentially obtaining bearer credentials for a different target resource; fixed in 1.2.1.supported

Basis: reported finding

Link to claim

Implications

OAuth authorization metadata must not redefine the resource identity or destination without a separately authenticated binding.

Controls and mitigations

  • Upgrade mcp-go to 1.2.1 and bind OAuth resource identity to the protected MCP origin before requesting or forwarding tokens.

Unknowns and contradictions

  • Requires a malicious MCP server and successful token issuance or consent; no proven deployed credential theft.

Sources and citation

Material revision history

  1. Nov 9, 2026 · Published version · first publication · revision 233