# CVE-2026-124249: `http.cookiejar` applies expired `Set-Cookie` to cookie store before policy validation

- Severity: Medium 6.3 (CVSS:4.0, scored by PSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-11-09T14:20:47.891Z
- Modified: 2026-11-27T06:56:29.277Z
- Also known as: BIT-LIBPYTHON-2026-124249, BIT-PYTHON-2026-124249, BIT-PYTHON-MIN-2026-124249
- Weaknesses: CWE-346
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## 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.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.16.0a2
- libpython (Bitnami): all versions
- python (Bitnami): all versions
- python-min (Bitnami): all versions

## Every score

- PSF: CVSS:4.0 6.3 Medium `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`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/python/cpython/pull/161570> (patch, web)
- <https://github.com/python/cpython/issues/161569> (issue-tracking, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/Y6IKNZ2VZUS2L6CLQICSFUEMCLT7OLTY/> (vendor-advisory, web)
- <https://github.com/python/cpython/commit/4e9d037f1cfc8e29efcb1f67bc668e06ff2b6643> (patch, web)
- <https://github.com/python/cpython/commit/8eb3d2c1c41ca7ce628554413981c1eb763a1494> (patch, web)
- <https://github.com/python/cpython/commit/ac1d49f4fbb33941475c5aa3cb663ab39d64cb73> (patch, web)
- <http://www.openwall.com/lists/oss-security/2026/11/09/24> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-124249> (web)

## Sources

- CVE List: [CVE-2026-124249](https://www.cve.org/CVERecord?id=CVE-2026-124249), CVE Terms of Use, modified 2026-11-12
- NVD: [CVE-2026-124249](https://nvd.nist.gov/vuln/detail/CVE-2026-124249), Public domain, modified 2026-11-12
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2026-124249](https://osv.dev/vulnerability/BIT-LIBPYTHON-2026-124249), Apache-2.0, modified 2026-11-27
- Bitnami Vulnerability Database: [BIT-PYTHON-2026-124249](https://osv.dev/vulnerability/BIT-PYTHON-2026-124249), Apache-2.0, modified 2026-11-27
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2026-124249](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2026-124249), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-124249 · Whole record: https://cve.day/CVE-2026-124249.json · Rebuilt by cve.day 2026-11-27T07:07:43.155Z
