Skip to content

fix(deps): update rust crate rmcp to v3 [security] - #213

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/crate-rmcp-vulnerability
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/crate-rmcp-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
rmcp dev-dependencies major 2.1 β†’ 3.0
rmcp dependencies major 2.1 β†’ 3.0

OAuth client SSRF filter checks host strings, not resolved addresses

GHSA-5p52-q7pq-9fq2 / RUSTSEC-2026-0457

More information

Details

From 2.0.0 until 3.7.0, the rmcp OAuth client decided whether it may fetch an
authorization server's metadata URL by inspecting only the host string. It
rejected literal loopback, private and link-local IP addresses and known cloud
metadata hostnames, but it did not resolve other hostnames. A hostname that
resolves to an internal address passed the check.

A malicious MCP server can return protected-resource metadata that names an
authorization server whose hostname resolves to an internal address. The client
then sends GET requests to that address during discovery.

The same release fixes two related bypasses:

  • Bracketed IPv6 literals such as http://[::1]:6379/ were not recognized as
    internal, because the check kept the brackets from the URL host.
  • token_endpoint and registration_endpoint from authorization server
    metadata were not checked at all, and token requests follow redirects. A
    malicious authorization server could make the client send POST requests to
    an internal address.

The impact is client-side SSRF. Responses are not returned to the attacker
directly. Unauthenticated internal HTTP services are reachable. Cloud metadata
endpoints that require headers or IMDSv2 are largely unaffected.

The flaw was corrected in 3.7.0. AuthorizationManager::new now builds its HTTP
client with a DNS resolver that applies the address policy to every resolved
address, and checks every IP-literal URL and followed redirect against the same
policy. Loopback and private addresses are allowed only when the MCP server's
own URL names one of that class. Deployments that reach their authorization
server through a hostname that resolves to a private address should use
AuthorizationManager::new_allowing_private_addresses.

Clients supplied through new_with_oauth_http_client are not covered by the
resolved-address checks. Such clients must enforce their own outbound address
policy.

Severity

Unknown

References

This data is provided by OSV and the Rust Advisory Database (CC0 1.0).


Unbounded response body buffering in Streamable HTTP clients

GHSA-c9f9-cp8h-jcj5 / RUSTSEC-2026-0462

More information

Details

Before 3.9.0, the built-in Streamable HTTP clients in rmcp read non-streaming
HTTP response bodies into memory with no size limit. Both the reqwest client
(transport-streamable-http-client-reqwest) and the Unix socket client
(transport-streamable-http-client-unix-socket) were affected:

  • application/json responses to POST requests were read in full before
    parsing.
  • Non-2xx responses were read in full for error reporting.

A malicious or compromised MCP server can answer with a body that never ends,
for example a chunked application/json response that streams whitespace. The
client buffers it until the process runs out of memory. This works during
initialize, before any authentication. On desktop or agent hosts, this
terminates the whole host application.

Server-sent event streams are not affected. Each event is already capped by
max_sse_event_size, and events are not accumulated.

The flaw was corrected in 3.9.0. Successful JSON bodies are limited to 16 MiB
and non-success bodies to 64 KiB. Bytes are counted while streaming, after
decompression. An oversized Content-Length is rejected before the body is
read, and an oversized body is rejected with
StreamableHttpError::ResponseBodyTooLarge instead of being truncated.

If you cannot upgrade, use a custom StreamableHttpClient that enforces a
response body limit, or connect only to trusted MCP servers.

Severity

  • CVSS Score: 6.5 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

References

This data is provided by OSV and the Rust Advisory Database (CC0 1.0).


Release Notes

modelcontextprotocol/rust-sdk (rmcp)

v3.9.0

Compare Source

