Skip to content

CVE-2026-104850 MCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP server

HighCVSS 7.5 EPSS 0.28%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
Red Hat

Description

MCP TypeScript SDK is the official TypeScript SDK for Model Context Protocol servers and clients. Starting in version 1.12.0 and prior to versions 1.31.0 and 2.2.0, the SDK's OAuth client support let the MCP server a client connected to decide which authorization server received the client's OAuth credentials. Stored and pre-provisioned credentials were not bound to the authorization server they belong to. A malicious or compromised MCP server could name its own authorization server in its protected resource metadata. Without any user interaction, the client would send that server the refresh_token and client_secret stored from an earlier sign-in (1.x), or the configured client_secret or signed assertion of a bundled non-interactive provider (1.x and 2.x). Only those applications that use the SDK as an MCP client over HTTP with an authProvider: your own OAuthClientProvider, or the bundled ClientCredentialsProvider, PrivateKeyJwtProvider, StaticPrivateKeyJwtProvider or (2.x) CrossAppAccessProvider and that may connect to an MCP server the owners does not fully trust while holding credentials for a legitimate authorization server are affected. @modelcontextprotocol/sdk 1.31.0 (1.x) and @modelcontextprotocol/client 2.2.0 (2.x) patch the issue. A workaround for those who cannot upgrade is available. 2.0.0 and 2.1.0 already accept expectedIssuer. On 1.x, the only workaround is to connect OAuth-enabled clients only to MCP servers you trust.

Upgrade path

8 packages: 2 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
redhat/ansible-automation-platform-27/mcp-server-rhel9:1794495156(Red Hat ansible_automation_platform 2.7 el9) All versions No fix listed No fix yet
redhat/ansible-automation-platform-tech-preview/mcp-server-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/devspaces/code-rhel9(Red Hat openshift_devspaces 3) All versions No fix listed No fix yet
redhat/mta/mta-solution-server-rhel9(Red Hat migration_toolkit_applications 8) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9:1793702275(Red Hat openshift_ai 2.25 el9) All versions No fix listed No fix yet
modelcontextprotocol @modelcontextprotocol/sdk(npm) >= 1.12.0, < 1.31.0 1.31.0 Fixed
modelcontextprotocol client(npm) >= 2.0.0, < 2.2.0 2.2.0 Fixed
modelcontextprotocol typescript-sdk = >= 1.12.0, < 1.31.0; = >= 2.0.0, < 2.2.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
modelcontextprotocol typescript-sdk = >= 1.12.0, < 1.31.0 No fix listed
modelcontextprotocol typescript-sdk = >= 2.0.0, < 2.2.0 No fix listed
modelcontextprotocol @modelcontextprotocol/sdk(npm) >= 1.12.0, < 1.31.0 1.31.0
modelcontextprotocol client(npm) >= 2.0.0, < 2.2.0 2.2.0
redhat/ansible-automation-platform-27/mcp-server-rhel9:1794495156(Red Hat:ansible_automation_platform:2.7::el9) All versions No fix listed
redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9:1793702275(Red Hat:openshift_ai:2.25::el9) All versions No fix listed
redhat/mta/mta-solution-server-rhel9(Red Hat:migration_toolkit_applications:8) All versions No fix listed
redhat/ansible-automation-platform-tech-preview/mcp-server-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/devspaces/code-rhel9(Red Hat:openshift_devspaces:3) All versions No fix listed

References