MCP TypeScript SDK fixes redirect and OAuth credential flaws
Start here
On October 2, 2026, the Model Context Protocol reference SDKs published three security advisories in their respective repositories, fixing issues where the HTTP client transport followed redirects to arbitrary origins, and where the TypeScript SDK's experimental task store did not validate session ownership. The TypeScript redirect flaw, GHSA-6prh-2h8m-c8cw, is medium severity with CVSS 3.1 6.5, affecting @modelcontextprotocol/sdk up to 1.31.0. The subsequently released version 1.32.0 adds a same-origin restriction on redirects: the HTTP client transport only follows redirects when same-origin (same scheme, host and port; http to https on the same host is allowed); if a deployed endpoint redirects to a different host or port, the final URL must be configured, or redirectPolicy: 'follow' set on StreamableHTTPClientTransport or SSEClientTransport. On October 6, a GitHub security advisory disclosed that in affected versions of the TypeScript SDK, the OAuth client lets the MCP server decide which authorization server credentials are sent to, and the credentials are not bound to the authorization server they belong to; a malicious or compromised MCP server can specify its own authorization server, and the client will, without user interaction, send the refresh_token and client_secret saved from a previous login, or the client_secret or signed assertion configured in a built-in provider.
Generated by AI from reports · Updated 2026-10-19
Storyline
- · 3 reports· Attention44
MCP TypeScript SDK fixes redirect and OAuth credential flawsThis event
- · 1 reports· Attention42MCP TypeScript SDK cross-origin redirect leaks request headers and request body
- · 1 reports· Attention35MCP TypeScript SDK fixes task authorization vulnerability
- · 1 reports· Attention41MCP TypeScript SDK missing token audience validation
- · 2 reports· Attention41MCP TypeScript SDK exposed to memory exhaustion vulnerability
- · 1 reports· Attention45MCP TypeScript SDK cross-client message leakage vulnerability
- · 3 reports· Attention42MCP Python SDK vulnerability: issuer still must be passed after upgrade
Latest developments
Progress timeline
- GitHub Security AdvisoriesSelectedMCP TypeScript SDK fixes vulnerability where OAuth client credentials could be stolen by a malicious MCP server
A GitHub security advisory disclosed that in affected versions of the MCP TypeScript SDK, the OAuth client lets the MCP server decide which authorization server credentials are sent to, and credentials are not bound to the authorization server they belong to. A malicious or compromised MCP server can specify its own authorization server, and the client, without user interaction, will send previously saved refresh_token and client_secret from prior logins, or client_secret or signed assertions from built-in provider configurations, to that server. Affected versions are @modelcontextprotocol/sdk 1.12.0 through 1.30.1, and some scenarios in @modelcontextprotocol/client 2.0.0 through 2.1.0; MCP servers built with the SDK and stdio clients are not affected. The advisory recommends that clients that may have connected to untrusted MCP servers rotate keys and revoke tokens, and if unable to upgrade, only connect to trusted servers.
- MCP TypeScript SDKMCP TypeScript SDK 1.32.0 released, adding same-origin redirect restrictions and a tool call argument limit
MCP TypeScript SDK 1.32.0 released. The HTTP client transport now only follows redirects when same-origin (same scheme, host, and port; http to https on the same host is allowed). If a deployed endpoint redirects to another host or port, you need to configure the final URL, or set redirectPolicy: 'follow' on StreamableHTTPClientTransport or SSEClientTransport. In browsers, redirect requests without this option set will fail. Two new options are added, both disabled by default: McpServer's maxToolInputElements limits the number of array elements and object members in tool call arguments; requireBearerAuth's expectedResource only accepts tokens issued for that server (the token's audience).
- Date not givenal-ice.aiSelectedMCP SDK fixes cross-origin redirect and task session defects; three advisories did not enter CVE and OSV
The Model Context Protocol reference SDKs published three security advisories in their respective repositories on October 2, 2026, fixing issues where the HTTP client transport followed redirects from arbitrary sources and where the TypeScript SDK's experimental task store did not verify session ownership. In the redirect flaw, the TypeScript side GHSA-6prh-2h8m-c8cw is medium, CVSS 3.1 6.5, affecting @modelcontextprotocol/sdk up to 1.31.0 and @modelcontextprotocol/client 2.0.0 through 2.2.0, fixed in 1.32.0 and 2.3.0; the Python side GHSA-5h93-6whr-6q8j is medium, CVSS 3.1 5.9, affecting mcp 1.8.0 through 1.29.1 and 2.0.0 through 2.1.1, fixed in 1.30.0 and 2.2.0.