Skip to content

[3.12] gh-144370: Disallow usage of control characters in status in wsgiref.handlers for security (GH-144371) - #145671

Merged
Yhg1s merged 2 commits into
python:3.12from
miss-islington:backport-d931725-3.12
Aug 4, 2026
Merged

[3.12] gh-144370: Disallow usage of control characters in status in wsgiref.handlers for security (GH-144371)#145671
Yhg1s merged 2 commits into
python:3.12from
miss-islington:backport-d931725-3.12

Conversation

@miss-islington

@miss-islington miss-islington commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Disallow usage of control characters in status in wsgiref.handlers
to prevent HTTP header injections.
(cherry picked from commit d931725)

Co-authored-by: Benedikt Johannes benedikt.johannes.hofer@gmail.com
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Victor Stinner vstinner@python.org

…giref.handlers for security (pythonGH-144371)

Disallow usage of control characters in status in wsgiref.handlers
to prevent HTTP header injections.
(cherry picked from commit d931725)

Co-authored-by: Benedikt Johannes <benedikt.johannes.hofer@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 17, 2026
@Yhg1s
Yhg1s merged commit d45067d into python:3.12 Aug 4, 2026
45 of 47 checks passed
@miss-islington
miss-islington deleted the backport-d931725-3.12 branch August 4, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Stale PR or inactive for long period of time. type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants