{"answers":{"affected":"2 open source packages ship an affected version, including rmcp.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-63127 exists.","fix":"Upgrade rmcp to 2.0.0 or later.","what":"CVE-2026-63127 is a high-severity authentication bypass vulnerability in modelcontextprotocol rust-sdk, published on 16 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-63127 and fix it if it is affected.\n\nWhat it is: CVE-2026-63127 is a high-severity authentication bypass vulnerability in modelcontextprotocol rust-sdk, published on 16 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-63127 exists.\n\nAffected packages and fixed versions:\n- rmcp (crates.io): affected all versions; fixed in 2.0.0\n- rmcp (crates.io): affected all versions; fixed in 2.0.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-63127/ (Markdown: https://insights.sbomify.com/CVE-2026-63127/index.md)","id":"CVE-2026-63127","markdown":"https://insights.sbomify.com/CVE-2026-63127/index.md","name":"CVE-2026-63127","record":{"aliases":["GHSA-33f5-2c5q-wgwj"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["account_takeover","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust MCP SDK","requires_auth":"none","summary":"A malicious MCP server can trick clients into sending valid access tokens to it, allowing impersonation of the victim against legitimate resources.","user_interaction":"required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"description":"RMCP is an official Rust SDK for the Model Context Protocol. Prior to 2.0.0, the rmcp crate's OAuth implementation in crates/rmcp/src/transport/auth.rs omits the RFC 9728 resource field from ResourceServerMetadata and allows discover_oauth_server_via_resource_metadata to use protected-resource metadata without confirming that the returned resource identifier exactly matches the configured MCP server. A malicious MCP server can publish metadata for a different legitimate MCP resource and its authorization server, causing a victim who connects and completes the authorization flow to obtain a legitimate access token that the client subsequently sends to the malicious server. The attacker can capture the token and impersonate the victim against the legitimate MCP resource within the token's granted scopes. This issue is fixed in version 2.0.0.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"RMCP: Missing Resource Field Validation in OAuth Protected Resource Metadata Discovery","id":"CVE-2026-63127","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"RMCP: Unauthenticated permanent session-table leak in rmcp Streamable HTTP server transport leads to remote denial-of-service","id":"CVE-2026-63128"},"packages":[{"ecosystem":"crates.io","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"rmcp","purl":null,"source":"GHSA-33f5-2c5q-wgwj"},{"ecosystem":"crates.io","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"rmcp","purl":"pkg:cargo/rmcp","source":"GHSA-33f5-2c5q-wgwj"}],"prev":{"headline":"Wire: Unauthenticated decoder crash via 32-bit length integer overflow in ByteArrayProtoReader32 (incomplete fix of CVE-2026-45799)","id":"CVE-2026-63126"},"products":["rust-sdk"],"published":"2026-09-16","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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-16","vendors":["modelcontextprotocol"]},"summary":"A malicious MCP server can trick clients into sending valid access tokens to it, allowing impersonation of the victim against legitimate resources.","url":"https://insights.sbomify.com/CVE-2026-63127/"}