[ ezo labs // research ]

The MCP TypeScript SDK’s server-side OAuth proxy still follows the redirect its CVE fixed on the client

CVE-2026-111769 fixed cross-origin OAuth redirects in the MCP TypeScript SDK’s client. ProxyOAuthServerProvider in the same package is unchanged and still posts secrets to the redirect target.

contentsSummary
  1. Summary
  2. The gap
  3. Reproduction
  4. Impact
  5. Affected versions
  6. Fix status
  7. The vendor’s record
  8. Timeline
  9. References
  10. Disclosure

abstract

CVE-2026-111769 (GHSA-6prh-2h8m-c8cw) reports that the MCP TypeScript SDK’s HTTP client transports and OAuth requests followed redirects to any origin, and that on a 307 or 308 the request body, including OAuth token requests with their refresh_token and client_secret, reached the redirect target. The fix shipped in @modelcontextprotocol/sdk 1.32.0 with the unqualified note “Redirects are now followed only within the same origin, and not at all in browsers.” The fix commits changed client files only; ProxyOAuthServerProvider, exported from the same package, is byte-identical in 1.31.0, 1.32.0 and 1.32.2 and still calls bare fetch at four sites. We ran a two-origin harness on all three versions: all four provider operations deliver their bodies to the second origin on 1.32.0, while the client sibling refuses the same redirect. Wiring the package’s own fetchWithinOrigin guard into the provider stops all four leaks.

Summary

The fix was in the package. It changed the client. The server provider in the same package kept its bare fetch calls, and the package’s own guard was already exported.

The gap

The server-side OAuth proxy calls bare fetch at four sites, so a 307/308 from the configured authorization server delivers the client secret, authorization code, PKCE verifier, refresh token and access token to a second origin.

  • src/server/auth/providers/proxyProvider.ts (v1.x, at 3b73021):84, 106, 181, 222: ProxyOAuthServerProvider calls bare (this._fetch ?? fetch) at four sites: exchangeAuthorizationCode, exchangeRefreshToken, revokeToken, registerClient.
  • packages/server-legacy/src/auth/providers/proxyProvider.ts (main, at 1e608cae):86, 108, 183, 224: The same four bare-fetch sites on the main branch.
  • src/shared/transport.ts: The fix’s fetchWithinOrigin guard is exported from @modelcontextprotocol/sdk/shared/transport.js in 1.32.0, but the provider never wires it in.

Reproduction

The npm-published tarballs were installed under aliases; a two-loopback-origin harness answers the configured OAuth endpoints with 307/308 to the second origin, which records method, headers and body; the four provider operations are exercised, with a same-origin 307 control, the package’s own fetchWithinOrigin wired in, and a bare-fetch runtime control. CJS and ESM builds both run.

On 1.32.0 all four operations deliver their bodies to the second origin: exchangeAuthorizationCode (grant_type, client_id, code, client_secret, code_verifier), exchangeRefreshToken (grant_type, client_id, refresh_token, client_secret), revokeToken (token, client_id, client_secret), registerClient (full client metadata, plus a caller-supplied secret). The same package’s client-side exchangeAuthorization given the same 307 returns ServerError: HTTP 307: Redirect to … not followed and the second origin receives nothing. 1.31.0 and 1.32.2 behave identically to 1.32.0 on the server side.

Impact

The configured authorization server, or anything that can answer in its place, answers a token or registration request with a 307/308 to another origin, and the proxy re-sends the client secret, authorization code, PKCE verifier, refresh token and access token to that target, then parses the target’s response as the authorization server’s. The authorization server already receives those values on the same request, so this is a redirect-handling hardening gap in the proxy, not a boundary between the deployment owner and a separate user role.

Affected versions

@modelcontextprotocol/sdk 1.31.0, 1.32.0 and 1.32.2 (current latest) carry the unchanged server provider. @modelcontextprotocol/client 2.x has no server provider, so the server-side gap exists only in the 1.x SDK package.

Fix status

No release carries the server-side fix. Apply fetchWithinOrigin(this._fetch ?? fetch) at proxyProvider.ts:84,106,181,222 (v1.x) or :86,108,183,224 (main). The guard is already exported from @modelcontextprotocol/sdk/shared/transport.js in 1.32.0.

The vendor’s record

No maintainer reply. CVE-2026-111769’s own fix note promises same-origin redirects without a client qualifier; the CVE title says “Model Context Protocol TypeScript SDK”, without the “client” qualifier the GHSA summary carries. Whether the server provider is in scope for the CVE or needs a second advisory is the maintainers’ call.

Timeline

  • 2026-11-03T08:44:22Z: Private report filed (GHSA-c48x-w8w7-66gm)
  • 2026-11-03T08:45:17Z: Tested-fix offer commented (352796)
  • 2026-11-11T20:36:07Z: Publication ask commented (369526)
  • 2026-11-11T23:10:55Z: Class-anchored follow-up commented (369700)
  • 2026-11-12: Notice naming 2026-11-17T16:00Z as the planned publication
  • 2026-11-24T06:36:19Z: This write-up published
  • 2026-11-24: MITRE CNA-LR request submitted

References

Disclosure

This note is an independent write-up. It is published on 2026-11-24 as the public reference for a CVE request. The private advisory and this write-up describe the same defect; the vendor advisory named above is the authority where one exists.

revisionsfirst published , last updated
revisions to this post
datechange
First publication.

cite this

EZO Labs Security. The MCP TypeScript SDK’s server-side OAuth proxy still follows the redirect its CVE fixed on the client. EZO Labs Inc, research report EZO-R-2026-14, 24 November 2026. https://ezolabs.net/research/mcp-sdk-proxy-oauth-redirect

@techreport{mcpsdkproxyoauthredirect,
  title       = {The MCP TypeScript SDK's server-side OAuth proxy still follows the redirect its CVE fixed on the client},
  author      = {{EZO Labs Security}},
  institution = {EZO Labs Inc},
  type        = {Research report},
  number      = {EZO-R-2026-14},
  year        = {2026},
  month       = nov,
  url         = {https://ezolabs.net/research/mcp-sdk-proxy-oauth-redirect}
}

licensed under CC BY 4.0.

authors

next

  1. The Relay Trap

    Trying to keep pace with your AI agents is a loop you cannot win. The fix is not reviewing faster; it is changing what reaches you.

all research