Skip to content
Medium 6.3

`http.cookiejar` applies expired `Set-Cookie` to cookie store before policy validation

CVE-2026-124249 First seen on SecPulse

Affected packages

PackageAffected → Fixed
Python Software FoundationCPython
< 3.16.0a2→ 3.16.0a2
Bitnamilibpython
All versions→ Not listed
Bitnamipython
All versions→ Not listed
Bitnamipython-min
All versions→ Not listed

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details