MCP TypeScript SDK cross-origin redirect leaks request headers and request body
Start here
A GitHub security advisory disclosed that the MCP TypeScript client SDK's HTTP transport and OAuth requests follow redirects pointing to arbitrary origins, causing the target origin to receive custom request headers (such as X-API-Key set via requestInit.headers) and the mcp-session-id header. The affected versions are all versions of @modelcontextprotocol/sdk before 1.32.0, and versions of @modelcontextprotocol/client before 2.3.0; the relevant versions have been fixed.
Generated by AI from reports · Updated 2026-10-21
Storyline
- · 3 reports· Attention44MCP TypeScript SDK fixes redirect and OAuth credential flaws
- · 1 reports· Attention42
MCP TypeScript SDK cross-origin redirect leaks request headers and request bodyThis event
- · 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
Progress timeline
- GitHub Security AdvisoriesSelectedMCP TypeScript client SDK follows cross-origin redirects and resends request headers and request bodies, fixed in 1.32.0 and 2.3.0
A GitHub security advisory discloses that the HTTP transport and OAuth requests of the MCP TypeScript client SDK follow redirects pointing to arbitrary origins, causing the target origin to receive custom request headers (such as X-API-Key set via requestInit.headers) and the mcp-session-id header. Affected versions are all versions of @modelcontextprotocol/sdk before 1.32.0, and @modelcontextprotocol/client from 2.0.0 to before 2.3.0; applications using StreamableHTTPClientTransport, SSEClientTransport, or OAuth client functions such as auth() are affected, while stdio clients are not affected.