Http4s: CookieJar middleware accepts arbitrary Set-Cookie domain
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 0.23.35, 1.0.0-M47
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- http4s http4s
fixed in 0.23.35; From 1.0.0-M1 · fixed in 1.0.0-M47
- org.http4s:http4s-client_2.12Maven
fixed in 0.23.35
- org.http4s:http4s-client_2.13Maven
fixed in 0.23.35
- org.http4s:http4s-client_2.13Maven
From 1.0.0-M1 · fixed in 1.0.0-M47
- org.http4s:http4s-client_3Maven
From 1.0.0-M1 · fixed in 1.0.0-M47
- org.http4s:http4s-client_3Maven
fixed in 0.23.35