CVE-2026-124249

Medium

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.

SeverityMedium
CVSS6.3
Exploit probability—
ProductCPython
PublishedNov 9, 2026
First seenNov 9, 2026
Weakness typeCWE-346CWE-346

How to fix

Affected products

ProductAffected versionsFixed in
Python Software Foundation CPythonv < 3.16.03.16.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.