Issue #1940: http: a response header value with CR or LF is refused by the encoder (ADR-raw-sinks-1 D1)

Open and answer this issue on GitHub.

blocked, safety · opened 2026-11-16 · updated 2026-11-16 · 0 comments

Left open by ADR-raw-sinks-1 §4. Decided there: when http’s response gets a header setter, a CR or LF in a header value is refused by the encoder (D1: an encoder has no raw mode). This stops header injection and response splitting.

Blocked on

http’s response has no header setter yet. This issue becomes ready when an issue that adds one is filed or built. The setter’s own issue carries this rule in its To build list.

To build

  1. The header setter throws (or refuses at build time, for a literal) on a value containing \r or \n. Done when a .nika test in the package’s tests shows the refusal for an outside value and for a literal.
  2. Part III 17 http states the rule beside the setter. Done when the section cites ADR-raw-sinks-1 D1.

Back to Open Issues