{"answers":{"affected":"4 open source packages ship an affected version, including @modelcontextprotocol/client and @modelcontextprotocol/sdk.","exploited":"There is no known exploitation of CVE-2026-104850 in the wild and no public exploit code.","fix":"Upgrade @modelcontextprotocol/client to 2.2.0 or later.","what":"CVE-2026-104850 is a high-severity vulnerability in modelcontextprotocol typescript-sdk, published on 6 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-104850 and fix it if it is affected.\n\nWhat it is: CVE-2026-104850 is a high-severity vulnerability in modelcontextprotocol typescript-sdk, published on 6 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-104850 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @modelcontextprotocol/client (npm): affected from 2.0.0; fixed in 2.2.0\n- @modelcontextprotocol/client (npm): affected from 2.0.0; fixed in 2.2.0\n- @modelcontextprotocol/sdk (npm): affected from 1.12.0; fixed in 1.31.0\n- @modelcontextprotocol/sdk (npm): affected from 1.12.0; fixed in 1.31.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-104850/ (Markdown: https://insights.sbomify.com/CVE-2026-104850/index.md)","id":"CVE-2026-104850","markdown":"https://insights.sbomify.com/CVE-2026-104850/index.md","name":"CVE-2026-104850","record":{"aliases":["CLEANSTART-2026-LO03281","CLEANSTART-2026-YP03178","CLSA-2026-1791626582","CLSA-2026-1791679180","CLSA-2026-1791835900","CLSA-2026-1791839313","CLSA-2026-1792257408","CLSA-2026-1792262854","CLSA-2026-1792263903","CLSA-2026-1793207764","ECHO-1d8f-3ead-8a1a","GHSA-6qxp-vccf-f47h","MINI-4jc8-xcq8-2mq5","MINI-7qqf-727q-qgwx","MINI-986q-h7qc-38hp","MINI-9jf9-cj6h-wjh6","MINI-cv2w-94hh-6wc7","MINI-hq4p-mr85-qc94","MINI-mh8x-5q7c-w76h","MINI-mmvv-x2qv-cjrw","MINI-rh5m-mv6j-jr7j","MINI-v9gp-c39w-8594","MINI-w25v-789g-cqg4","ROOT-APP-NPM-CVE-2026-104850"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"MCP TypeScript SDK","requires_auth":"none","summary":"A malicious MCP server can trick the TypeScript SDK client into sending OAuth credentials to an attacker-controlled authorization server, exposing secrets.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"},{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"MCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP server","id":"CVE-2026-104850","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":4,"n_references":4,"next":{"headline":"fsspec: Server-Side Template Injection in ReferenceFileSystem leads to Remote Code Execution","id":"CVE-2026-104851"},"packages":[{"ecosystem":"npm","fixed":["2.2.0"],"introduced":["2.0.0"],"last_affected":[],"package":"@modelcontextprotocol/client","purl":null,"source":"GHSA-6qxp-vccf-f47h"},{"ecosystem":"npm","fixed":["2.2.0"],"introduced":["2.0.0"],"last_affected":[],"package":"@modelcontextprotocol/client","purl":"pkg:npm/%40modelcontextprotocol/client","source":"GHSA-6qxp-vccf-f47h"},{"ecosystem":"npm","fixed":["1.31.0"],"introduced":["1.12.0"],"last_affected":[],"package":"@modelcontextprotocol/sdk","purl":null,"source":"GHSA-6qxp-vccf-f47h"},{"ecosystem":"npm","fixed":["1.31.0"],"introduced":["1.12.0"],"last_affected":[],"package":"@modelcontextprotocol/sdk","purl":"pkg:npm/%40modelcontextprotocol/sdk","source":"GHSA-6qxp-vccf-f47h"}],"prev":{"headline":"Tinypool: Prototype Pollution Gadget to RCE in run() options","id":"CVE-2026-104849"},"products":["typescript-sdk"],"published":"2026-10-06","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-06","vendors":["modelcontextprotocol"]},"summary":"A malicious MCP server can trick the TypeScript SDK client into sending OAuth credentials to an attacker-controlled authorization server, exposing secrets.","url":"https://insights.sbomify.com/CVE-2026-104850/"}