Skip to content
EventPast event

MCP TypeScript SDK cross-origin redirect leaks request headers and request body

1 reports1 reporting sourcesLatest report

Start here

AI overview

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

Developments on the same subject and issue, from earliest to latest

7 events
  1. · 3 reports· Attention44
    MCP TypeScript SDK fixes redirect and OAuth credential flaws
  2. · 1 reports· Attention42

    MCP TypeScript SDK cross-origin redirect leaks request headers and request bodyThis event

  3. · 1 reports· Attention35
    MCP TypeScript SDK fixes task authorization vulnerability
  4. · 1 reports· Attention41
    MCP TypeScript SDK missing token audience validation
  5. · 2 reports· Attention41
    MCP TypeScript SDK exposed to memory exhaustion vulnerability
  6. · 1 reports· Attention45
    MCP TypeScript SDK cross-client message leakage vulnerability
  7. · 3 reports· Attention42
    MCP Python SDK vulnerability: issuer still must be passed after upgrade

Progress timeline

Oct 21
  1. GitHub Security AdvisoriesSelected
    MCP 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.