gh-145599: Reject control characters in http.cookies.Morsel.update() and http.cookies.BaseCookie.js_output#145600
Conversation
sethmlarson
left a comment
There was a problem hiding this comment.
One small comment, otherwise LGTM. Thank you!
Misc/NEWS.d/next/Security/2026-03-06-17-03-38.gh-issue-145599.kchwZV.rst
Outdated
Show resolved
Hide resolved
http.cookies.Morselhttp.cookies.Morsel.update() and http.cookies.BaseCookie.js_output
Co-authored-by: Victor Stinner <vstinner@python.org>
| Reject control characters in :class:`http.cookies.Morsel` | ||
| :meth:`~http.cookies.Morsel.update` and | ||
| :meth:`~http.cookies.BaseCookie.js_output`. | ||
| This addresses :cve:`2026-3644`. |
There was a problem hiding this comment.
Are you sure about the CVE number?
There was a problem hiding this comment.
This one has been reserved for it, see the sidebar of the GHSA.
Co-authored-by: Victor Stinner <victor.stinner@gmail.com>
vstinner
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the updates.
|
Thanks @StanFromIreland for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11, 3.12, 3.13, 3.14. |
…okies.Morsel.update()` (pythonGH-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>
…okies.Morsel.update()` (pythonGH-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>
|
GH-146023 is a backport of this pull request to the 3.14 branch. |
…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>
|
GH-146024 is a backport of this pull request to the 3.13 branch. |
…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>
|
Sorry, @StanFromIreland and @vstinner, I could not cleanly backport this to |
|
GH-146025 is a backport of this pull request to the 3.12 branch. |
|
GH-146026 is a backport of this pull request to the 3.11 branch. |
…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)
|
GH-146027 is a backport of this pull request to the 3.10 branch. |
|
Merged, thanks for your fix @StanFromIreland.
Are you talking about https://github.com/python/cpython/security/advisories ? I don't see CVE 2026-3644 there. |
…ookies.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 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>
…ookies.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 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>
|
http.cookies.Morsel#145599