The danger in CVE-2026-18149 isn't the resource exhaustion itself—it's the silent state desynchronization the vulnerability exposes. When undici's retry handler replaces a stream with a retry response upon receiving a non-retryable status, it operates at the library-internal layer while the application already holds a reference to the original body. The library and application end up with divergent mental models of what resource they control. The body timeout not firing isn't a bug in timeout logic; it's a symptom of the timeout being attached to the connection parser rather than the orphaned stream—revealing the timeout mechanism was designed assuming body and parser share fate, which they no longer do after stream replacement.
This is structurally recurring because retry logic fundamentally requires buffering or redirecting response bodies, but streaming HTTP APIs present bodies as first-class resources the application controls. When retries happen transparently, the library must manage body state it has implicitly delegated to the application. Any mismatch in that handoff—stream replacement without destruction, timeout attachment to the wrong entity, promise settlement for replaced bodies—becomes latent vulnerability. The conditions are trivial to trigger: any server sending a truncated response on one connection followed by a 400 on another will produce an orphaned body, and the attack surface includes any undici client making requests through such a server.
The architectural question is whether retry-on-streaming should be a transparent library feature at all, or whether it requires explicit opt-in with application-side awareness. Current patterns treat retries as configuration, not a state machine shift the application must reason about. Bodies returned from a retry-enabled client should carry metadata about their retry state so applications can detect orphaned references. Until that architectural assumption changes, variants of this desynchronization will keep emerging—where the library and application operate on incompatible paradigms of who owns the body's lifecycle.