CVE-2026-69215
JSON

6.8medium

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

Severity
6.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.43% (higher than 38% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-grh8-3p95-f9rr

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

Product or packageVersionsReported by
http4s http4s< 0.23.35, >= 1.0.0-M1, < 1.0.0-M47CVE List
org.http4s:http4s-client_2.12 (Maven)before 0.23.35GitHub Advisory Database
org.http4s:http4s-client_2.13 (Maven)before 0.23.35, from 1.0.0-M1 before 1.0.0-M47GitHub Advisory Database
org.http4s:http4s-client_3 (Maven)before 0.23.35, from 1.0.0-M1 before 1.0.0-M47GitHub Advisory Database

All scores

GitHub_M6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
GitHub6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N

Classification

CWE-565CWE-1275

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

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 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.

GitHub Advisory Database

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-69215 changed 2026-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-grh8-3p95-f9rr changed 2026-09-15CC-BY-4.0
NVDCVE-2026-69215 changed 2026-09-16Public domain