{"affected":[{"defaultStatus":"unaffected","product":"CPython","source":"CNA: PSF","vendor":"Python Software Foundation","versions":[{"lessThan":"3.16.0","status":"affected","version":"0","versionType":"python"}]}],"cveId":"CVE-2026-124249","cwes":["CWE-346"],"description":"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":6.3,"severity":"medium","source":"CNA: PSF","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","version":"4.0"},{"score":6.3,"severity":"medium","source":"NVD: cna@python.org","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"}],"modifiedAt":1794270294866,"publishedAt":1794234047891,"references":[{"source":"CNA: PSF","tags":["patch"],"url":"https://github.com/python/cpython/pull/161570"},{"source":"CNA: PSF","tags":["issue-tracking"],"url":"https://github.com/python/cpython/issues/161569"},{"source":"CNA: PSF","tags":["vendor-advisory"],"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/Y6IKNZ2VZUS2L6CLQICSFUEMCLT7OLTY/"},{"source":"CNA: PSF","tags":["patch"],"url":"https://github.com/python/cpython/commit/4e9d037f1cfc8e29efcb1f67bc668e06ff2b6643"},{"source":"CNA: PSF","tags":["patch"],"url":"https://github.com/python/cpython/commit/8eb3d2c1c41ca7ce628554413981c1eb763a1494"},{"source":"CNA: PSF","tags":["patch"],"url":"https://github.com/python/cpython/commit/ac1d49f4fbb33941475c5aa3cb663ab39d64cb73"},{"source":"ADP: CVE","tags":[],"url":"http://www.openwall.com/lists/oss-security/2026/11/09/24"},{"source":"cna@python.org","tags":[],"url":"https://github.com/python/cpython/issues/161569"},{"source":"cna@python.org","tags":[],"url":"https://github.com/python/cpython/pull/161570"},{"source":"cna@python.org","tags":[],"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/Y6IKNZ2VZUS2L6CLQICSFUEMCLT7OLTY/"},{"source":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"url":"http://www.openwall.com/lists/oss-security/2026/11/09/24"}],"remediation":[{"kind":"fix","source":"CNA: PSF","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/python/cpython/pull/161570"},{"kind":"fix","source":"CNA: PSF","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/python/cpython/commit/4e9d037f1cfc8e29efcb1f67bc668e06ff2b6643"},{"kind":"fix","source":"CNA: PSF","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/python/cpython/commit/8eb3d2c1c41ca7ce628554413981c1eb763a1494"},{"kind":"fix","source":"CNA: PSF","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/python/cpython/commit/ac1d49f4fbb33941475c5aa3cb663ab39d64cb73"}],"revision":"1e67368ce4a813e07859b17497f797c72611aa93875fa540b6760d07460ee04f","sources":[{"modifiedAt":1794270294866,"name":"CNA: PSF","retrievedAt":1794272956581,"url":"https://www.cve.org/CVERecord?id=CVE-2026-124249"},{"modifiedAt":1794262719090,"name":"NVD","retrievedAt":1794269941102,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-124249"}],"ssvc":null,"status":"published","title":"`http.cookiejar` applies expired `Set-Cookie` to cookie store before policy validation","updatedAt":1794272956581}