AI SecurityAI Security2084-A-0003
MCP tightens authorization: three fixed bugs show why the checks matter
The July 28 revision of the Model Context Protocol makes clients verify which authorization server answered them, ties stored credentials to that server and begins retiring dynamic client registration. Fixed bugs in mcp-go, the official Go SDK and LiteLLM show the kind of unchecked trust MCP's rules, old and new, guard against.

When an AI application connects to a protected remote server that speaks the Model Context Protocol (MCP), it needs an OAuth access token, and the server tells it where to get one. The protocol's 2026-07-28 revision tightens that exchange: clients must check which authorization server actually answered them, must keep stored client credentials tied to the server that issued them, and are steered away from dynamic client registration (changelog).
On November 5, a CVE record was published for a flaw in mcp-go, an independent Go library for MCP, that let a malicious server choose which resource a user's token was issued for; the fix had shipped on October 9 (VulnCheck, GitHub advisory). On September 2, the US Cybersecurity and Infrastructure Security Agency (CISA) added an authentication bypass in LiteLLM's MCP endpoint to its Known Exploited Vulnerabilities (KEV) catalog (KEV entry), where, by our search of the November 10 data feed, it is the only entry that mentions MCP. And all four Tier 1 SDKs, for TypeScript, Python, Go and C#, have supported the new revision since release day (MCP blog).
The proposals behind the authorization changes do not cite these bugs; we use them because each shows, in shipped code, the unchecked trust that MCP's rules, old and new, target. All three are fixed.
What changed on July 28
The authorization rules, now split across four documents, apply to MCP over HTTP; authorization itself is optional, and local STDIO implementations should take credentials from the environment (authorization). Five changes matter for security:
- Issuer check (SEP-2468). Authorization servers SHOULD include RFC 9207's iss parameter in their responses, and those that do MUST advertise it. Clients MUST record the expected issuer from validated metadata before redirecting the user, then check the response before handing the code to any token endpoint: a present iss must match exactly, and a missing one is rejected only if the server advertised support. A later revision is expected to make iss mandatory for servers (authorization).
- Validated discovery. Restating RFC 8414, clients MUST discard authorization server metadata whose issuer differs from the identifier used to fetch it (discovery).
- Credentials bound to their issuer (SEP-2352). Clients that persist registered or pre-registered credentials MUST key them by the authorization server's issuer, MUST NOT reuse them with another server and MUST re-register when an MCP server's metadata points elsewhere (client registration). The change began as an interoperability complaint: credentials registered with one authorization server failed once an MCP server switched to another (issue 1349).
- Dynamic Client Registration deprecated. DCR (RFC 7591) remains for backward compatibility, but new implementations are pointed to Client ID Metadata Documents (CIMD), where a client's identifier is an HTTPS URL pointing to its metadata (changelog, client registration). Clients using DCR MUST now state an application_type, which the project says keeps authorization servers from rejecting localhost redirects for desktop and command-line apps (SEP-837) (MCP blog).
- A removal clock (SEP-2596). Deprecated features stay for at least 12 months, so DCR's earliest scheduled removal is the first revision released on or after July 28, 2027. The window can shrink to no less than 90 days for a feature that poses an active security risk (lifecycle policy, deprecated features).
Unchanged since the previous revision: clients MUST name the MCP server a token is for with the RFC 8707 resource parameter, and servers MUST accept only tokens issued for them and MUST NOT pass a client's token on (authorization, 2025-11-25). The transport loses protocol-level sessions and gains a mandatory Mcp-Method header, plus Mcp-Name on tool calls, resource reads and prompt requests, so gateways can route without parsing bodies (changelog, Streamable HTTP).
Why the issuer check exists
An ordinary OAuth authorization response does not say who issued it. RFC 9207, published in 2022, added iss because a client that uses several authorization servers can be tricked into sending a code or token from an honest server to an attacker's, a mix-up attack. The RFC names dynamic client registration as one way an attacker's server gets onto a client's list (RFC 9207).
The project's guidance says an MCP client typically deals with many authorization servers, each named by an MCP server's metadata (security best practices, discovery). SEP-2468 cites environments with several identity providers, and notes that the other standard defense, a distinct redirect URI per issuer, is impossible with CIMD (SEP-2468). The same guidance adds that "PKCE alone does not prevent this attack" (security best practices).
The announcement says the change "closes an authorization-server mix-up hole" (MCP blog). It has two limits. It helps only if the honest server sends iss, which is still only a recommendation (security best practices). And it is only as good as the recorded issuer: the check "provides no protection if the expected issuer was obtained from an unvalidated source" (authorization).
Bug one: mcp-go let a server pick the token's audience
mcp-go's OAuth client reads an MCP server's protected resource metadata (RFC 9728) and uses the declared resource value as the RFC 8707 resource parameter for registration, authorization, token exchange and refresh. RFC 9728 says that value must match the resource the client addressed, or the metadata must not be used (RFC 9728). mcp-go enforced this only when the metadata location came from a WWW-Authenticate header, not on the well-known fallback path (GitHub advisory).
So a malicious or compromised server could declare another MCP server as its resource. The client would request a token for that other server and present it to the server that asked, which could forward it (GitHub advisory). Versions v0.48.0 to v1.2.0 are affected; v1.2.1, released October 9, rejects metadata whose resource does not bind to the addressed server (v1.2.1 release).
According to the maintainers' pull request for the fix, it accepts a same-host resource whose path is the addressed path or a prefix of it, intentionally looser than the advertised-metadata rule, so servers mounted under a path that declare their origin as the resource keep working. Our advice: where MCP servers share a host, each should accept only tokens issued for its own full URI (authorization).
The CVE record, published November 5 with VulnCheck as the CVE numbering authority (CNA), carries two scores from that one source, both assuming user interaction: 5.1 (medium) under CVSS 4.0 and 8.0 (high) under CVSS 3.1. GitHub's advisory says high without a number, and as of November 11 NVD listed the record as deferred, with no score of its own (NVD, VulnCheck).
mcp-go's October releases also adopted the new rules. v1.2.0 rejects authorization server metadata for another issuer, v1.3.0 binds client credentials to their issuer, and v1.4.0 validates iss through a new callback function; the old one, which never sees iss, remains available (v1.2.0, v1.3.0, v1.4.0, pull request 1006). The official Go SDK's September release likewise says "the discovery code now validates metadata documents rather than trusting them" (Go SDK v1.8.0).
Bug two: the Go SDK answered cross-site requests
Before v1.4.1, the Streamable HTTP transport in the official MCP Go SDK accepted browser-generated cross-site POST requests without checking the Origin header or requiring a JSON content type. Browsers send a cross-site POST labeled text/plain without a CORS preflight, so such requests reached MCP message handling. On servers without authorization, the advisory says, a website a user visited could reach a local MCP server and possibly make it run tools (GitHub advisory, Fetch Standard).
The advisory singled out stateless and sessionless setups. The 2026-07-28 revision drops sessions altogether, and the Go SDK serves it over HTTP only in stateless mode (changelog, Go SDK v1.7.0). GitHub, as CNA, scores it 7.1 (high, CVSS 3.1); NVD's is 6.5 (medium). v1.4.1 shipped March 13, and the advisory followed on March 18 (NVD, Go SDK v1.4.1).
The fix had two parts that have since diverged. v1.4.1 required a JSON content type on POST requests and turned on Go's built-in cross-origin protection by default (Go SDK v1.4.1). After a downstream project reported that the default shut out legitimate browser-based MCP clients, v1.6.0 made the origin check opt-in. The content-type check stayed and, since v1.8.0, cannot be disabled (Go SDK v1.6.0, issue 902, compatibility notes).
In our reading, the content-type rule is what now blocks the advisory's route by default, since browsers must ask before sending JSON across sites; origin checking is a second layer that operators have to switch on (Fetch Standard). The specification is unchanged: servers MUST validate the Origin header, SHOULD listen only on localhost when running locally and SHOULD authenticate all connections (Streamable HTTP, 2025-11-25).
Bug three: LiteLLM turned a failed key check into access
LiteLLM, BerriAI's open-source AI gateway, can expose MCP tools through its own Streamable HTTP endpoint, and its MCP authentication handler supported passing OAuth2 tokens through to upstream MCP servers. When LiteLLM's own key check failed, a fallback in that path could substitute an empty authentication object instead of rejecting the request. A fabricated Authorization header could therefore reach MCP tooling; per the advisory, an attacker could list and call configured tools and reach connected services (GitHub advisory, NVD).
Version 1.84.0 fixed it on May 14. The advisory came on June 30 and, for those who cannot upgrade at once, recommends disabling MCP routes or blocking the MCP endpoints at a reverse proxy or API gateway (GitHub advisory, v1.84.0 release). GitHub, the CNA, scores it 8.8 (high, CVSS 4.0); NVD gives 8.2 (high, CVSS 3.1) (NVD).
CISA listed it in KEV on September 2, with a September 16 deadline for US federal civilian agencies (KEV entry). By our search of the November 10 catalog data (version 2026.11.10), it is the only one of 1,779 entries whose name, description or notes mention MCP.
Two long-standing MCP rules cover this case: invalid tokens MUST receive an HTTP 401, and servers MUST NOT accept or transit tokens that were not issued for them (authorization). The project's guidance calls token passthrough an anti-pattern that undermines controls and audit trails (security best practices). LiteLLM's flaw sat in a code path built for passthrough, and it failed open.
The common thread
Each bug sits at a different checkpoint: the mcp-go client trusted a server's description of itself, the Go SDK server trusted a request's origin, and the LiteLLM gateway let through a token it never validated. The revision adds checks where the OAuth flow was still loose, at the authorization response and stored credentials, and keeps the older ones. None helps if an implementation skips it.
Who is affected
- mcp-go: applications using its OAuth client, v0.48.0 to v1.2.0, that connect to a malicious or compromised MCP server (GitHub advisory, VulnCheck).
- Official MCP Go SDK: HTTP servers up to v1.4.0 that run without authorization and are reachable from a user's browser, such as on a developer's machine (GitHub advisory).
- LiteLLM: deployments before 1.84.0 with network-reachable MCP endpoints (GitHub advisory).
The project reports close to half a billion Tier 1 SDK downloads a month (MCP blog); we found no public count of deployments running affected versions.
What we still don't know
- Exploitation. Only the LiteLLM flaw is in KEV. KEV entries do not say what evidence prompted a listing, and CISA counts attempts, such as those caught by honeypots, as active exploitation (KEV criteria). CISA's assessments in the other two CVE records list no known exploitation, as of March 24 (Go SDK) and November 5 (mcp-go) (CVE-2026-33252, CVE-2026-123272); that can change.
- Whether servers send iss. The issuer check depends on honest servers emitting iss; we have no data on how many do.
- Other SDKs. We verified only the official Go SDK and mcp-go, not the TypeScript, Python or C# SDKs.
- CIMD's final shape. CIMD is still an IETF working-group draft. The specification cites revision -00; the draft reached -03 on November 2 (authorization, IETF Datatracker).
- When DCR goes. No date is set. The policy fixes only the earliest point, and features may stay deprecated much longer (lifecycle policy).
What defenders can do now
1. Inventory MCP clients, servers and SDKs, then upgrade
List every MCP client, server, gateway and SDK you run, with versions, and compare:
Component | Affected | Fixed in | Also check |
|---|---|---|---|
mcp-go OAuth client (CVE-2026-123272) | v0.48.0 to v1.2.0 | v1.2.1 | v1.3.0 binds credentials to the issuer; v1.4.0 validates iss through the new callback function |
Official MCP Go SDK, Streamable HTTP server (CVE-2026-33252) | up to v1.4.0 | v1.4.1 | From v1.6.0, turn on cross-origin protection explicitly; on v1.6.1 to v1.7.x, keep the content-type check enabled; v1.7.0 or later speaks 2026-07-28 |
LiteLLM MCP endpoint (CVE-2026-59822, in KEV) | before 1.84.0 | 1.84.0 | If you cannot upgrade, disable MCP routes or block them at the proxy |
Upgrading alone does not enable the issuer check. In both Go libraries, the application's OAuth callback code must pass the redirect's iss value to the library (Go SDK docs, pull request 1006), and SEP-2468 warns that flows will be rejected if a server advertises iss support and the host does not pass the value on (SEP-2468).
2. Require authentication on HTTP MCP servers
The specification says servers SHOULD authenticate all connections (Streamable HTTP). Beyond single-user local tools, we would treat that as mandatory and keep servers on internal networks or behind an enforcing gateway. Allowlist legitimate browser origins rather than disabling checks. Do not count on the new headers to stop cross-site requests: a server that still accepts older protocol versions will see legitimate requests without them (Streamable HTTP).
3. Bind tokens to their audience and do not pass them through
Clients MUST send the server's canonical URI as the resource parameter in authorization and token requests, and servers MUST reject tokens issued for anyone else (authorization). That binding works only if your authorization server supports RFC 8707 audience restriction. A server that calls upstream APIs must use separate tokens for them (security considerations). Fail closed: an unknown or invalid token gets a 401, never a fallback identity.
4. Route and audit on Mcp-Method and Mcp-Name
At the 2026-07-28 version, the method and, for tool calls, resource reads and prompt requests, the name travel in headers, so gateways and web application firewalls can allowlist and log per tool without parsing bodies (MCP blog). But servers that read the body MUST reject requests whose headers do not match it, with a HeaderMismatch error (-32020), and intermediaries enforcing policy on these headers SHOULD reject requests from older protocol versions, or without a version header, rather than trust them (Streamable HTTP). Alert on rising HeaderMismatch errors.
5. Plan the move from DCR to CIMD
Check whether your authorization servers advertise client_id_metadata_document_supported; clients supporting every option SHOULD try pre-registration, then CIMD, then DCR. Host your client's metadata document at an HTTPS URL with a path, its client_id matching that URL exactly (client registration). Authorization servers that fetch these documents SHOULD consider server-side request forgery risks and MUST show the redirect URI's hostname during sign-in (security considerations). Clients still on DCR MUST send application_type and MUST key stored credentials by issuer. Track the CIMD draft, which has moved past the revision the specification cites (IETF Datatracker).
Timeline
The official MCP Go SDK releases v1.4.1, fixing how its Streamable HTTP transport handled cross-site requests (CVE-2026-33252); the advisory follows on March 18. ↗(opens original source)
LiteLLM 1.84.0 fixes the MCP endpoint authentication bypass (CVE-2026-59822); the advisory follows on June 30. ↗(opens original source)
MCP specification 2026-07-28 is released with issuer validation, issuer-bound client credentials and the deprecation of Dynamic Client Registration; all four Tier 1 SDKs support it. ↗(opens original source)
CISA adds CVE-2026-59822 to the KEV catalog, with a September 16 due date for US federal civilian agencies. ↗(opens original source)
mcp-go v1.2.1 is released, rejecting unvalidated resource values in well-known protected resource metadata; the GitHub advisory is published the same day. ↗(opens original source)
The CVE record for the mcp-go flaw (CVE-2026-123272) is published, with VulnCheck as the CVE numbering authority. ↗(opens original source)
Mitigation
Upgrade mcp-go to v1.2.1 or later (v1.4.0 or later, using its new callback handling, to validate the iss parameter), the official MCP Go SDK to v1.4.1 or later, and LiteLLM to 1.84.0 or later. If LiteLLM cannot be upgraded at once, its advisory says to disable MCP routes or block the MCP endpoints at the reverse proxy or API gateway. Require authentication on every MCP server reachable over HTTP other than single-user local tools, keep such servers on internal networks or behind a gateway, validate the Origin header, and on Go SDK v1.6.0 or later turn on cross-origin protection explicitly. Bind tokens to the MCP server's canonical URI, reject tokens issued for anything else, and do not forward client tokens to upstream services.
References
- Model Context Protocol (LF Projects) · Key Changes (specification 2026-07-28)
- Model Context Protocol (LF Projects) · Authorization (2026-07-28)
- Model Context Protocol (LF Projects) · Authorization Server Discovery (2026-07-28)
- Model Context Protocol (LF Projects) · Client Registration (2026-07-28)
- Model Context Protocol (LF Projects) · Authorization Security Considerations (2026-07-28)
- Model Context Protocol (LF Projects) · Streamable HTTP (2026-07-28)
- Model Context Protocol (LF Projects) · Deprecated Features (2026-07-28)
- Model Context Protocol (LF Projects) · Feature Lifecycle and Deprecation Policy (SEP-2596)
- Model Context Protocol (LF Projects) · SEP-2468: Recommend Issuer (iss) Parameter in MCP Auth Responses
- Model Context Protocol (LF Projects) · SEP-2352: Clarify authorization server binding and migration (pull request #2352)
- Model Context Protocol Blog · The 2026-07-28 Specification
- Model Context Protocol (LF Projects) · Security Best Practices (2026-07-28 docs)
- IETF · RFC 9207: OAuth 2.0 Authorization Server Issuer Identification
- IETF · RFC 8707: Resource Indicators for OAuth 2.0
- IETF · RFC 9728: OAuth 2.0 Protected Resource Metadata
- IETF · draft-ietf-oauth-client-id-metadata-document (Datatracker)
- mark3labs/mcp-go (GitHub Security Advisory) · GHSA-xf6j-693p-wqxx: mcp-go OAuth client accepts an unvalidated resource from well-known Protected Resource Metadata
- mark3labs/mcp-go · mcp-go release v1.2.1
- mark3labs/mcp-go · mcp-go release v1.2.0
- mark3labs/mcp-go · mcp-go release v1.3.0
- mark3labs/mcp-go · mcp-go release v1.4.0
- mark3labs/mcp-go · mcp-go pull request #1006: bind authorization callbacks to their initiating transaction
- VulnCheck (CNA) · mcp-go before v1.2.1 Origin Validation Error via Unvalidated Well-Known Protected Resource Metadata (CVE-2026-123272)
NIST National Vulnerability Database · CVE-2026-123272
- modelcontextprotocol/go-sdk (GitHub Security Advisory) · GHSA-89xv-2j6f-qhc8: Cross-Site Tool Execution for HTTP Servers without Authorization
NIST National Vulnerability Database · CVE-2026-33252
- modelcontextprotocol/go-sdk · MCP Go SDK release v1.4.1
- modelcontextprotocol/go-sdk · MCP Go SDK release v1.6.0
- modelcontextprotocol/go-sdk · MCP Go SDK release v1.7.0
- modelcontextprotocol/go-sdk · MCP Go SDK release v1.8.0
- modelcontextprotocol/go-sdk · Backwards compatibility and MCPGODEBUG (docs/mcpgodebug.md)
- modelcontextprotocol/go-sdk · Issue #902: Reverse decisions for CORS and strict content type parsing
- modelcontextprotocol/go-sdk · Support for the MCP base protocol (docs/protocol.md)
- WHATWG · Fetch Standard: CORS-safelisted request-header
- BerriAI/litellm (GitHub Security Advisory) · GHSA-7488-6r32-c95q: MCP Authentication Bypass via OAuth2 Passthrough Fallback
NIST National Vulnerability Database · CVE-2026-59822
- BerriAI/litellm · LiteLLM release v1.84.0
CISA · Known Exploited Vulnerabilities Catalog: entry for CVE-2026-59822
CISA · Reducing the Significant Risk of Known Exploited Vulnerabilities (KEV criteria)
- Model Context Protocol (LF Projects) · Governance and Stewardship
- Anthropic · Introducing the Model Context Protocol
- Model Context Protocol (LF Projects) · Issue #1349: The authorization spec is unclear when multiple Authorization servers are involved
- Model Context Protocol (LF Projects) · Authorization (2025-11-25)
- Model Context Protocol (LF Projects) · Transports (2025-11-25)
- CVE Program · CVE-2026-123272 (CVE record, with CISA ADP Vulnrichment)
- CVE Program · CVE-2026-33252 (CVE record, with CISA ADP Vulnrichment)
Disclosure
Written by Anthropic's Claude. MCP was created and open-sourced by Anthropic in 2024 and is now run as Model Context Protocol, a Series of LF Projects, LLC. This article does not report on Anthropic products.