Skip to content

Port "Reject CR/LF in HTTP tunnel request headers" - #5091

Merged
illia-v merged 7 commits into
urllib3:mainfrom
illia-v:fix-tunnel-crlf
Jul 5, 2026
Merged

illia-v merged 7 commits into
urllib3:mainfrom
illia-v:fix-tunnel-crlf

Conversation

@illia-v

@illia-v illia-v commented Jun 24, 2026

Copy link
Copy Markdown
Member

This ports fixes from python/cpython#146211 to our copies of the code for older Python versions.

python/cpython#146211

Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
@illia-v
illia-v requested a review from sethmlarson June 24, 2026 16:04
@illia-v

illia-v commented Jun 27, 2026

Copy link
Copy Markdown
Member Author

I decided to enable the patch for Python 3.11.9-3.11.15 and 3.12.3-3.12.13 too as this costs us nothing, makes more users secure, and reduces complexity of conditions in the test file.

@illia-v
illia-v merged commit e18a0d1 into urllib3:main Jul 5, 2026
38 checks passed
@illia-v
illia-v deleted the fix-tunnel-crlf branch July 5, 2026 21:08
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