-------- Forwarded Message --------
Subject: [Security-announce][CVE-2026-124249] http.cookiejar deletes cookies of other domains via expired Set-Cookie
Date:   Sat, 7 Nov 2026 21:58:22 +0200
From:   Kirill Podoprigora via Security-announce <[email protected]>
Reply-To:       [email protected]
To:     [email protected]
CC:     Kirill Podoprigora <[email protected]>

There is a MEDIUM severity vulnerability affecting CPython.

http.cookiejar.CookieJar deleted a stored cookie when a response carried an already expired Set-Cookie header for it, using the Domain and Path attributes from the header without consulting the cookie policy. A server could therefore delete cookies belonging to other domains from a shared cookie jar, such as the one used by urllib's HTTPCookieProcessor. The fix consults the cookie policy before an expired cookie may delete an existing one, as required by RFC 6265 section 5.3.

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

* https://www.cve.org/CVERecord?id=CVE-2026-124249
* https://github.com/python/cpython/pull/161570

_______________________________________________
Security-announce mailing list -- [email protected]
https://mail.python.org/mailman3//lists/security-announce.python.org

Reply via email to