cvelo
P3 · MediumCVSS 4.8EPSS 0.2%

http4s: Set-Cookie rendering does not escape attribute delimiters

  • CVE-2026-69211
  • GHSA-7qh7-rghh-698h
  • EUVD-2026-79175

Description

Show the whole 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 - [RFC6265 §4.1](https://www.rfc-editor.org/info/rfc6265/#section-4.1.1): Set-Cookie syntax

Text from the GitHub Advisory record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • http4s

    Affected versionsFixed in
    from 1.0.0-M1 to before 1.0.0-M471.0.0-M47
    before 0.23.350.23.35
  • org.http4s:http4s-core_2.12Maven

    Affected versionsFixed in
    before 0.23.350.23.35
  • org.http4s:http4s-core_2.13Maven

    Affected versionsFixed in
    from 1.0.0-M2 to before 1.0.0-M471.0.0-M47
    before 0.23.350.23.35
  • org.http4s:http4s-core_3Maven

    Affected versionsFixed in
    from 1.0.0-M2 to before 1.0.0-M471.0.0-M47
    before 0.23.350.23.35

Product versions from the ENISA EUVD record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.