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.
Published: 2026-09-15
Score: 6.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Cross-origin cookie leakage leading to session hijacking
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is a logic flaw in http4s’ CookieJar client middleware. Instead of applying RFC 6265 domain and path matching, the middleware uses unanchored substring checks to determine whether a stored cookie should be attached to an outbound request. Consequently, a cookie that belongs to "example.com" can be sent to an attacker‑controlled host such as "evilexample.com" when an application using the same cookie jar performs an attacker‑influenced request. This exposes session or authentication cookies and can allow an attacker to hijack the application’s outbound sessions, compromising confidentiality and integrity. The flaw is associated with CWE‑1275 and CWE‑565.

Affected Systems

Any Scala application that uses the http4s library with the CookieJar middleware prior to version 0.23.35 or 1.0.0‑M47 is affected. The issue is fixed in http4s v0.23.35 and v1.0.0‑M47 and later releases.

Risk and Exploitability

The CVSS score of 6.8 indicates a moderate severity, and the EPSS score is <1%, indicating a low exploitation probability, but the lack of KEV listing does not eliminate risk. The most likely attack vector is an attacker who can influence the application’s outbound requests, such as by injecting URLs or crafting requests that the application forwards. The flaw allows the attacker to read or tamper with cookies that should be restricted to the original domain, enabling session hijacking or other credential‑based attacks.

Generated by OpenCVE AI on September 17, 2026 at 07:41 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade http4s to version 0.23.35 or later, or 1.0.0‑M47 or later, to obtain the fixed CookieJar logic.
  • If upgrading is not immediately possible, remove or replace the CookieJar middleware and implement strict RFC 6265 domain and path checks in any custom cookie handling code.
  • Validate all outgoing requests to ensure that cookies are only attached to matching domains and paths, and monitor outbound traffic for unexpected cookie transmission.

Generated by OpenCVE AI on September 17, 2026 at 07:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-grh8-3p95-f9rr Http4s: CookieJar middleware matches by substring, leaking cookies cross-origin
History

Wed, 16 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 15 Sep 2026 22:30:00 +0000

Type Values Removed Values Added
First Time appeared Http4s
Http4s http4s
Vendors & Products Http4s
Http4s http4s

Tue, 15 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
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.
Title Http4s: CookieJar middleware matches by substring, leaking cookies cross-origin
Weaknesses CWE-1275
CWE-565
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-16T18:36:57.350Z

Reserved: 2026-08-03T16:57:50.125Z

Link: CVE-2026-69215

cve-icon Vulnrichment

Updated: 2026-09-16T18:18:33.626Z

cve-icon NVD

Status : Deferred

Published: 2026-09-15T20:17:40.950

Modified: 2026-09-16T20:39:16.610

Link: CVE-2026-69215

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-16T00:45:18Z

Weaknesses
  • CWE-1275

    Sensitive Cookie with Improper SameSite Attribute

  • CWE-565

    Reliance on Cookies without Validation and Integrity Checking