CVE-2026-69214

Http4s: CookieJar middleware accepts arbitrary Set-Cookie domain

Published Sep 15, 2026 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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 forged cookie, enabling session fixation, cookie overwrite, and other attacks that rely on the integrity of session cookies.

Affected Systems

Any application using http4s in versions older than 0.23.35 or 1.0.0‑M47 is potentially vulnerable. The vulnerable product is the http4s HTTP client and server framework as described 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 very low EPSS score (<1%) and lack of KEV listing suggest limited real‑world exploitation, a session hijack or replacement of security‑critical cookies.

Remediation

No solution or workaround provided in the CVE record.

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 20, 2026 at 13:14 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
Type Values Removed Values Added
First Time appeared Http4s
Http4s http4s
Vendors & Products Http4s
Http4s http4s
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-384

    Session Fixation

  • CWE-565

    Reliance on Cookies without Validation and Integrity Checking

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 16, 2026, 6:37 PM
Reserved
Aug 3, 2026, 4:57 PM
Status
Deferred
Published
Sep 15, 2026, 7:17 PM
Modified
Sep 16, 2026, 8:39 PM