MODERATE 4.8

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

Affected Maven artifacts (3)

ArtifactAffected versionsFixed 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

1affected artifacts
379affected versions
1,683dependent artifacts (est.)
82,309dependent versions

70% of the dependent artifacts (1,180) still pull an affected version in their latest release.

DepthDependent 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

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.