freenode

← CVE tracker

CVE-2026-124249

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

Severity
medium CVSS 6.3 (v4.0)
Affects
CPython · Python Software Foundation
Weakness
CWE-346
Published
9 November 2026 by PSF
First seen on our lists
9 November 2026
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.

Our coverage

We have not written about this one. Know why it matters? Send a tip.

On the lists