6.8medium
Http4s: CookieJar middleware accepts arbitrary Set-Cookie domain
- Severity
- 6.8medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.26% (higher than 18% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-wv64-j4fq-5f9x
Description
Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.0-M47, The CookieJar client middleware stores a response cookie’s Domain attribute without checking that it domain-matches the host that supplied the cookie or rejecting public suffixes. A malicious or compromised server contacted through the same CookieJar can plant a cookie for another domain, and the jar later sends that cookie to the victim domain, enabling session fixation or overwriting security-sensitive cookies. The patch validates the Set-Cookie domain against the response origin, although public-suffix rejection remains unimplemented. This issue is fixed in versions 0.23.35 and 1.0.0-M47.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| http4s http4s | < 0.23.35, >= 1.0.0-M1, < 1.0.0-M47 | CVE List |
| org.http4s:http4s-client_2.12 (Maven) | before 0.23.35 | GitHub Advisory Database |
| org.http4s:http4s-client_2.13 (Maven) | before 0.23.35, from 1.0.0-M1 before 1.0.0-M47 | GitHub Advisory Database |
| org.http4s:http4s-client_3 (Maven) | from 1.0.0-M1 before 1.0.0-M47, before 0.23.35 | GitHub Advisory Database |
All scores
| GitHub_M | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N |
| GitHub | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N |
Classification
What each source says
CVE List
Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.0-M47, The CookieJar client middleware stores a response cookie’s Domain attribute without checking that it domain-matches the host that supplied the cookie or rejecting public suffixes. A malicious or compromised server contacted through the same CookieJar can plant a cookie for another domain, and the jar later sends that cookie to the victim domain, enabling session fixation or overwriting security-sensitive cookies. The patch validates the Set-Cookie domain against the response origin, although public-suffix rejection remains unimplemented. This issue is fixed in versions 0.23.35 and 1.0.0-M47.
GitHub Advisory Database
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-69214 changed 2026-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wv64-j4fq-5f9x changed 2026-09-15 | CC-BY-4.0 |
| NVD | CVE-2026-69214 changed 2026-09-16 | Public domain |