GHSA-6prh-2h8m-c8cw: Infoleak

Published Oct 20, 2026
·
Updated

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 refreshtoken and clientsecret.

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

Affected Software

2 affected componentsFixes available
npm/@modelcontextprotocol/client>=2.0.0<2.3.0
2.3.0
npm/@modelcontextprotocol/sdk<1.32.0
1.32.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@modelcontextprotocol/client to a version that resolves this vulnerability.

    Fixed in 2.3.0
  2. Upgrade

    Upgrade npm/@modelcontextprotocol/sdk to a version that resolves this vulnerability.

    Fixed in 1.32.0
  3. Upgrade

    Upgrade @modelcontextprotocol/sdk to a version that resolves this vulnerability.

    Fixed in 1.32.0
  4. Upgrade

    Upgrade @modelcontextprotocol/client to a version that resolves this vulnerability.

    Fixed in 2.3.0
  5. Configuration

    If you cannot upgrade yet, pass a fetch implementation that refuses redirects.

    MCP client transport fetch = (url, init) => fetch(url, { ...init, redirect: 'error' })
  6. Operational

    If a redirect may have reached a host you do not control, rotate the API keys and client_secret held by the application and revoke its tokens.

Event History

Oct 20, 2026
Advisory Published
via GitHub·06:26 PM
Data Sourced
via GitHub·06:26 PM
DescriptionSeverityWeaknessAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203