CVE-2026-69211: http4s Set-Cookie Rendering Does Not Escape Vulnerability

MODERATE
Advisory Identifier: GHSA-7qh7-rghh-698h
CVSS 4.8
CWE-113 CWE-1286
Published
Advisory Summary

CVE-2026-69211 is a MODERATE (CVSS 4.8) set-cookie rendering does not escape vulnerability (CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')) affecting http4s libraries in the Maven ecosystem. The issue involves set-cookie rendering does not escape attribute delimiters. Remediation is available by upgrading affected packages to version 0.23.35, 1.0.0-M47.

CVE-2026-69211 at a Glance

CVE Identifier CVE-2026-69211
GHSA Identifier GHSA-7qh7-rghh-698h
Severity MODERATE
CVSS v3.1 Base Score 4.8
CWE Classification CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
Affected Product http4s
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-69211

To remediate this vulnerability, upgrade all affected http4s dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.http4s:http4s-core_2.12 fixed: 0.23.35
<dependency>
    <groupId>org.http4s</groupId>
    <artifactId>http4s-core_2.12</artifactId>
    <version>0.23.35</version>
</dependency>
org.http4s:http4s-core_2.13 fixed: 0.23.35
<dependency>
    <groupId>org.http4s</groupId>
    <artifactId>http4s-core_2.13</artifactId>
    <version>0.23.35</version>
</dependency>
org.http4s:http4s-core_3 fixed: 0.23.35
<dependency>
    <groupId>org.http4s</groupId>
    <artifactId>http4s-core_3</artifactId>
    <version>0.23.35</version>
</dependency>
org.http4s:http4s-core_2.13 fixed: 1.0.0-M47
<dependency>
    <groupId>org.http4s</groupId>
    <artifactId>http4s-core_2.13</artifactId>
    <version>1.0.0-M47</version>
</dependency>
org.http4s:http4s-core_3 fixed: 1.0.0-M47
<dependency>
    <groupId>org.http4s</groupId>
    <artifactId>http4s-core_3</artifactId>
    <version>1.0.0-M47</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.http4s

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-69211, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.http4s

Analyze the terminal output to locate any version of http4s in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.23.35), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.http4s command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting'), where the product receives data from an http agent/component (e.g., web server, proxy, browser, etc.), but it does not neutralize or incorrectly neutralizes cr and lf characters before the data is included in outgoing http headers. In http4s, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary `ResponseCookie.render` writes the cookie `name`, `content`, `domain`, `path`, and `extension` fields verbatim, with no sanitization of `;` or control characters. An application that places attacker-controlled data into any of these fields lets the attacker inject additional cookie attributes (`Domain=`, `Path=`, `SameSite=None`, etc.) by embedding `; `, widening a cookie's scope or downgrading its protections. ## Impact Cookie attribute injection: scope widening (`Domain`), `SameSite` downgrade, or overriding security-relevant attributes for applications that render attacker-influenced data in a `ResponseCookie` field. CR/LF in a field also threatens header splitting on backends that do not strip them. ## Preconditions - Application constructs a `ResponseCookie` with attacker-influenced `content`, `name`, `path`, `domain`, or `extension`. - The application does not independently validate the value. ## Workarounds Validate cookie field values against the RFC6265 grammar before constructing `ResponseCookie`, rejecting `;` and control characters. ## Patch - Control characters are stripped from `content`, `name`, `path`, `domain`, and `extension`. - Semi-colons are stripped from `content`, `name`, `path`, and `domain`. Because `extension` is a single value, the semi-colon must be allowed as a delimiter, and sanitizing untrusted values remains the caller's responsibility. ## Resources - [RFC6265 §4.1](https://www.rfc-editor.org/info/rfc6265/#section-4.1.1): Set-Cookie syntax

CVE-2026-69211 Affected http4s Versions

5 component(s)
Fixed Versions:
0.23.351.0.0-M47
Product / Package Ecosystem Affected Versions Fixed Version
org.http4s:http4s-core_2.12
Maven
< 0.23.35
0.23.35
org.http4s:http4s-core_2.13
Maven
< 0.23.35
0.23.35
org.http4s:http4s-core_3
Maven
< 0.23.35
0.23.35
org.http4s:http4s-core_2.13
Maven
≥ 1.0.0-M2
< 1.0.0-M47
1.0.0-M47
org.http4s:http4s-core_3
Maven
≥ 1.0.0-M2
< 1.0.0-M47
1.0.0-M47

