Description
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.
Published: 2026-09-15
Score: 6.8 Medium
EPSS: n/a
KEV: No
Impact: Session fixation and cookie hijacking via mis-validated Set-Cookie domains
Action: Apply Patch
AI Analysis

Impact

Based on the description, the vulnerability resides in the CookieJar middleware of the Http4s HTTP library, which accepts a Set-Cookie header without validating that its Domain attribute matches the origin of the response or rejecting public suffixes. This flaw allows a malicious or compromised server to store a cookie for an arbitrary domain in the jar. Subsequent requests to that domain will then send the forged cookie, enabling session fixation, cookie overwrite, and other attacks that rely on the integrity of session cookies.

Affected Systems

Any application using the http4s library before version 0.23.35 or before 1.0.0-M47 is potentially vulnerable. The affected product is the http4s HTTP client and server framework, with the specific vulnerable revisions noted by the CVE report.

Risk and Exploitability

Based on the description, the likely attack vector is that an attacker serves a Set-Cookie header from a server that the vulnerable application trusts, which may be any server on the network or a compromised upstream proxy. The CVSS score of 6.8 indicates moderate severity, and the absence of an EPSS score and a KEV listing suggest limited real-world exploitation so far. Successful exploitation would allow a session hijack or replacement of security-critical cookies.

Generated by OpenCVE AI on September 16, 2026 at 01:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the http4s library to version 0.23.35 or later, or to 1.0.0-M47 or later where the domain validation is enforced.
  • If an upgrade is not immediately possible, isolate untrusted traffic by using separate CookieJar instances per domain or by disabling CookieJar for unknown origins in your application configuration.
  • Continuously monitor application logs for unexpected Set-Cookie headers from third-party hosts and validate that all returned cookies have a domain matching the host that served them.

Generated by OpenCVE AI on September 16, 2026 at 01:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-wv64-j4fq-5f9x Http4s: CookieJar middleware accepts arbitrary Set-Cookie domain
History

Tue, 15 Sep 2026 19:15: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 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.
Title Http4s: CookieJar middleware accepts arbitrary Set-Cookie domain
Weaknesses CWE-384
CWE-565
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-15T19:04:05.469Z

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

Link: CVE-2026-69214

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-15T19:17:38.453

Modified: 2026-09-15T19:17:38.453

Link: CVE-2026-69214

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-16T01:15:17Z

Weaknesses
  • CWE-384

    Session Fixation

  • CWE-565

    Reliance on Cookies without Validation and Integrity Checking