Skip to content
HackerNoon·Indexed by this site · Originally published· Event →SelectedAttention42

The MCP server selected the token endpoint, and the two official SDKs trusted it

The MCP Server Chose the Token Endpoint. Two Official SDKs Trusted It. | HackerNoon

AI summary

In April 2026, researchers independently reported OAuth credential leakage vulnerabilities in the official MCP Python and TypeScript SDKs; both vulnerabilities have a CVSS v3.1 score of 7.5. A malicious or compromised remote MCP server can abuse the OAuth discovery mechanism to redirect credentials belonging to other authorization servers to an attacker-controlled endpoint. The root cause is that the SDK does not verify the binding between credentials and the selected authorization server, which may leak client secrets, refresh tokens, authorization codes, PKCE verifiers and signed client assertions. The official advisory emphasizes that upgrading dependencies alone is not enough; applications also need to explicitly configure issuer or expectedIssuer, and clean up or migrate stored credentials that lack issuer binding.

Why it was selected

The author sorts out the vulnerability paths and fix principles of two CVEs, and points out that upgrading the SDK alone is not enough; the issuer also needs to be configured and stored credentials migrated.

Read originalhackernoon.com