[3.11] gh-145599, CVE 2026-3644: Reject control characters in `http.cookies.Morsel.update()` (GH-145600) by miss-islington · Pull Request #146026 · python/cpython · GitHub
Skip to content

[3.11] gh-145599, CVE 2026-3644: Reject control characters in http.cookies.Morsel.update() (GH-145600) - #146026

Merged
pablogsal merged 2 commits into
python:3.11from
miss-islington:backport-57e88c1-3.11
Jun 28, 2026
Merged

pablogsal merged 2 commits into
python:3.11from
miss-islington:backport-57e88c1-3.11

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor

Reject control characters in http.cookies.Morsel.update() and http.cookies.BaseCookie.js_output.
(cherry picked from commit 57e88c1)

Co-authored-by: Stan Ulbrych 89152624+StanFromIreland@users.noreply.github.com
Co-authored-by: Victor Stinner vstinner@python.org
Co-authored-by: Victor Stinner victor.stinner@gmail.com

…okies.Morsel.update()` (pythonGH-145600)

Reject control characters in `http.cookies.Morsel.update()` and `http.cookies.BaseCookie.js_output`.
(cherry picked from commit 57e88c1)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <victor.stinner@gmail.com>

@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.

Comment thread Misc/NEWS.d/next/Security/2026-03-06-17-03-38.gh-issue-145599.kchwZV.rst Outdated
…kchwZV.rst

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@elboulangero

Copy link
Copy Markdown

@StanFromIreland

Copy link
Copy Markdown
Member

@pablogsal
pablogsal merged commit dae4b1a into python:3.11 Jun 28, 2026
22 checks passed
@miss-islington
miss-islington deleted the backport-57e88c1-3.11 branch June 28, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants