GitHub Advisoryadvisory · Maven

GHSA-grh8-3p95-f9rr Http4s: CookieJar middleware matches by substring, leaking cookies cross-origin

MEDIUM Published 2026-09-15 Modified 2026-09-15 Official page ↗
Aliases
CVE-2026-69215
Ecosystem
Maven
Packages
org.http4s:http4s-client_2.12, org.http4s:http4s-client_2.13, org.http4s:http4s-client_3
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
Weaknesses
CWE-1275, CWE-565
Reviewed
2026-09-15

Affected packages

• Maven org.http4s:http4s-client_2.12: < 0.23.35 → fixed in 0.23.35 • Maven org.http4s:http4s-client_2.13: < 0.23.35 → fixed in 0.23.35 • Maven org.http4s:http4s-client_3: < 0.23.35 → fixed in 0.23.35 • Maven org.http4s:http4s-client_2.13: >= 1.0.0-M1, < 1.0.0-M47 → fixed in 1.0.0-M47 • Maven org.http4s:http4s-client_3: >= 1.0.0-M1, < 1.0.0-M47 → fixed in 1.0.0-M47

Description

The `CookieJar` client middleware decides whether to attach a cookie to an outgoing request using an unanchored substring test on the host and path, instead of the domain match specified by RFC6265 5.1.3. A cookie stored for `example.com` is therefore sent to any host whose name merely contains `example.com` (e.g. `evilexample.com`), leaking potentially sensitive cookies to an attacker-chosen host. Impact Disclosure of session and authentication cookies to an attacker-controlled host, enabling session hijack of the application's outbound calls. Preconditions • Application uses the `CookieJar` client middleware. • Application can be induced to make an outbound request to a host controlled by the attacker, where the hostname contains the targeted domain as a substring. Workarounds • Do not use the `CookieJar` with clients that fetch attacker-influenced URLs • Apply a separate `CookieJar` per trusted origin.

Related

Alias · CVE (1)

  • CVE-2026-69215 Http4s is a Scala interface for HTTP services. vulnerability

Weakness · CWE (2)

  • CWE-1275 Sensitive Cookie with Improper SameSite Attribute weakness
  • CWE-565 Reliance on Cookies without Validation and Integrity Checking weakness

References