{"id":"CVE-2026-124249","published":"2026-11-09T14:20:47Z","modified":"2026-11-12T16:23:47Z","title":"`http.cookiejar` applies expired `Set-Cookie` to cookie store before policy validation","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"http.cookiejar.CookieJar deleted a stored cookie when a response carried an\nalready expired Set-Cookie header for it, using the Domain and Path\nattributes from the header without consulting the cookie policy. A server\ncould therefore delete cookies belonging to other domains from a shared\ncookie jar, such as the one used by urllib's HTTPCookieProcessor. The fix\nconsults the cookie policy before an expired cookie may delete an existing\none, as required by RFC 6265 section 5.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00272,"percentile":0.19984,"provenance":"source"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"references":[{"url":"https://github.com/python/cpython/pull/161570","tags":["patch"]},{"url":"https://github.com/python/cpython/issues/161569","tags":["issue-tracking"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/Y6IKNZ2VZUS2L6CLQICSFUEMCLT7OLTY/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/4e9d037f1cfc8e29efcb1f67bc668e06ff2b6643","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/8eb3d2c1c41ca7ce628554413981c1eb763a1494","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/ac1d49f4fbb33941475c5aa3cb663ab39d64cb73","tags":["patch"]},{"url":"http://www.openwall.com/lists/oss-security/2026/11/09/24","tags":[]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":4.0},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 3.16.0a2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-12T16:23:30.385286Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-120068","exploited":false,"provenance":"source"}}