CVE-2026-69214: Http4s: CookieJar middleware accepts arbitrary Set-Cookie domain
When processing a Set-Cookie from a response, the CookieJar client middleware trusts the server-supplied Domain attribute verbatim, with no check that it domain-matches the host that sent the cookie (RFC6265 §5.3 step 6) and no public suffix check.
Published Sep 15, 2026
Affected packages
org.http4s:http4s-client_2.12
- Ecosystem
- Maven
- Affected
- <= 0.23.34
- Fixed in
- 0.23.35
- Check
mvn dependency:tree -Dincludes=org.http4s:http4s-client_2.12
org.http4s:http4s-client_2.13
- Ecosystem
- Maven
- Affected
- <= 0.23.34
- Fixed in
- 0.23.35
- Check
mvn dependency:tree -Dincludes=org.http4s:http4s-client_2.13
org.http4s:http4s-client_2.13
- Ecosystem
- Maven
- Affected
- >= 1.0.0-M1, <= 1.0.0-M46
- Fixed in
- 1.0.0-M47
- Check
mvn dependency:tree -Dincludes=org.http4s:http4s-client_2.13
org.http4s:http4s-client_3
- Ecosystem
- Maven
- Affected
- >= 1.0.0-M1, <= 1.0.0-M46
- Fixed in
- 1.0.0-M47
- Check
mvn dependency:tree -Dincludes=org.http4s:http4s-client_3
org.http4s:http4s-client_3
- Ecosystem
- Maven
- Affected
- <= 0.23.34
- Fixed in
- 0.23.35
- Check
mvn dependency:tree -Dincludes=org.http4s:http4s-client_3
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
When processing a Set-Cookie from a response, the CookieJar client middleware trusts the server-supplied Domain attribute verbatim, with no check that it domain-matches the host that sent the cookie (RFC6265 §5.3 step 6) and no public suffix check. A malicious or compromised server can therefore plant a cookie for any domain in the cookie jar, which is subsequently set on the client's next request to that victim domain, enabling session fixation or overwriting security-relevant cookies.
Impact
Session fixation and overwrite of security-relevant cookies for arbitrary domains contacted by the same wrapped client.
Preconditions
- Application uses the
CookieJarclient middleware. - Application contacts an attacker-controlled (or compromised) server using the same jar it uses for trusted hosts.
Workarounds
- Do not share a
CookieJaracross trusted and untrusted targets.
Note
This middleware still does not implement public suffix rejection.
Credited to rossabaker, samspills, morgen-peschke.
References
- https://github.com/http4s/http4s/security/advisories/GHSA-wv64-j4fq-5f9x
- https://github.com/http4s/http4s/commit/87535f7288f3baaf6736e2735087e473762b5b2f
- https://github.com/http4s/http4s/releases/tag/v0.23.35
- https://github.com/http4s/http4s/releases/tag/v1.0.0-M47
- https://github.com/advisories/GHSA-wv64-j4fq-5f9x
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
