]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: http-htx: Don't use data from HTX message to update authority
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Apr 2026 09:06:16 +0000 (11:06 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 29 Apr 2026 08:03:39 +0000 (10:03 +0200)
commit632b54ebfc8847037d1a0537c536be53fc0a7214
tree0e61077f7397c846b70e5f5081f87660cbeb1bbf
parent48afa73af81876f064d02d01ec6ad1a9da34adcb
BUG/MEDIUM: http-htx: Don't use data from HTX message to update authority

When a host header value is updated, the authority can also be updated
accordingly. When it is performed, we must not use the new host header value
from the HTX message. Instead we must use the data passed as argument. It is
unexpected but the host header can have several comma-separated values.
Using the full header value can lead to unexpected result.

Note: having multiple comma-separated values for the host header should not
      be supported. The comma should be part of the host value. But it is
      quite ambiguous. This will be fixed in another commit.

This patch must be backported to all stable versions.
src/http_htx.c