`http.cookiejar` applies expired `Set-Cookie` to cookie store before policy validation
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Python Software FoundationCPython |
< 3.16.0a2→ 3.16.0a2 |
3.16.0a2 |
| Bitnamilibpython |
All versions→ Not listed |
Not listed |
| Bitnamipython |
All versions→ Not listed |
Not listed |
| Bitnamipython-min |
All versions→ Not listed |
Not listed |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-124249 python3.15, python3.14, python3.13 +1 more No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-124249 python3.14, python3.12, python3.11 +8 more No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory mail.python.org
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- report github.com
- web mail.python.org
- web github.com
- web openwall.com