// Security Advisory Triage
http.cookiejar deletes cross-domain cookies via expired Set-Cookie
Python security announcements · published 2026-11-13 06:48 UTC
WHAT CHANGEDCVE-2026-124249 disclosed 7 November 2026. http.cookiejar.CookieJar deletes stored cookies when a response carries an already expired Set-Cookie header, using Domain and Path attributes from the header without consulting the cookie policy. A server can delete cookies belonging to other domains from a shared cookie jar, including urllib's HTTPCookieProcessor.
WHY IT MATTERSApplications using urllib's HTTPCookieProcessor or sharing a CookieJar across domains can have authentication or session cookies deleted by any server that sends a crafted expired Set-Cookie header. This violates RFC 6265 section 5.3 and enables cross-domain session hijacking or forced logout.
WHAT TO DOCheck whether your application uses http.cookiejar.CookieJar or urllib.request.HTTPCookieProcessor with cookies from multiple domains. Remediation: see bulletin https://www.cve.org/CVERecord?id=CVE-2026-124249 and https://github.com/python/cpython/pull/161570
Model-reported confidence 85% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## [Security-announce][CVE-2026-124249] http.cookiejar deletes cookies of other domains via expired Set-Cookie +https://mail.python.org/archives/list/security-announce@python.org/message/Y6IKNZ2VZUS2L6CLQICSFUEMCLT7OLTY/ +Sat, 07 Nov 2026 19:58:34 +0000 + +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
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | Python standard library vulnerability affecting cookie handling in services using urllib or shared cookie jars. |
| signals | affects Python standard library (http.cookiejar) · cookie jar is in normal service dependency tree · cross-domain cookie deletion via server response · affects urllib HTTPCookieProcessor (widely used) · RFC 6265 compliance issue with security implications · MEDIUM severity with known attack vector |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |