CVE-2026-69211
http4s: Set-Cookie rendering does not escape attribute delimiters
Description
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
ResponseCookiewith attacker-influencedcontent,name,path,domain, orextension. - 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, andextension. - Semi-colons are stripped from
content,name,path, anddomain. Becauseextensionis 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: Set-Cookie syntax
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.http4s » http4s-core_2.12 | < 0.23.35 | 0.23.35 |
| org.http4s » http4s-core_2.13 | < 0.23.35>= 1.0.0-M2, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
| org.http4s » http4s-core_3 | < 0.23.35>= 1.0.0-M2, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
Blast radius
70% of the dependent artifacts (1,180) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 16,270 |
| 2 hops | 26,443 |
| 3 hops | 17,009 |
| 4 hops | 7,098 |
| 5 hops | 9,520 |
| 6 hops | 5,969 |
Most used dependents
- org.http4s » http4s-dsl527 usages
- org.http4s » http4s-circe346 usages
- com.github.pureconfig » pureconfig307 usages
- org.http4s » http4s-client254 usages
- org.http4s » http4s-blaze-client252 usages
- org.http4s » http4s-blaze-server239 usages
- org.http4s » http4s-server160 usages
- org.http4s » http4s-ember-client146 usages
- org.http4s » http4s-ember-server108 usages
- org.locationtech.geomesa » geomesa-tools56 usages
- org.http4s » http4s-testing43 usages
- net.shrine » shrine-util39 usages
- com.softwaremill.sttp.tapir » tapir-http4s-server38 usages
- org.locationtech.geotrellis » geotrellis-spark38 usages
- net.shrine » shrine-protocol32 usages
Computed from the dependency graph of build 20261203.1441 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-69211 | nvd.nist.gov |
| Package | http4s/http4s | github.com |
| Web | http4s/http4s advisory GHSA-7qh7-rghh-698h | github.com |
| Web | http4s/http4s commit 5c8e69a | github.com |
| Web | http4s/http4s release v0.23.35 | github.com |
| Web | http4s/http4s release v1.0.0-M47 | github.com |
