Skip to content

Add HTTP/1.1 request framing enforcer#2124

Merged
gavinbunney merged 1 commit intomasterfrom
gavin/h1-smuggling
Apr 22, 2026
Merged

Add HTTP/1.1 request framing enforcer#2124
gavinbunney merged 1 commit intomasterfrom
gavin/h1-smuggling

Conversation

@gavinbunney
Copy link
Copy Markdown
Collaborator

@gavinbunney gavinbunney commented Apr 22, 2026

This adds a Http1FramingEnforcingHandler, immediately after HttpServerCodec in the HTTP/1.1 pipeline, which rejects requests with ambiguous message framing per RFC 9112 section 6.3:

  • Transfer-Encoding and Content-Length both present
  • Content-Length header appearing more than once
  • Content-Length that is not a non-negative integer
  • Transfer-Encoding set without chunked as the final coding

This is enabled by default, however can be disabled via zuul.http1.framing.enforcement.enabled as needed.

@gavinbunney gavinbunney merged commit e137cc4 into master Apr 22, 2026
4 checks passed
@gavinbunney gavinbunney deleted the gavin/h1-smuggling branch April 22, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants