---
id: "CVE-2026-111769"
kind: "vulnerability"
aliases: ["CVE-2026-111769", "GHSA-6prh-2h8m-c8cw"]
title: "MCP TypeScript client SDK: HTTP client transports and OAuth requests followed cross-origin redirects and re-sent custom headers and request bodies"
severity: "medium"
cvss: 6.5
epss: null
exploited: false
status: "open"
category: "ai-tooling"
products: [{"name": "@modelcontextprotocol/sdk", "fixed": ["1.32.0"], "affected": "< 1.32.0", "ecosystem": "npm"}, {"name": "@modelcontextprotocol/client", "fixed": ["2.3.0"], "affected": ">= 2.0.0, < 2.3.0", "ecosystem": "npm"}]
ecosystems: ["npm"]
tags: ["ai-tooling", "cwe-200", "mcp", "npm", "oauth", "typescript"]
not_affected_if: ["no-http-transport", "stdio-only"]
published_at: "2026-10-20T18:26:30+00:00"
first_seen_at: "2026-10-23T19:11:32+00:00"
updated_at: "2026-10-23T20:56:21+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-6prh-2h8m-c8cw", "first_seen_at": "2026-10-23T19:11:32+00:00"}]
---

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

The MCP TypeScript SDK's HTTP transports and OAuth client followed redirects to any origin and re-sent custom headers, the mcp-session-id header, and on 307/308 the request body. An attacker who can redirect MCP or authorization server traffic gets those headers and body, including OAuth refresh_token and client_secret.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- npm:@modelcontextprotocol/sdk affected < 1.32.0 fixed 1.32.0
- npm:@modelcontextprotocol/client affected >= 2.0.0, < 2.3.0 fixed 2.3.0

## How to check

Check whether your package.json or lockfile pins @modelcontextprotocol/sdk below 1.32.0 or @modelcontextprotocol/client between 2.0.0 and 2.2.0.

## Fix

Upgrade @modelcontextprotocol/sdk to 1.32.0 or later, or @modelcontextprotocol/client to 2.3.0 or later.
If a redirect may have reached a host you do not control, rotate the API keys and client_secret and revoke tokens.

## Timeline

- 2026-10-23T19:11:32+00:00 ghsa https://github.com/advisories/GHSA-6prh-2h8m-c8cw

## From the sources

### 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:

- `@modelcontextprotocol/sdk` all versions through 1.31.0
- `@modelcontextprotocol/client` 2.0.0 through 2.2.0

### Fix
Upgrade to:

- 1.x: `@modelcontextprotocol/sdk` 1.32.0 or later
- 2.x: `@modelcontextprotocol/client` 2.3.0 or later

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' })`.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