References

Frequently Asked Questions

What is CVE-2026-69211?
CVE-2026-69211 is a security vulnerability in http4s involving Set-Cookie rendering does not escape attribute delimiters under CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting').
Which http4s versions are affected?
Affected versions include releases prior to 0.23.35, 1.0.0-M47 across affected packages: org.http4s:http4s-core_2.12, org.http4s:http4s-core_2.13, org.http4s:http4s-core_3.
What version fixes CVE-2026-69211?
Upgrading to 0.23.35, 1.0.0-M47 (or the latest patched release for your respective branch) resolves the vulnerability.
Is http4s-core_2.12 affected?
Yes, org.http4s:http4s-core_2.12 is affected in releases prior to 0.23.35. Upgrade your dependency to 0.23.35 or later.
Is http4s-core_2.13 affected?
Yes, org.http4s:http4s-core_2.13 is affected in releases prior to 0.23.35, 1.0.0-M47. Upgrade your dependency to 0.23.35, 1.0.0-M47 or later.
What is the CVSS score of CVE-2026-69211?
CVE-2026-69211 has a CVSS v3.1 base score of 4.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-69211?
CVE-2026-69211 is classified under CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') (The product receives data from an HTTP agent/component (e.g., web server, proxy, browser, etc.), but it does not neutralize or incorrectly neutralizes CR and LF characters before the data is included in outgoing HTTP headers.).
How can I check Maven dependencies for CVE-2026-69211?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.http4s'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7qh7-rghh-698h",
  "modified" : "2026-11-30T18:09:38Z",
  "published" : "2026-11-30T18:09:38Z",
  "aliases" : [ "CVE-2026-69211" ],
  "summary" : "http4s: Set-Cookie rendering does not escape attribute delimiters",
  "details" : "## Summary\n\n`ResponseCookie.render` writes the cookie `name`, `content`, `domain`, `path`, and `extension` fields verbatim, with no sanitization of `;` or control characters.  An application that places attacker-controlled data into any of these fields lets the attacker inject additional cookie attributes (`Domain=`, `Path=`, `SameSite=None`, etc.) by embedding `; `, widening a cookie's scope or downgrading its protections.\n\n## Impact\n\nCookie attribute injection: scope widening (`Domain`), `SameSite` downgrade, or overriding security-relevant attributes for applications that render attacker-influenced data in a `ResponseCookie` field. CR/LF in a field also threatens header splitting on backends that do not strip them.\n\n## Preconditions\n\n- Application constructs a `ResponseCookie` with attacker-influenced `content`, `name`, `path`, `domain`, or `extension`.\n- The application does not independently validate the value.\n\n## Workarounds\n\nValidate cookie field values against the RFC6265 grammar before constructing `ResponseCookie`, rejecting `;` and control characters.\n\n## Patch\n\n- Control characters are stripped from `content`, `name`, `path`, `domain`, and `extension`.\n- Semi-colons are stripped from `content`, `name`, `path`, and `domain`.  Because `extension` is a single value, the semi-colon must be allowed as a delimiter, and sanitizing untrusted values remains the caller's responsibility.\n\n## Resources\n\n- [RFC6265 §4.1](https://www.rfc-editor.org/info/rfc6265/#section-4.1.1): Set-Cookie syntax",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.http4s:http4s-core_2.12"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.23.35"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.http4s:http4s-core_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.23.35"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.http4s:http4s-core_3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.23.35"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.http4s:http4s-core_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0-M2"
      }, {
        "fixed" : "1.0.0-M47"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.http4s:http4s-core_3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0-M2"
      }, {
        "fixed" : "1.0.0-M47"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/http4s/http4s/security/advisories/GHSA-7qh7-rghh-698h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-69211"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/http4s/http4s/commit/5c8e69ac0f4a2fe03c3481dccd74101cd2e2a890"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/http4s/http4s"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/http4s/http4s/releases/tag/v0.23.35"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/http4s/http4s/releases/tag/v1.0.0-M47"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-113", "CWE-1286" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-30T18:09:38Z",
    "nvd_published_at" : "2026-09-15T19:17:38Z"
  }
}