CVE-2026-69214
Http4s: CookieJar middleware accepts arbitrary Set-Cookie domain
Description
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.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.http4s » http4s-client_2.12 | < 0.23.35 | 0.23.35 |
| org.http4s » http4s-client_2.13 | < 0.23.35>= 1.0.0-M1, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
| org.http4s » http4s-client_3 | < 0.23.35>= 1.0.0-M1, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
Blast radius
85% of the dependent artifacts (666) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 12,519 |
| 2 hops | 16,108 |
| 3 hops | 6,623 |
| 4 hops | 3,487 |
| 5 hops | 7,244 |
| 6 hops | 5,117 |
Most used dependents
- org.http4s » http4s-blaze-client252 usages
- org.http4s » http4s-ember-client144 usages
- net.shrine » shrine-util39 usages
- net.shrine » shrine-protocol32 usages
- io.chrisdavenport » http4s-grpc23 usages
- org.http4s » http4s-async-http-client20 usages
- org.http4s » http4s-jdk-http-client20 usages
- io.github.pityka » tasks-core17 usages
- io.chrisdavenport » http4s-grpc-google-common-protos17 usages
- es.weso » srdfjena17 usages
- net.shrine » shrine-qep16 usages
- com.47deg » github4s16 usages
- net.shrine » shrine-auth15 usages
- org.http4s » http4s-dom15 usages
- net.playq » tk-test15 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Package | http4s/http4s | github.com |
| Web | http4s/http4s advisory GHSA-wv64-j4fq-5f9x | github.com |
| Web | http4s/http4s commit 87535f7 | github.com |
| Web | http4s/http4s release v0.23.35 | github.com |
| Web | http4s/http4s release v1.0.0-M47 | github.com |
