CVE-2026-111769
Model Context Protocol TypeScript SDK: HTTP client transports and OAuth requests followed cross-origin redirects and re-sent custom headers and request bodies
The Model Context Protocol TypeScript SDK provides TypeScript client and server implementations of the Model Context Protocol. Prior to 1.32.0 in @modelcontextprotocol/sdk and from 2.0.0 until 2.3.0 in @modelcontextprotocol/client, the HTTP client transports and OAuth client requests followed redirects to a different origin while retaining custom request headers and, for HTTP 307 or 308 responses, request bodies. The affected surfaces are StreamableHTTPClientTransport, SSEClientTransport, and OAuth client functions such as auth(). The trigger is an HTTP redirect to another origin. Custom headers and mcp-session-id can be re-sent to the redirected origin. HTTP 307 and 308 redirects can also re-send the request body. OAuth request bodies can contain refresh_token and client_secret values. Current runtimes already strip the Authorization header across origins. stdio clients do not use the affected HTTP path. A malicious or compromised MCP or authorization server could therefore receive API keys, session identifiers, OAuth refresh tokens, or OAuth client secrets. Restoring unrestricted redirect following after upgrading restores the exposure. This issue is fixed in @modelcontextprotocol/sdk 1.32.0 and @modelcontextprotocol/client 2.3.0.
Fixes and workarounds
Fix
@modelcontextprotocol/sdk (npm): GitHub reports patched versions 1.32.0. Check the advisory for the affected release branch.
Source: GitHub GHSA-6prh-2h8m-c8cwFix
@modelcontextprotocol/client (npm): GitHub reports patched versions 2.3.0. Check the advisory for the affected release branch.
Source: GitHub GHSA-6prh-2h8m-c8cwFix
@modelcontextprotocol/sdk (npm): OSV reports a fixed version 1.32.0. Check the advisory for supported release branches.
Source: OSV GHSA-6prh-2h8m-c8cwFix
@modelcontextprotocol/client (npm): OSV reports a fixed version 2.3.0. Check the advisory for supported release branches.
Source: OSV GHSA-6prh-2h8m-c8cwAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| typescript-sdk modelcontextprotocol |
< 1.32.0 (affected) | CNA: GitHub_M |
| sdk @modelcontextprotocol |
< 1.32.0 (affected) | CNA: GitHub_M |
| client @modelcontextprotocol |
>= 2.0.0, < 2.3.0 (affected) | CNA: GitHub_M |
@modelcontextprotocol/sdk@modelcontextprotocol/sdk
npm |
< 1.32.0 (affected, GitHub advisory range) | GitHub GHSA-6prh-2h8m-c8cw |
@modelcontextprotocol/client@modelcontextprotocol/client
npm |
>= 2.0.0, < 2.3.0 (affected, GitHub advisory range) | GitHub GHSA-6prh-2h8m-c8cw |
@modelcontextprotocol/sdk@modelcontextprotocol/sdk
npm |
≥ 0; < 1.32.0 (affected, semver); OSV events: introduced 0; fixed 1.32.0Source events (semver)
Other versions: unaffected |
OSV GHSA-6prh-2h8m-c8cw |
@modelcontextprotocol/client@modelcontextprotocol/client
npm |
≥ 2.0.0; < 2.3.0 (affected, semver); OSV events: introduced 2.0.0; fixed 2.3.0Source events (semver)
Other versions: unaffected |
OSV GHSA-6prh-2h8m-c8cw |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 6.5 medium |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N | CNA: GitHub_M |
| 3.1 / 6.5 medium |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-6prh-2h8m-c8cwCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/modelcontextprotocol/typescript-sdk/pull/2901CNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/pull/2902CNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/commit/30bfe5139f4b0825c90cd725f9a7e3f9af5e120dCNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/commit/433eb413dc305ebeb93b8ebcde0095a8fc0d5fa0CNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/1.32.0CNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/[email protected]CNA: GitHub_M · x_refsource_MISC
- https://github.com/modelcontextprotocol/typescript-sdk/commit/30bfe5139f4b0825c90cd725f9a7e3f9af5e120d[email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/commit/433eb413dc305ebeb93b8ebcde0095a8fc0d5fa0[email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/pull/2901[email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/pull/2902[email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/1.32.0[email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/@modelcontextprotocol/[email protected][email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-6prh-2h8m-c8cw[email protected]
- https://github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-6prh-2h8m-c8cwGitHub Security Advisories · advisory
- https://github.com/advisories/GHSA-6prh-2h8m-c8cwOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-6prh-2h8m-c8cwOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.