INCIDENT MAP

Browse / MCP and Tool Server Flaws / CVE-2026-111769

MCP TypeScript client SDK: HTTP client transports and OAuth requests followed cross-origin redirects and re-sent custom headers and request bodies

CVE-2026-111769 ยท 2026-10-20 moderate

Class
MCP and Tool Server Flaws (filed by a model that read the advisory)
Technique
Data exfiltration
Also involves
Sensitive Data Disclosure
Affected
@modelcontextprotocol/sdk (npm)
CVSS
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
EPSS
0.4% chance of exploitation in 30 days

How it works, in short

Cross-origin redirects cause the client to resend custom headers and request bodies, including OAuth secrets, to an attacker-chosen origin. (Our summary, written by a model. The source text is below.)

Details

Summary

In affected versions, the SDK's HTTP client transports and OAuth requests followed redirects to any origin.

If an MCP server or authorization server redirected a request to another origin, that origin received custom request headers (such as an X-API-Key set in requestInit.headers) and the mcp-session-id header. On a 307 or 308 it also received the request body, including OAuth token requests with their refresh_token and client_secret.

On current runtimes fetch already drops the Authorization header across origins.

Am I affected?

Yes, if your application uses StreamableHTTPClientTransport, SSEClientTransport, or the SDK's OAuth client functions such as auth(). stdio clients are not affected.

Affected versions:

Fix

Upgrade to:

Redirects are now followed only within the same origin, and not at all in browsers. If your MCP server or authorization server redirects to another origin on purpose, configure the final URL instead. Setting redirectPolicy: 'follow' on a transport restores the old behaviour and the exposure.

If a redirect may have reached a host you do not control, rotate the API keys and client_secret your application held and revoke its tokens.

If you cannot upgrade yet, pass a fetch that refuses redirects, for example (url, init) => fetch(url, { ...init, redirect: 'error' }).

References

Source: GitHub Advisory Database, used under CC BY 4.0.