highresolved

MCP TypeScript OAuth discovery leaks credentials to an attacker endpoint

The OAuth client can accept authorization-server information supplied by an MCP endpoint without binding saved credentials to their legitimate issuer. A hostile endpoint can redirect credential exchange to infrastructure it controls.

The OAuth client can accept authorization-server information supplied by an MCP endpoint without binding saved credentials to their legitimate issuer. A hostile endpoint can redirect credential exchange to infrastructure it controls.

This is a maintainer-documented vulnerability disclosure, not evidence of exploitation against a named customer. Affected ranges: @modelcontextprotocol/sdk >= 1.12.0, < 1.31.0; @modelcontextprotocol/client >= 2.0.0, < 2.2.0. The maintainer lists patched releases: @modelcontextprotocol/client 2.2.0; @modelcontextprotocol/sdk 1.31.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-6qxp-vccf-f47hCVE-2026-104850