Advisories for Maven/Org.http4s/Http4s-Core_3 package

2026

http4s: Set-Cookie rendering does not escape attribute delimiters

ResponseCookie.render writes the cookie name, content, domain, path, and extension fields verbatim, with no sanitization of ; or control characters. An application that places attacker-controlled data into any of these fields lets the attacker inject additional cookie attributes (Domain=, Path=, SameSite=None, etc.) by embedding ; , widening a cookie's scope or downgrading its protections.

http4s WebSocket decoder accepts negative length, causing infinite decode loop

WebSocket's FrameTranscoder.bodyLength reads a 64-bit extended payload length and rejects only values greater than Integer.MAX_VALUE. A negative length passes validation. This makes the decoder return an empty frame without advancing the buffer, and drives the decode loop into an uninterruptible infinite loop. This pins a CPU and grows an ArrayBuffer unbounded. The defective transcoder is in http4s-core, but the denial of service manifests with http4s-ember-server.