GHSA-6prh-2h8m-c8cw: MCP TypeScript client SDK: HTTP client transports and OAuth requests followed cross-origin redirects and re-sent custom headers and request bodies
- Identifiers
- CVE-2026-111769GHSA-6prh-2h8m-c8cw
- Published
- Record updated
- Affected
- @modelcontextprotocol/client >= 2.0.0, < 2.3.0, fixed in 2.3.0, released October 2, 2026, 18 days before disclosure
- @modelcontextprotocol/sdk < 1.32.0, fixed in 1.32.0, released October 2, 2026, 18 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.4%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
Affected versions of the MCP TypeScript SDK, including @modelcontextprotocol/sdk through 1.31.0 and @modelcontextprotocol/client 2.0.0 through 2.2.0, followed HTTP redirects to any origin in StreamableHTTPClientTransport, SSEClientTransport and the OAuth client functions such as auth(). A cross-origin redirect sent custom headers such as X-API-Key and the mcp-session-id header to the new origin, and on a 307 or 308 response it also sent the request body, including OAuth refresh_token and client_secret values. stdio clients are not affected.
Mitigation
Upgrade @modelcontextprotocol/sdk to 1.32.0 or later, or @modelcontextprotocol/client to 2.3.0 or later. Redirects are now followed only within the same origin, and not at all in browsers. If a redirect may have reached a host you do not control, rotate the API keys and client_secret and revoke tokens. If you cannot upgrade yet, pass a fetch that refuses redirects, for example (url, init) => fetch(url, { ...init, redirect: 'error' }).
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- @modelcontextprotocol/clientnpmNo LLM dependency detected, 2 tracked dependents
- @modelcontextprotocol/sdknpmLLM dependency since 2024-11-11, 19 tracked dependents
Topics
Related items
- MediumCVE-2026-139894: davila7 claude-code-templates missing authentication in Claude API proxySame vendor, NVD/CVE Database
- HighGHSA-qx49-fqc8-xw99: Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP serverSame vendor, GitHub Advisory Database
- HighCVE-2026-111770: Model Context Protocol TypeScript SDK misroutes responses across clientsSame vendor, NVD/CVE Database
- HighCVE-2026-88968: Claude Code Edit tool symlink race overwrites files outside workspace on macOSSame vendor, NVD/CVE Database
- HighCVE-2026-88066: Claude Desktop on Windows git.exe execution via search pathSame vendor, NVD/CVE Database