oss-sec mailing list archives

[oss-security][CVE-2026-3644] CPython Incomplete control character validation in http.cookies


From: Alan Coopersmith <alan.coopersmith () oracle com>
Date: Mon, 16 Mar 2026 15:13:46 -0700




-------- Forwarded Message --------
Subject:        [Security-announce][CVE-2026-3644] Incomplete control character validation in http.cookies
Date:   Mon, 16 Mar 2026 17:28:35 +0000
From:   Stan Ulbrych via Security-announce <security-announce () python org>
Reply-To:       security-sig () python org
To:     security-announce () python org
CC:     Stan Ulbrych <stanulbrych () gmail com>



There is a MEDIUM severity vulnerability
affecting CPython.

The fix for CVE-2026-0672, which rejected control characters in http.cookies.Morsel,
was incomplete. The Morsel.update(), |= operator, and unpickling paths were not
patched, allowing control characters to bypass input validation. Additionally,
BaseCookie.js_output() lacked the output validation applied to BaseCookie.output().

Please see the linked CVE ID for the latest information on
affected versions:

* https://www.cve.org/CVERecord?id=CVE-2026-3644
* https://github.com/python/cpython/commit/57e88c1cf95e1481b94ae57abe1010469d47a6b4

--
Best regards,
  Stan Ulbrych.
_______________________________________________
Security-announce mailing list -- security-announce () python org
To unsubscribe send an email to security-announce-leave () python org
https://mail.python.org/mailman3//lists/security-announce.python.org


Current thread: