CVE-2026-124249

NameCVE-2026-124249
Descriptionhttp.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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python3.11 (PTS)bookworm3.11.2-6+deb12u8vulnerable
bookworm (security)3.11.2-6+deb12u9vulnerable
python3.13 (PTS)trixie3.13.5-2+deb13u5vulnerable
python3.14 (PTS)forky, sid3.14.10-1vulnerable
python3.15 (PTS)forky, sid3.15.2-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python3.11source(unstable)(unfixed)
python3.13source(unstable)(unfixed)
python3.14source(unstable)(unfixed)
python3.15source(unstable)(unfixed)

Notes

[trixie] - python3.13 <no-dsa> (Minor issue)
https://github.com/python/cpython/issues/161569
https://github.com/python/cpython/pull/161570
https://github.com/python/cpython/commit/4e9d037f1cfc8e29efcb1f67bc668e06ff2b6643 (3.15 branch)
https://github.com/python/cpython/commit/ac1d49f4fbb33941475c5aa3cb663ab39d64cb73 (3.14 branch)
https://github.com/python/cpython/pull/161581 (3.13 branch)
https://github.com/python/cpython/pull/161583 (3.11 branch)

Search for package or bug name: Reporting problems