]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-143916: Reject control characters in wsgiref.headers.Headers (GH-143917...
authorGregory P. Smith <68491+gpshead@users.noreply.github.com>
Sat, 17 Jan 2026 18:23:57 +0000 (10:23 -0800)
committerGitHub <noreply@github.com>
Sat, 17 Jan 2026 18:23:57 +0000 (18:23 +0000)
commit22e4d55285cee52bc4dbe061324e5f30bd4dee58
treeb85dbfb132064c4046b81ef17396f41cc25f0b09
parent0f21962fb7ae06d3cb0165fe8869736d56ee9a3a
[3.13] gh-143916: Reject control characters in wsgiref.headers.Headers (GH-143917) (#143973)

gh-143916: Reject control characters in wsgiref.headers.Headers  (GH-143917)

* Add 'test.support' fixture for C0 control characters
* gh-143916: Reject control characters in wsgiref.headers.Headers

(cherry picked from commit f7fceed79ca1bceae8dbe5ba5bc8928564da7211)

Co-authored-by: Seth Michael Larson <seth@python.org>
Lib/test/support/__init__.py
Lib/test/test_wsgiref.py
Lib/wsgiref/headers.py
Misc/NEWS.d/next/Security/2026-01-16-11-07-36.gh-issue-143916.dpWeOD.rst [new file with mode: 0644]