Skip to content

Forward-port fixes from release 6.5.6 to main branch#3628

Merged
bdarnell merged 4 commits into
tornadoweb:masterfrom
bdarnell:forward-port-656
May 27, 2026
Merged

Forward-port fixes from release 6.5.6 to main branch#3628
bdarnell merged 4 commits into
tornadoweb:masterfrom
bdarnell:forward-port-656

Conversation

@bdarnell

Copy link
Copy Markdown
Member

No description provided.

bdarnell added 4 commits May 27, 2026 12:07
This previously used substring search, which is incorrect, although
unlikely to be a vulnerability because there are no free-form text
fields allowed in this response format.
This ensures we limit the post-decompression size of the body, and not
only the compressed size (which is enforced via the Content-Length
header at header-processing time).
The lack of this check permitted a read of up to 3 bytes past the end
of the string in some cases.
When following a redirect to a different origin (scheme, host, or port),
auth-related headers (Authorization and Cookie) should be stripped to
avoid exposing them to the new host.
@bdarnell bdarnell merged commit f69de6c into tornadoweb:master May 27, 2026
16 checks passed
@bdarnell bdarnell deleted the forward-port-656 branch May 27, 2026 16:22
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.

1 participant