Skip to content
OpenAdvisories
Medium · 6.8 CVE-2026-69215 EUVD-2026-79191GHSA-grh8-3p95-f9rr

Http4s: CookieJar middleware matches by substring, leaking cookies cross-origin

Published Sep 15, 2026 · Updated Sep 16, 2026 · Assigned by GitHub_M

Description

Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.0-M47, The CookieJar client middleware uses unanchored substring checks instead of RFC 6265 domain and path matching when deciding whether to attach a stored cookie. A cookie for example.com can consequently be sent to an attacker-controlled hostname such as evilexample.com when an application using the same jar makes an attacker-influenced outbound request. This exposes session or authentication cookies and can enable hijacking of the application’s outbound sessions. This issue is fixed in versions 0.23.35 and 1.0.0-M47.

Affected products

VendorProductAffectedFixed
http4s http4s < 0.23.35, >= 1.0.0-M1, < 1.0.0-M47 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.http4s:http4s-client_2.12 < 0.23.35 0.23.35 GHSA-grh8-3p95-f9rr
Maven org.http4s:http4s-client_2.13 < 0.23.35 0.23.35 GHSA-grh8-3p95-f9rr
Maven org.http4s:http4s-client_2.13 >= 1.0.0-M1, < 1.0.0-M47 1.0.0-M47 GHSA-grh8-3p95-f9rr
Maven org.http4s:http4s-client_3 < 0.23.35 0.23.35 GHSA-grh8-3p95-f9rr
Maven org.http4s:http4s-client_3 >= 1.0.0-M1, < 1.0.0-M47 1.0.0-M47 GHSA-grh8-3p95-f9rr

References