Description
Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.0-M47, ResponseCookie.render writes attacker-influenced name, content, domain, path, and extension values without neutralizing semicolons or control characters. An application that constructs a ResponseCookie from unvalidated input can therefore emit injected cookie attributes such as Domain, Path, or SameSite, widening cookie scope or weakening protections, and control characters may enable header splitting on permissive backends. The patch strips control characters from all five fields and strips semicolons from name, content, domain, and path while retaining the extension delimiter behavior. This issue is fixed in versions 0.23.35 and 1.0.0-M47.
Published: 2026-09-15
Score: 4.8 Medium
EPSS: n/a
KEV: No
Impact: Cookie and Header Injection
Action: Patch
AI Analysis

Impact

The vulnerability lies in the Http4s library’s handling of Set‑Cookie headers. Prior to versions 0.23.35 and 1.0.0‑M47, the render method emits cookie names, values, domain, path, and extensions without neutralizing semicolons or control characters. This allows an attacker who can influence any of these fields to inject additional cookie attributes such as Domain, Path, or SameSite, broaden the cookie’s scope or weaken security policies, and to inject control characters that can cause HTTP header splitting on permissive backends. Together these issues support HTTP response splitting and cookie injection, identified as CWE‑113 and CWE‑1286.

Affected Systems

The affected product is the Http4s Scala HTTP library. Versions prior to 0.23.35 and 1.0.0‑M47 are vulnerable. Any application that uses those versions of Http4s for rendering Set‑Cookie headers is exposed.

Risk and Exploitability

The CVSS score is 4.8, indicating moderate severity. EPSS is not available, so the likelihood of exploitation is uncertain, but the vulnerability is not listed in CISA's KEV catalog. The usual attack path requires an application developer or an attacker that can supply unvalidated data to the ResponseCookie construction. If the input originates from an external source, the attacker could craft values that manipulate cookie attributes or split headers, potentially leading to session hijacking or privilege escalation in the browser. No remote code execution is directly possible, and a successful exploitation depends on the ability to influence cookie fields within the server code.

Generated by OpenCVE AI on September 16, 2026 at 00:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Http4s to version 0.23.35, 1.0.0‑M47, or later.
  • Ensure any data used to create a ResponseCookie has control characters and semicolons stripped from the name, value, domain, and path fields; apply the patch’s sanitization logic if a direct upgrade is not yet possible.
  • Verify that all legacy code paths creating ResponseCookie from external input are sanitized before use.

Generated by OpenCVE AI on September 16, 2026 at 00:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 15 Sep 2026 19:00: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, ResponseCookie.render writes attacker-influenced name, content, domain, path, and extension values without neutralizing semicolons or control characters. An application that constructs a ResponseCookie from unvalidated input can therefore emit injected cookie attributes such as Domain, Path, or SameSite, widening cookie scope or weakening protections, and control characters may enable header splitting on permissive backends. The patch strips control characters from all five fields and strips semicolons from name, content, domain, and path while retaining the extension delimiter behavior. This issue is fixed in versions 0.23.35 and 1.0.0-M47.
Title Http4s: Set-Cookie rendering does not escape attribute delimiters
Weaknesses CWE-113
CWE-1286
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-15T18:56:50.369Z

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

Link: CVE-2026-69211

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-69211

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-16T00:30:08Z

Weaknesses
  • CWE-113

    Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')

  • CWE-1286

    Improper Validation of Syntactic Correctness of Input