Added
  • (auth) structure protected resource discovery errors (#​1305)
  • (transport) log followed same-origin redirects at debug level (#​1417)
  • support the Skills extension (SEP-2640) (#​1392)
Fixed
  • (model) don't treat _meta alone as a CallToolResult (#​1405)
  • (client) keep ProgressDispatcher lock off the await path (#​1310)
  • (auth) refresh with only granted scopes (#​1331)
  • streamable-http server: stateful session workers ignore config.canc (#​1427)
  • (skills) enforce manifest boundaries and capability negotiation (#​1412)
  • (transport) send SIGTERM before killing a child process on graceful shutdown (#​1379)
  • (handler) generate a tool's outputSchema for the serialize contract (#​1378)
  • (server) reject server-to-client requests on discover sessions (#​1397)
  • (auth) accept ID-JAGs without a resource claim (#​1406)
  • (rmcp) reject Mcp-Param headers with invalid characters (#​1414)
  • (transport) match explicit HTTP media types and Accept quality values (#​1382)
  • (model) accept URL elicitation requests without elicitationId (#​1383)
  • (transport) preserve protocol error replies across cancellation (#​1370)
Other
  • (transport) fix spell-check failures in response-limit tests (#​1432)
  • Merge commit from fork
  • (deps) update rstest requirement from 0.27.0 to 0.28.0 (#​1422)
  • (client) point on_*_list_changed callbacks to Peer::listen (#​1402)
  • add Voltip to built with rmcp list (#​1401)

v3.8.0

Compare Source

Added
  • (transport) expose body-free HTTP status errors (#​1386)
Fixed
  • (client) stop SSE reconnects on permanent GET errors (#​1363)

v3.7.0

Compare Source

Added
  • (auth) support OIDC ID-token subjects in enterprise exchange (#​1385)
Fixed
  • (auth) allow cross-origin resource_metadata urls (#​1302)
  • (transport) keep 401/403 status when the body is a JSON-RPC error (#​1341)
Other
  • Merge commit from fork

v3.6.0

Compare Source

Added
  • (client) cancel an abandoned tools/call, prompts/get or resources/read (#​1344)
  • (auth) add initial authorization scope selection (#​1352)
  • (transport) add non-blocking stdio_pipes transport (#​1304)
Fixed
  • (server) reject requests to 2026-07-28 clients (#​1326)
  • (streamable-http-server) look up tool schemas per request (#​1349)
  • (transport) follow same-origin 307/308 redirects in the default Streamable HTTP client (#​1367)
  • (streamable-http-server) answer a session-less non-initialize POST with 400 (#​1377)
  • (model) read a request id written in float form as that integer (#​1346)
  • (client) answer a server ping during the initialize handshake (#​1366)
  • (transport) accept nested x-mcp-header annotations (#​1359)
  • (streamable-http-client) handle error responses to initialize (#​1361)
  • (transport) bound the incoming line buffer in AsyncRwTransport (#​1049)
  • (model) reject malformed JSON-RPC messages with conflicting result and error fields (#​1283) (#​1287)
  • ship LICENSE in rmcp and rmcp-macros crates (#​1342)
  • (streamable-http-server) release the session map lock before waiting on a session (#​1323)
  • (rmcp) gate client- and server-only helpers behind their features (#​1329)
  • cancel pending request tokens after transport EOF (#​1333)
  • (rmcp) import base64-only prompt content types under the feature (#​1314)
Other
  • combine AI issue triage with a maintainer rotation as the responsible reviewer (#​1260)

v3.5.1

Compare Source

Fixed
  • (server) keep discover lifecycle bootstrap-neutral (#​1248)
  • keep handler-generated invalid params errors in-band (#​1322)
  • (model) export object! macro without macros feature (#​1318)
  • (server) default missing cache hints for 2026-07-28 peers (#​1308)
Other
  • [rmcp] Notify credential stores when a refresh token is rejected (#​1285)

v3.5.0

Compare Source

Added
  • update LATEST and add LATEST_WITH_INITIALIZE (#​1105)
Fixed
  • (model) decode float fields through serde_json::Number (#​1300)
  • (rmcp) reject duplicate sep-2243 headers (#​1274)
  • (transport) match explicit default ports in Origin allowlist (#​1270)
  • (rmcp) tolerate empty cacheScope instead of silently dropping the whole result (#​1281)
  • (model) preserve explicit null structuredContent in CallToolResult (#​1295)
Other
  • cargo fmt fixes on validate_standard_headers changes (#​1275)

v3.4.1

Compare Source

Fixed
  • (transport) fall back after JSON discover rejections (#​1288)
  • (macros) accept const paths and concat! in tool/prompt descriptions (#​1243)
Other
  • (deps) update rstest requirement from 0.26.1 to 0.27.0 (#​1276)

v3.4.0

Compare Source

Added
  • (model) add ServerConfig and ClientConfig (#​1266)
Fixed
  • (rmcp) use ServerConfig in cancellation test (#​1273)
  • (rmcp) route peer cancellation by lifecycle (#​1262)
  • run first pre-init request in service loop (#​1263)
  • (auth) let url origin decide prm discovery (#​1264)
  • (model) deprecate ServerInfo and ClientInfo aliases (#​1156)
  • (auth) ignore non-metadata JSON when probing for protected resource metadata (#​1204)
  • do not treat malformed JSON 200 as Accepted for requests (#​1208)
  • (streamable-http-server) map handler-generated HeaderMismatch to HTTP 400 (#​1259)
  • (http) enforce Origin validation semantics (#​1192)

v3.3.0

Compare Source

Added
  • add ServerHandler::negotiate_initialize (#​1247)
  • (macros) reject empty tool_router (#​1233)
  • (auth) add enterprise refresh-token and ID-JAG exchanges (#​1234)
Fixed
  • (sse) saturate exponential reconnect backoff to avoid overflow panic (#​1231)
  • resolve clippy warnings across workspace (#​1195)
  • (auth) unify refresh checks and error handling (#​1236)
Other
  • (deps) update process-wrap requirement from 9.0 to 10.0 (#​1229)

v3.2.0

Compare Source

Added
  • (auth) coordinate OAuth refreshes through credential stores (#​1232)
  • add request-state key rotation (#​1128)
Fixed
  • keep initialize on legacy protocol versions (#​1228)
  • (transport) fall back after sessionless HTTP discover rejections (#​1211)
  • allow concurrent streamable http requests (#​1186)

v3.1.4

Compare Source

Fixed

v3.1.3

Compare Source

Fixed
  • (auth) ignore query parameters when matching resources (#​1177)
  • (auth) retain state until issuer validation (#​1167)
  • (model) preserve elicitation property order metadata (#​1150)
  • time out auto discovery probe (#​1149)
  • (client) classify discover outcome at source, not at the error type (#​1133)
Other
  • Fix typo in to_authorized_http_client doc comment (#​1158)

v3.1.2

Compare Source

Fixed
Other

v3.1.1

Compare Source

Fixed
Other

v3.1.0

Compare Source

Added
  • add strict stateless protocol metadata validation (#​1091)
Other
  • document the ping utility with examples (#​1106)
  • complete Tier 1 feature docs and finalize roadmap (#​1101)
  • (conformance) meeting requirements for tier 1 (#​1087)

v3.0.1

Compare Source

Other
  • release stable 3.0.0

v3.0.0

Compare Source

Other
  • release stable 3.0.0

v2.2.0

Compare Source

Added
  • reject auth servers lacking S256 PKCE support (#​955)
Fixed
  • pass client conformance suite (#​960)
  • don't respond to cancelled requests (#​957)
  • fail orphaned streamable HTTP responses on reinit (#​914)
  • address 2025-11-25 conformance audit findings (#​951)

Configuration

πŸ“… Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/crate-rmcp-vulnerability branch from 9cb1b68 to 82dc3a1 Compare November 16, 2026 15:01

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants