[ CVE-2026-124249 · Published 9 Nov 2026 ]

Vulnerability in Python Software Foundation CPython

[ Description ]Official description

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.

[ Fixes ]How to fix it

Fixed versions

  • Python Software Foundation CPython: upgrade to 3.16.0 or laterEarlier versions are listed as affected

From the affected-version ranges in the CVE record. Check the vendor's advisory for the exact release for your platform or branch.

Vendor advisories and patches