Skip to content

MCP OAuth resource-metadata spoofing, markdown-sanitizer matching misses, and AI route guard parity

A September 16 late-night GitHub wave (published 2026-09-16T22:09-22:15Z) adds three durable operator axes: OAuth metadata that the client never binds to the server it came from, sanitizers that match attribute names and protocol prefixes exactly and therefore miss their siblings, and resource guards wired into one serving route but not its siblings.

  • rmcp (Rust MCP SDK, < 2.0.0): the OAuth Protected Resource Metadata discovery path (RFC 9728) never reads or validates the returned resource field, a malicious MCP server can serve metadata that names a legitimate server and its legitimate authorization server, and the client will complete a genuine consent flow and then send the resulting access token to the attacker's endpoint (CVE-2026-63127, GHSA-33f5-2c5q-wgwj).
  • rmcp adjacent: the Streamable HTTP server allocates a session before validating the request body, and every early-return path skips close_session, one ~250-byte unauthenticated POST permanently leaks ~400-550 bytes of server state (CVE-2026-63128, GHSA-9pj6-vhgr-3mwh).
  • @nuxtjs/mdc (< 0.22.1): the default-on URL sanitizer scheme-checks only attributes named exactly href/src, SVG xlink:href (javascript:) passes through, and the data:text/html deny-list entries are dead code because the check compares the deny-list prefix against url.protocol, which is just "data:" for every data URI (CVE-2026-63671, GHSA-mxm6-v9r6-r94c).
  • vLLM: the audio decode-duration guard (VLLM_MAX_AUDIO_DECODE_DURATION_S) is threaded into only the /v1/audio/transcriptions path; the /v1/chat/completions input_audio path calls the same decoder with no limit, so a few-KB compressed file expands to multiple GB of PCM on the default-no-auth endpoint (CVE-2026-57173, GHSA-hcwq-8wjf-3gcr).

Lab-only validation

Use disposable MCP servers with fake tokens, disposable Nuxt/Vue apps with inert DOM markers, and lab vLLM workers with bounded payloads. Never complete real OAuth consent flows against third-party authorization servers, never deliver executable payloads outside your own origin, and never run amplification payloads against shared inference infrastructure.

rmcp: RFC 9728 resource binding is the control that isn't

The attack shape is credential relay through metadata spoofing, not token forgery:

  1. Attacker serves a malicious MCP endpoint fake-mcp.com/mcp with /.well-known/oauth-protected-resource metadata declaring resource: real-mcp.com/mcp and authorization_servers: the legitimate AS of the real server.
  2. Victim configures any rmcp-based client against the attacker URL.
  3. rmcp's ResourceServerMetadata struct doesn't even include a resource field, so the mismatch is invisible; the client initiates OAuth with the legitimate AS.
  4. The victim sees a genuine authorization prompt from the real IdP and approves it.
  5. The issued token, valid for real-mcp.com/mcp, is attached to requests to fake-mcp.com/mcp. Full victim impersonation on the legitimate server.

Operator checks for any MCP client or OAuth client using protected-resource metadata:

  1. Fetch a target's /.well-known/oauth-protected-resource document and check whether the resource field is present and identical (modulo trailing slash) to the URL you queried. Absent-or-mismatched resource in a client implementation means the client accepts AS redirection from any server metadata.
  2. In a lab, stand up one disposable metadata-serving endpoint that echoes a different resource value plus an owned fake AS, and record whether the client (a) aborts, or (b) proceeds to the authorization URL, capture the constructed authorization request with the resource/audience parameter value. Use synthetic tokens only; never relay a real consent grant.
  3. Generalize: this is partial-RFC-adoption, the client implements the discovery fetch but drops the MUST-level binding checks (RFC 9728 §3.3, §7.3). Audit any RFC 9728 / OAuth metadata implementation (including MCP gateways) by diffing spec MUST checks against the code path, not against the docs.
  4. Detection-side corollary for red-team reporting: the consent prompt the victim sees is legitimate, so user-facing warnings don't fire, the only anomaly is the resource/audience value in the authorization request.

