]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-145599, CVE 2026-3644: Reject control characters in `http.cookies.Morsel...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 16 Mar 2026 14:05:13 +0000 (15:05 +0100)
committerGitHub <noreply@github.com>
Mon, 16 Mar 2026 14:05:13 +0000 (14:05 +0000)
commitd16ecc6c3626f0e2cc8f08c309c83934e8a979dd
treece06c229cf7f716f193941dd3d24ed2f0c396990
parent196edfb06a7458377d4d0f4b3cd41724c1f3bd4a
[3.13] gh-145599, CVE 2026-3644: Reject control characters in `http.cookies.Morsel.update()` (GH-145600) (#146024)

gh-145599, CVE 2026-3644: Reject control characters in `http.cookies.Morsel.update()` (GH-145600)

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

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>
Lib/http/cookies.py
Lib/test/test_http_cookies.py
Misc/NEWS.d/next/Security/2026-03-06-17-03-38.gh-issue-145599.kchwZV.rst [new file with mode: 0644]