Email me

Rust advisories / connectrpc

VulnerabilityRUSTSEC-2026-0304 · connectrpc

RUSTSEC-2026-0304: Finished streaming calls keep reading a stalled request body indefinitely

Short answerA security vulnerability in the connectrpc crate: Finished streaming calls keep reading a stalled request body indefinitely. No severity score was published. Fixed in 0.8.2, 0.9.1: update to a fixed version.

Crateconnectrpc
TypeVulnerability (denial-of-service)
Affected versionsFrom 0.2.0 before 0.8.2; from 0.9.0 before 0.9.1.
Fixed in0.8.2, 0.9.1
Severitynot scored
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Published2026-09-21
Last changed2026-09-23
Also known asGHSA-jx5x-3mcr-qp8r

What to do

  1. See which version you have: cargo tree -i connectrpc (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p connectrpc. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example connectrpc = "0.9.1") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

Affected versions of connectrpc start a background task to read the request body of every client-streaming and bidirectional-streaming call, before the interceptors or the handler run. A call can finish before it has consumed its request: the handler can return without reading all of its request stream, an interceptor can reject the call, or the request timeout can fire. The background task then keeps reading, with no time limit. If the client stops sending part-way through a message, or never sends the rest, the task, the partial message it has buffered (up to max_message_size, 4 MiB by default) and the HTTP/2 stream, or the HTTP/1.x connection, are held until the client finishes the stream or closes the connection.

Impact

A client can use this to exhaust the memory, tasks and file descriptors of a server. With the default limits of the built-in Server, one HTTP/2 connection can hold 200 stalled streams, about 800 MiB at the default message size, and the server does not limit the number of connections. A server that authenticates in Tower middleware, before the request reaches the service, is exposed only to callers with a valid credential. A server with no authentication, or one that authenticates in an interceptor, is exposed to any client. This advisory covers client-streaming and bidirectional-streaming calls only.

Patches

Versions 0.8.2 and 0.9.1 bound the wait. When the handler is gone, the reader frees the partial message and discards the rest of the body for at most 5 seconds and 1 MiB, then drops it, which resets the HTTP/2 stream or closes the HTTP/1.x connection. On wasm32, which has no clock, only the 1 MiB limit applies. Versions 0.2.0 to 0.7.0 contain the same reader and are not patched; upgrade to 0.8.2 or later.

Workarounds

Authenticate in Tower middleware rather than in an interceptor, so a request without a credential is rejected before any reader starts. Set Server::with_max_connection_age, which closes each connection, and every stalled body on it, once its age and the grace period have passed. Lowering Limits::with_max_message_size and Server::with_max_concurrent_streams reduces what one client can hold but does not release a stalled body.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