The session-leak sibling is the same audit family in reverse: allocate-before-validate with cleanup-only-on-success-path. Probe pattern (lab servers only): send a well-formed JSON-RPC POST that is not an initialize request; the server allocates a session then early-returns without closing it. Measure RSS/heap growth against request count with an in-lab rate ceiling to confirm the allocation-vs-cleanup differential. Generalize to any transport that registers state before authn/authz (compare against the Sept 16 Covenant hub and Sept 15 MCP transport pages, transport-layer capability endpoints routinely skip the authorization layer applied to the RPC layer).

@nuxtjs/mdc: exact-name and protocol-prefix sanitizer matching misses its siblings

Two precise gaps, both default-configuration, both siblings of previously-fixed vectors (the hallmark of deny-list sanitizers):

  1. Attribute-name exactness. validateProp scheme-checks attribute === "href" || attribute === "src". The SVG anchor property xLinkHref is neither, so <a xlink:href="javascript:..."> survives parsing and the renderer maps the property back to the real xlink:href attribute, click executes in the page origin. Plain <a href="javascript:..."> is correctly stripped.
  2. Protocol-vs-prefix comparison. unsafeLinkPrefix contains data:text/html, but the check does url.protocol.toLowerCase().startsWith(prefix), and url.protocol is "data:" for every data URI, so every data:text/* deny-list entry is unreachable dead code. <iframe src="data:text/html,<script>…</script>"> passes (iframe isn't in the render-time dangerousTags, which is only ["script","base"]); execution lands in an opaque origin, but combined with vector 1 the same-origin sink is the page.

Operator checks for any markdown-to-HTML/VDOM sanitizer:

  1. Build a sibling matrix from the sanitizer's own deny-list: for every blocked scheme, enumerate the alternate attribute names (href, xlink:href, src, srcset, formaction, data, poster, action) and alternate elements (a, svg>a, iframe, embed, object, use, animate) and confirm which pairs are actually checked.
  2. Prove scheme comparison by protocol object rather than raw string: submit data:text/html,... and inspect the parsed tree (not rendered DOM) to see whether the attribute survived. A surviving xLinkHref/src property in the parse output is the bounded positive, you don't need to click it to report the gap.
  3. Re-run the full original XSS matrix on any route or library with a sanitizer security history, the fix usually covers the reported vector, not the family (compare the Concrete CMS and Grav incomplete-fix follow-ups).
  4. For Vue/React renderers specifically, verify the property→attribute mapping table: a property the sanitizer doesn't recognize (xLinkHref) may still serialize to an executable attribute.

vLLM: media guards wired to one route, not the sibling routes

The audio decode-duration guard rejects long audio during decode (before allocation), but it is passed in exactly one place, the speech-to-text serving layer. The chat path chain (parse_input_audio → AudioMediaIO.load_bytes → load_audio(..., sr=None)) skips every guard because max_duration_s defaults to None. Inline data: URLs need no HTTP fetch, so the fetch-timeout env var doesn't bound them either, and the OpenAI-compatible server has no auth unless --api-key was set.

This is the third sibling in the same media subsystem: video frame-count bomb (CVE-2026-5497), image bomb (GHSA-pq5c-rjhq-qp7p), now audio, the guards for each landed piecemeal per-route.

Operator pattern for AI-inference endpoint recon (lab workers only):

  1. Enumerate every route that reaches a shared decoder/parser: /v1/chat/completions (with input_audio/image_url/video content parts), /v1/audio/transcriptions, /v1/embeddings, /invocations, plus data: URL inlining vs remote-URL fetch legs.
  2. For each resource limit (duration, frame count, pixel budget, decoded size), build a route × limit decision table, the finding is a limit enforced on one route and absent on a sibling that calls the same decode function.
  3. Check whether inline data:/base64 inputs bypass the network-path controls (timeouts, size caps, DNS/IP policy) that only apply to URL fetches.
  4. Prove amplification ratio only against an owned/disposable worker with monitoring and a bounded payload; record RSS delta, not production impact. Auth posture (--api-key set or not) is a legitimate route-level check for any engagement.

Tracked without publication this run

  • Grav Installer::unZip() zip-bomb/disk exhaustion (GHSA-2vcx-h8p2-9pg9 / CVE-2026-59193), admin-authenticated DoS, tracked on the Grav page.
  • node-opcua FIN-WAIT-2 socket accumulation (GHSA-r2pf-9cw4-5j65 / CVE-2026-68904), client-side resource leak, no reusable operator workflow.
  • OpenFGA ListUsers exclusion miss under wildcard+intersection (GHSA-g3pg-frfm-pr2m / CVE-2026-61709), folded into the June 11 OpenFGA cache-collision page as a second authorization-decision divergence.
  • Immutable.js trie-overflow DoS re-surfacing, Directus SSO user-enumeration re-surfacing, and the remaining sparse singles from the wave.

Reporting heuristics

  • For metadata-spoofing classes, report the exact metadata document served, the constructed authorization request (with resource/audience value redacted-real/synthetic-labeled), and where the issued token was observed leaving, control of the destination and disclosure of the response are separate claims.
  • For sanitizer gaps, attach the parsed-tree artifact showing the surviving property plus the property→attribute mapping that makes it executable; state which sibling was previously fixed to show family incompleteness.
  • For guard-parity findings, attach the decision table and the call-chain showing both routes hitting the same sink function; label DoS impact as availability unless a second sink is proven.

September 17 follow-up: HTML deserialization parsed in the live document fires attributes before sanitization (GHSA-qrfj-mgw8-j9c6 / CVE-2026-88976)

GHSA-qrfj-mgw8-j9c6 / CVE-2026-88976 (@platejs/core < 53.3.11, published 2026-09-17T20:32Z): Plate's core deserialization APIs parse untrusted HTML strings in the active document, so attributes that trigger browser behavior at parse time (image onerror, <img src=x> loads, custom-element upgrades) fire before the HTML is ever converted into editor nodes and before any downstream sanitization. Apps that deserialize cross-user HTML (shared docs, imported content, paste pipelines) execute script in the victim's origin at ingest, with no rendering step required.

  • Reusable check: for any rich-text/editor/library API that deserializes untrusted HTML, ask where the parse happens, not only what the sanitizer allows afterward, parsing into the live document (innerHTML on a detached-but-connected div, document.createRange().createContextualFragment on the live doc) is itself an active-content sink. Inert contexts (new DOMParser(), template elements, inert documents, still-live nodes) suppress resource loads and handler firing; verify with a canary <img src=owned-callback> that must not produce a network request during deserialize-only, in a two-user lab where user B deserializes user A's payload.
  • Same family as the innerHTML→textContent fake sanitizer (Sept 17 Vendure) and the xlink:href exact-name miss above: the sanitizer's node/attribute model only exists after parsing, any behavior that fires during parsing bypasses it by construction. When auditing editor deserializers, DOMParser/template-inertness is the control to test; innerHTML into a live document is the finding.

September 18 follow-up: markdown renderer-generated attributes bypass token-filtering XSS plugins (md-editor-v3, GHSA-3rm2-h79c-8qw6 / CVE-2026-84992)

GHSA-3rm2-h79c-8qw6 / CVE-2026-84992 (md-editor-v3, PoC reproduced on 6.5.3): MdPreview's registered highlight callback interpolates the fenced-code language/info string into both class="language-${language}" and an unquoted language=${language} attribute with no escaping. The shipped XSSPlugin filters only existing html_block/html_inline parser tokens, renderer-constructed HTML never passes through its node model, so the payload ```x"><details/open/ontoggle=alert(document.domain)> executes with the "XSS plugin" explicitly enabled. Sibling shipped-scheme miss: the legacy .doc renderer in @file-viewer/doc < 2.3.1 HTML-escaped hyperlink targets but had no URL-scheme allowlist, rendering live javascript:/vbscript:/data: links (CVE-2026-91127, GHSA-3753-m2x2-q623).

  • Reusable rule: a sanitizer that inspects parsed tokens cannot see markup the renderer builds. When auditing markdown/highlight pipelines, fuzz the fence info-string, heading anchors, and any class=/attribute-construction path separately from the raw-HTML path, the plugin's own enable-state is not a negative control. Test unquoted attributes first (no " needed to break out: <details/open/ontoggle=…> survives unquoted-attribute tokenization).
  • Escaping-vs-scheme axis for links: HTML-escaping a URL does not sanitize it; verify a scheme allowlist exists at the sink (the fixed version accepts only HTTP(S)/mail/tel/safe-relative/internal bookmarks and blocks external document links by default).

October 2 follow-up: rmcp fetches the WWW-Authenticate resource_metadata URL with no origin or private-network check (GHSA-c9xm-49cp-xcr9)

GHSA-c9xm-49cp-xcr9 (rmcp OAuth client, fixed in rmcp-v2.0.0): when an MCP server answers 401 with WWW-Authenticate: Bearer resource_metadata="http://…", extract_www_authenticate_params() accepts the absolute URL from the server-controlled header and GETs it with no same-origin and no private-network validation, localhost, RFC 1918, or cloud-metadata endpoints included. The victim's client performs the outbound request from the victim's own network context, so a malicious MCP server turns any rmcp-based client into an SSRF pivot; severity depends on the embedding app's network position and whether response parsing yields a success/failure oracle or chained fetch behavior.

  • This is the same file as the September 16 resource-binding spoof above, the OAuth metadata trust zone has now produced two distinct findings: what the client does with the metadata document (token relay) and whether it will fetch the URL the server names (SSRF). Durable rule for any OAuth/MCP client audit: every URL that appears in a server-authored response field (WWW-Authenticate, Link headers, discovery docs, JSON fields) is attacker-controlled input to your HTTP client, regardless of how spec-sanctioned the parameter name looks. Sweep checklist: (1) send a 401 with a resource_metadata pointing at an owned callback and record whether the client fetches it; (2) repeat with http://127.0.0.1:<port>/link-local shapes against your own listener to confirm no client-side deny-list exists; (3) diff which code path makes the request (client process vs sandboxed per-server container), same provenance question as the July 15 local-AI-app resource_metadata item on that page.
  • Generalizes past MCP: RFC 9728 discovery, OAuth authorization_endpoint/token_endpoint values, and OpenID jwks_uri are all the same pattern, server-named URLs fetched blindly. Patch eb435c6 + PR #935 add the origin/private-network gating; test pre-fix clients only in labs with owned callbacks, never at cloud-metadata targets.

October 6 follow-up: MCP TypeScript SDK sends stored credentials to whatever authorization server the MCP server names (GHSA-6qxp-vccf-f47h / CVE-2026-104850, 7.5)

The same trust zone as this page's Sept 16 resource-binding spoof and Oct 2 resource_metadata SSRF, now with a credential-relay leg that ships as an official SDK bug. @modelcontextprotocol/sdk 1.12.0-1.30.1 (and 2.x @modelcontextprotocol/client 2.0.0-2.1.0 in specific configurations): the OAuth client never bound stored tokens to the authorization server they came from, stored refresh_token/client_secret, and even a bundled provider's configured secret, were sent to whichever authorization server the (malicious or compromised) MCP server named in its discovery metadata. No user interaction; the client just replays the earlier sign-in's material to the attacker-chosen issuer.

What makes this an operator page item rather than a generic token-leak:

  • The fix documents its own bypasses, use that list as a test matrix. Upgrading is not sufficient in four states the advisory enumerates: (1) bundled providers (ClientCredentialsProvider, PrivateK***, CrossAppAccessProvider) still follow the server-named issuer unless the app passes expectedIssuer; (2) tokens/client-info persisted before the upgrade (file/keychain/db) carry no issuer field and go to the first server that names them; (3) custom OAuthClientProvider implementations that drop fields in saveTokens() keep dropping issuer; (4) fresh interactive sign-ins still go to the server-named authorization server even on 2.x, plus direct refreshAuthorization()/exchangeAuthorization() and skipIssuerMetadataValidation: true. Audit an MCP client app by checking it against all four, patched package version is a weak positive control here; expectedIssuer presence in source is the strong one.
  • Client-side probe (authorized lab only): run a malicious-MCP-server stand-in you own: serve discovery metadata whose authorization_servers names a second listener you own, then observe from which listener's token endpoint the client presents what. A pre-fix client replays the canary refresh token cross-issuer; the patched-and-configured client refuses or re-authenticates. This is the client-side twin of the rmcp server-authored-URL sweep above: same rule, any issuer/URL named in server-authored OAuth material is attacker input; binding must be explicit, and default-off bindings are the finding.
  • Supply-chain angle for engagements: MCP host apps (IDE plugins, agent runtimes) commonly hold a long-lived refresh token for a corporate IdP and connect user-added servers, exactly the two-precondition state the advisory requires. Inventory MCP client installs on red-team endpoints as a credential-theft pivot: grep lockfiles for @modelcontextprotocol/sdk 1.12-1.30.x, then grep app source for expectedIssuer.

October 23 follow-up: FastMCP doubles the trust-zone, wrapper OAuth providers with no issuer binding, and post-transform authorization skipped on direct calls (GHSA-vqqp-x5qm-5qp4, GHSA-7xgj-8392-5q4r, fastmcp 4.0.0-4.1.1 / 3.0.0-3.4.9)

Two fresh GHSAs land the September 16 and October 6 rules on FastMCP specifically: (1) Client-side credential relay, wrapper tier: ClientCredentialsOAuthProvider / PrivateKeyJWTO...ider expose no issuer parameter at all, an attacker-supplied or compromised MCP server advertises its own authorization server via discovery metadata and receives the client secret or signed JWT assertion. The 4.1.2 fix adds issuer= but leaving it unset remains supported (deprecation warning only), and cached tokens persisted pre-upgrade carry no issuer field, the exact "upgrade ≠ protection" four-state matrix from the TS SDK leg, replayed one layer up. (2) Server-side authorization, transform tier: tools/call direct-lookup applies server/session transforms then returns the component without re-running the transformed component's AuthCheck, listing authorizes post-transform, direct calls authorize (nothing). A low-privilege caller who knows the final transformed name executes policy-denied tools and retrieves protected resources; a denied concrete resource must also shadow matching proxy templates or the template fetches it upstream. Fix: authorize the final transformed component (3.4.10/4.1.2).

  • Durable axes: (1) wrapper/SDK layers re-introduce the base SDK's fixed bugs one tier up, this is now the third issuer-binding advisory in one lineage (Python MCP SDK GHSA-qx49, TS SDK GHSA-6qxp, FastMCP wrappers): when any auth class is re-wrapped, the binding parameters frequently get dropped from the wrapper constructor; grep wrapper __init__ signatures for which base-class security params survive. (2) A transform/middleware layer that mutates the object being authorized creates an authorization-vs-delivery mismatch, test listing-vs-direct-call parity on any component-transformed server: list as low-priv (should hide/deny), then call the hidden name directly; divergence = the finding. Same guard-after-transform rule as the day's Echo tunnel leg (which decision runs after the mutation?). (3) Opt-in fix parameters are findings-on-deployment: check installed FastMCP code for issuer= presence, not just version. Lab-bounded: in-process FastMCP server + two synthetic principals + your own discovery-metadata listener.

October 27 follow-up: FastMCP OpenAPIProvider, unencoded path-parameter substitution into URL templates turns every MCP tool call into credentialed SSRF with prefix escape (CVE-2026-32871 / GHSA-vv7q-7jx5-f767, critical, fastmcp < 3.2.0)

RequestDirector._build_url() substitutes OpenAPI path parameters into the path template by raw string replace (no URL-encoding), then resolves with urllib.parse.urljoin(). A path-param value carrying ../ sequences escapes the intended API prefix before resolution, the MCP client controls the final backend URL path through a parameter that should only fill one segment, and the request goes out with the provider's configured authorization headers (authenticated SSRF as a service). Third FastMCP leg on this page after the Oct 23 wrapper-OAuth pair.

Operator rules for MCP/OpenAPI wrapper surfaces:

  • Template-substitution-then-urljoin is a fingerprint, and it's everywhere. Audit grep: urljoin( downstream of a .format()/f-string/.replace() on a path template. urljoin re-resolves the entire path against the base whenever the substituted value starts with /, contains ../, or parses as an absolute URL (http://attacker/-shaped values in a path param win the join). Test battery per path parameter: ../admin, ..%2f, /absolute/override, http://owned-callback/x, and a bare newline, record final-URL observed at your listener, not what the client sent.
  • This is the Kiota delimiter-reformation family (July 24) in Python's stdlib dialect: the encoder that should exist (quote(value, safe='')) is what separates a segment-filler parameter from a URL-authoring parameter. Any MCP provider that fronts an internal API converts tool-arg trust into credentialed internal trust, enumerate all path/query parameters of proxied operations, not just obviously-search-shaped ones.
  • Cross-check with the page's standing rule that wrapper layers re-introduce bugs one tier up: even frameworks with safe JSON-body handling can carry an unsafe URL-construction leg; test the URL builder separately from the serializer.
  • Proof boundary: lab OpenAPI spec + owned callback listener; assert final-request-URL mismatch per parameter; never drive the provider's auth headers at real backend admin routes.

October 27 21:0xZ follow-up: MCP Python SDK triple-leg, server accepts wrong-audience tokens (opt-in fix), client leaks custom headers + bodies across cross-origin redirects, and client fetches server-chosen $ref URLs/files during result validation (GHSA-w4fh-qvv9-3v23 / CVE-2026-116684, GHSA-5h93-6whr-6q8j / CVE-2026-116685, GHSA-rwrf-2pqf-9j8j / CVE-2026-116686, mcp 1.10.0-1.29.1 / 2.0.0-2.1.1)

Three legs, one evening, all completing this page's MCP trust-zone map on the Python SDK:

  • Server-side bearer auth never checked audience (validate_token_resource didn't exist): where one authorization server issues tokens for several services, a valid token for any other service authenticates to your MCP server. The fix is off by default even on patched versions (validate_token_resource=True + resource_server_url + verifier returning AccessToken.resource, all three required).
  • Client transports followed cross-origin redirects carrying custom headers and bodies: X-API-Key-class headers and, on 307/308, the request body went to the redirect target (bare Authorization bearer was dropped by the HTTP lib, the custom headers leak). OAuth discovery/registration/token requests followed redirects the same way. Precondition to exploit: make a trusted endpoint redirect somewhere you influence (lapsed-domain redirect, proxy rule).
  • Client fetched server-chosen $ref URLs while validating tool results: a malicious server puts http:// or file:// $ref in a tool's outputSchema; jsonschema's default resolver fetches it from the client's network position on every call, SSRF/local-file-read oracle (content used only as schema, never echoed, blind), plus synchronous no-timeout fetch freezing every session in the process.

Operator rules:

  1. Patched-version fingerprinting is dead on this SDK, probe the binding, not the package. Leg 1's check is opt-in; the audit question for any installed MCP server is "does AuthSettings carry validate_token_resource=True?", exactly the Oct 23 issuer=-presence rule one layer down. Cross-service token replay probe (authorized lab): take any valid token from a sibling service on the same IdP and present it to the MCP server's endpoint; 200 = finding.
  2. Redirect legs need header-parity tables: for each MCP client transport, record which auth material survives a cross-origin 301/307 (custom header vs bearer vs body) and which transports (streamable HTTP, SSE, OAuth provider internals) even follow redirects. Then hunt the same asymmetry, custom headers kept, bearer dropped, in any agent-protocol HTTP client: the "safe" standard header hiding that the vendor's custom headers are the actual leak channel is a reusable report angle.
  3. Schema/material validation that resolves server-supplied references is a client-side SSRF generator, applies to JSON Schema $ref/$dynamicRef/$id, $merge, XML external entities, and any recursive resolvers in config loaders. Server-authored → client-fetched is the mirror of this page's rmcp resource_metadata leg: direction flipped (server→client instead of client→server), same rule that server-authored URLs are attacker input. Passive detection from the server side: serve an outputSchema with an owned-listener $ref and watch which clients call you mid-tool-execution.
  4. The DoS shape is a test, not just a bug: a $ref target that accepts-then-stalls freezes all client sessions, timing-behavior probe for vulnerable clients without needing an exfil read.
  5. Same-wave, adjacent package: MCP TypeScript SDK HTTP transports had no body-size or batch-length cap until 1.30.1, one unauthenticated POST of [{...}x10k] head-of-line-blocks the server, and express.json() does not cap batch length (tracked-not-published note on the Sept 15 page now promotes as context for this trio: unbounded JSON-RPC batch arrays are the cheap first fuzz on any Streamable HTTP endpoint).

November 19 23:1xZ follow-up: MCP Python SDK OAuth client, the server you connect to picks where your credentials go (4th leg of the issuer-binding lineage) (CVE-2026-115563 / GHSA-qx49-fqc8-xw99, high, mcp 1.9.1-1.29.1 / 2.0.0-2.1.1, fixed 2.2.0 / 1.30.0)

The advisory this page's Oct 23 FastMCP leg predicted one tier down finally landed with full detail: the Python SDK's mcp.client.auth providers let the MCP server decide where the client's OAuth credentials are sent. Two defect classes: (1) the discovered authorization-server metadata issuer was not validated on every discovery path (1.x: no check anywhere; 2.x: both the legacy no-protected-resource-metadata fallback and the 403 insufficient_scope path unchecked), and (2) stored/pre-provisioned client credentials were not bound to the authorization server they belong to. A malicious MCP server names its own AS in protected-resource metadata, or publishes none and serves metadata spoofing the user's real AS as issuer, and receives the client_secret, authorization code, PKCE code_verifier, or a signed PrivateKeyJWT client assertion meant for the real server.

The reporting-critical part is the fix semantics, which match this page's standing "upgrade != protection" matrix from the TS SDK leg and the FastMCP wrapper leg:

  • ClientCredentialsOAuthProvider and PrivateKeyJWTO...ider gained an issuer= parameter but omitting it keeps the vulnerable behavior, now behind a DeprecationWarning that Python hides by default (on 1.30.0 it is literally invisible unless warnings are enabled), becoming required only in 3.0. Auditing a deployed MCP client therefore means grepping installed call sites for issuer=, not checking the pip version. The deprecated 1.x RFC7523OAuthClientProvider has no issuer option at all, presence of that class name in a dependency tree is a finding on any version.
  • Fixed clients resolve the expected issuer before fetching AS metadata on every path, refuse mismatched metadata with OAuthFlowError, and discard cached registrations bound to a different issuer.

Operator rules (extending the Oct 23 rule set rather than repeating it):

  1. The four-tier issuer-binding lineage is complete: MCP Python SDK server-side audience (Oct 27), TS SDK client (Oct 6), FastMCP wrapper (Oct 23), Python SDK client (this leg). Audit any agent stack by tier: base SDK version and issuer=/validate_token_resource presence, wrapper constructors that drop base-class security params, and app-level provider instantiation. A version-bump-only remediation fails all four tiers.
  2. Server-advertised discovery metadata is attacker input in every protocol that tolerates it. Passive detection from the malicious-server seat (authorized lab): serve protected-resource metadata pointing token requests at your listener and log what the connecting client sends before any user interaction; the unattended providers (ClientCredentials, PrivateKeyJWT) fire immediately, the interactive OAuthClientProvider scores 6.5 because a human must start sign-in. Credential-shape table per provider: secret / code+verifier / signed assertion, which paths leak which.
  3. Hidden-warnings audit: any security fix gated on DeprecationWarning is an opt-in fix in practice. For target-side agent audits, run the client's dependency with PYTHONWARNINGS=always (or python -W error::DeprecationWarning) and treat surfaced warnings as confirmed missing-binding evidence. Validation boundary: in-process lab MCP server + your own discovery-metadata/token listener + synthetic client secrets; never point a real IdP's credentials at an unowned endpoint, including your own test ones shaped like production.