`http.cookiejar` applies expired `Set-Cookie` to cookie store before policy validation
CVE-2026-124249Published 9 Nov 2026, 14:20 UTC
Real-world risk
1.1/ 10Low
Routine
If the vulnerable configuration applies to you: 2.6
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.3
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from PSF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| CPythonUbiquitous | < 3.16.0a2 | 3.16.0a2 |
What to do
Update to a fixed version: 3.16.0a2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 21), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.45 × threat 0.851.147
- Rounded to one decimal between 0.1 and 101.1
Exploitation and evidence timeline
- 9 Nov 2026 Published
- 3 Dec 2026 Risk 1.1 (cvss fallback)
Weakness
CWE-346
References
- https://github.com/python/cpython/pull/161570patch
- https://github.com/python/cpython/issues/161569issue-tracking
- https://mail.python.org/archives/list/[email protected]/thread/Y6IKNZ2VZUS2L6CLQICSFUEMCLT7OLTY/vendor-advisory
- https://github.com/python/cpython/commit/4e9d037f1cfc8e29efcb1f67bc668e06ff2b6643patch
- https://github.com/python/cpython/commit/8eb3d2c1c41ca7ce628554413981c1eb763a1494patch
- https://github.com/python/cpython/commit/ac1d49f4fbb33941475c5aa3cb663ab39d64cb73patch
- http://www.openwall.com/lists/oss-security/2026/11/09/24
- CVE-2026-124249 on CVE.org