]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:13:19 +0000 (15:13 +0100)
committerGitHub <noreply@github.com>
Mon, 16 Mar 2026 14:13:19 +0000 (14:13 +0000)
commit62ceb396fcbe69da1ded3702de586f4072b590dd
treedc4fc3bde9fe0f73752ff37c09230d6d7cd255bf
parent8bc3aa9ac3bf4ccb5a95b56ffac04c3cb33b4433
[3.14] gh-145599, CVE 2026-3644: Reject control characters in `http.cookies.Morsel.update()` (GH-145600) (#146023)

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]