mediumresolved

MCP TypeScript redirects expose custom headers and OAuth bodies

Cross-origin redirects can carry application-added headers and, for redirects that preserve the method, request bodies to another host. This can expose custom API keys and OAuth exchange material; the ordinary Authorization header is a separate case.

Cross-origin redirects can carry application-added headers and, for redirects that preserve the method, request bodies to another host. This can expose custom API keys and OAuth exchange material; the ordinary Authorization header is a separate case.

This is a maintainer-documented vulnerability disclosure, not evidence of exploitation against a named customer. Affected ranges: @modelcontextprotocol/sdk < 1.32.0; @modelcontextprotocol/client >= 2.0.0, < 2.3.0. The maintainer lists patched releases: @modelcontextprotocol/client 2.3.0; @modelcontextprotocol/sdk 1.32.0.

Takeaway

Check the deployed package and its configuration against the advisory. Apply the listed fix on a supported release line and verify the trust boundary with an untrusted client or repository.

Sources

mcptsghsa-6prh-2h8m-c8cwCVE-2026-111769