Model Context Protocol TypeScript SDK: HTTP client transports and OAuth requests followed cross-origin redirects and re-sent custom headers and request bodies
- CVE-2026-111769
- GHSA-6prh-2h8m-c8cw
- EUVD-2026-117802
Description
The Model Context Protocol TypeScript SDK provides TypeScript client and server implementations of the Model Context Protocol. Prior to 1.32.0 in @modelcontextprotocol/sdk and from 2.0.0 until 2.3.0 in @modelcontextprotocol/client, the HTTP client transports and OAuth client requests followed redirects to a different origin while retaining custom request headers and, for HTTP 307 or 308 responses, request bodies. The affected surfaces are StreamableHTTPClientTransport, SSEClientTransport, and OAuth client functions such as auth(). The trigger is an HTTP redirect to another origin. Custom headers and mcp-session-id can be re-sent to the redirected origin. HTTP 307 and 308 redirects can also re-send the request body. OAuth request bodies can contain refresh_token and client_secret values. Current runtimes already strip the Authorization header across origins. stdio clients do not use the affected HTTP path. A malicious or compromised MCP or authorization server could therefore receive API keys, session identifiers, OAuth refresh tokens, or OAuth client secrets. Restoring unrestricted redirect following after upgrading restores the exposure. This issue is fixed in @modelcontextprotocol/sdk 1.32.0 and @modelcontextprotocol/client 2.3.0.
Text from the CVE.org record.
Recommendation
@modelcontextprotocol/client
- If you run a version from 2.0.0 to before 2.3.0update to 2.3.0 or laterMinor version change: check the release notes@modelcontextprotocol/client 2.3.0 on its registry (opens in a new tab)
@modelcontextprotocol/sdk
- If you run a version before 1.32.0update to 1.32.0 or later@modelcontextprotocol/sdk 1.32.0 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
@modelcontextprotocol client
Affected versions Fixed in >= 2.0.0, < 2.3.0 none stated @modelcontextprotocol sdk
Affected versions Fixed in < 1.32.0 none stated modelcontextprotocol typescript-sdk
Affected versions Fixed in < 1.32.0 none stated @modelcontextprotocol/clientnpm
Affected versions Fixed in from 2.0.0 to before 2.3.0 2.3.0 @modelcontextprotocol/sdknpm
Affected versions Fixed in before 1.32.0 1.32.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.