Rightshold™ Sign up
Open betalive and open to everyoneEvidence Delivery$99 / 30 days · Offers are open — review the exact terms and the payment options shown on the service page before accepting.No token, everany ‘Rightshold token’ is not ours

Answers · MCP security

Our Go MCP client uses the mark3labs/mcp-go OAuth transport to sign users in to remote MCP servers. What are CVE-2026-123272 and the similar ChatCLI CVE-2026-123271, which versions fix them, and what should any MCP client check before it asks for a token?

Last updated

TL;DR: Yes, with an affected client. mcp-go v0.48.0 through v1.2.0 (advisory GHSA-xf6j-693p-wqxx, published by the maintainers on October 9, 2026; CVE-2026-123272 published in NVD on November 5) read the Protected Resource Metadata (RFC 9728) an MCP server serves at its well-known path and used the resource it declared, unchecked, as the RFC 8707 resource indicator in client registration, the authorization request, the token exchange and token refresh. A malicious or compromised server could declare a different MCP server that uses the same authorization server: after the user consented, the authorization server issued a token for that other server, the client sent it to the malicious server as its bearer token, and that server could replay it against the other one. mcp-go v1.2.1 (October 9) fixes it by refusing metadata whose resource doesn't bind to the server address you configured; v1.5.0 was the newest release on November 15, 2026. ChatCLI had the same flaw from 1.159.0 through 1.215.1 (GHSA-95vg-3r9c-2v5q, CVE-2026-123271), fixed in 1.215.2 on October 11. The rule for every MCP client is in the spec: the resource parameter is the canonical URI of the server you meant to use, not whatever that server says it is.

What should I check, step by step?

1. Check go.mod: github.com/mark3labs/mcp-go v0.48.0 through v1.2.0 are affected. Upgrade to v1.2.1 or later (v1.5.0 was the newest on November 15, 2026) and rebuild every binary that embeds it; a library fix only reaches users in a new build.

  1. If you use ChatCLI, upgrade to 1.215.2 or later (1.230.0 was the newest on November 15, 2026). Its advisory says that if you logged in to an MCP server you don't trust, run /mcp logout <server> after upgrading and revoke the ChatCLI client at the authorization server.
  2. If you wrote your own MCP OAuth client, set the resource parameter from the server URL you configured (its canonical URI: scheme, host, port and path, no fragment), never from the resource field of metadata the server returns.
  3. Compare the resource in Protected Resource Metadata with the server you addressed and don't use the metadata if they don't match. RFC 9728 section 3.3 requires this both for the well-known path and for a resource_metadata URL taken from WWW-Authenticate.
  4. Follow a resource_metadata URL only on the MCP server's own origin and cap the size of discovery documents, as ChatCLI's fix now does (1 MiB).
  5. Don't keep sending tokens an affected version stored. ChatCLI's fix never attaches a credential recorded for another resource and asks for a new login; clear or re-check tokens your own client saved before the upgrade.
  6. If you run MCP servers behind one authorization server, have each server accept only tokens whose audience is its own canonical URI, and check whether a single consent can be used to issue tokens for any resource registered there.
  7. Show the user which MCP server a sign-in is for before they consent. The attack needs the user to complete consent.

What does CVE-2026-123272 in the mcp-go OAuth client let a malicious MCP server do?

mcp-go's OAuth client transport finds out how to authorize by fetching the MCP server's Protected Resource Metadata (RFC 9728), either from a resource_metadata URL in the server's WWW-Authenticate challenge or from the well-known path built from the server URL. The maintainers' advisory says the RFC 9728 section 3.3 check, that the declared resource identifies the server the client addressed, was applied only to the first case. On the well-known path, the declared resource went unchecked into the RFC 8707 resource parameter of dynamic client registration, the authorization request, the token exchange and token refresh.

How do mcp-go v1.2.1 and ChatCLI 1.215.2 fix the MCP OAuth resource indicator flaw?

The mcp-go fix (commit 90d247ed, PR #1053, released as v1.2.1 on October 9, 2026) applies the binding check to metadata from the well-known path too. Metadata advertised through WWW-Authenticate must declare a resource exactly equal to the server URL and is refused if the field is missing. Well-known metadata may declare the URL itself or a parent path at a segment boundary on the same scheme and host, so a server at https://host/mcp that declares https://host keeps working, while metadata naming another host is refused and not used.

What should an MCP client send as the OAuth resource parameter, and when should it refuse protected resource metadata?

The MCP authorization specification (2026-07-28) says the resource parameter MUST be included in both authorization requests and token requests, MUST identify the MCP server the client intends to use the token with, and MUST use that server's canonical URI as defined in RFC 8707. Its examples of valid canonical URIs include https://mcp.example.com/mcp and https://mcp.example.com; a URI with a fragment isn't valid.

How do I ask Rightshold about this (free, no key)?

Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “Before my MCP client completes a first OAuth sign-in for a new server, ask the account owner to approve it with the server URL, the resource indicator the client will send and the authorization server in the request, so a sign-in for a different resource can't go ahead unnoticed.”

One-click setup

{
  "tool": "request_human_approval",
  "arguments": {
    "action": {
      "tool": "mcp oauth sign-in",
      "mcp_server": "https://mcp.example.com/mcp",
      "resource_indicator": "https://mcp.example.com/mcp",
      "authorization_server_issuer": "https://auth.example.com"
    },
    "summary": "First OAuth sign-in for MCP server https://mcp.example.com/mcp; resource indicator equals the configured server URL",
    "expires_in_minutes": 30
  }
}

Rightshold isn't affiliated with the mcp-go or ChatCLI projects, VulnCheck or any authorization server vendor. It records approvals your agent asks it for; it doesn't scan client code, hold OAuth tokens or detect token replay. Advisory details are as published by the mcp-go and ChatCLI maintainers on GitHub, CVE details as shown in GitHub's advisory database and NVD, and spec text is from the MCP 2026-07-28 authorization page and RFC 9728, all read November 15, 2026. Advisories get updated, so confirm fixed versions on the linked pages before you upgrade.

What are the sources?

Related

Not legal advice. JSON · Markdown · All answers

Get a free API key in one call

No card and no email needed. 100 free credits; the license and policy checks stay free without a key.

curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_...   # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
  -H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'