Skip to content

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

Open
vstinner wants to merge 2 commits intopython:3.10from
vstinner:cookies10
Open

[3.10] gh-145599, CVE 2026-3644: Reject control characters in http.cookies.Morsel.update() (#145600)#146027
vstinner wants to merge 2 commits intopython:3.10from
vstinner:cookies10

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Mar 16, 2026

Reject control characters in http.cookies.Morsel.update() and http.cookies.BaseCookie.js_output.

(cherry picked from commit 57e88c1)

…okies.Morsel.update()` (python#145600)

Reject control characters in `http.cookies.Morsel.update()` and `http.cookies.BaseCookie.js_output`.

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <victor.stinner@gmail.com>
(cherry picked from commit 57e88c1)
Copy link
Member Author

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM.

I backported manually the change from the main branch to fix a conflict in Lib/test/test_http_cookies.py.

…kchwZV.rst

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants