Title: `http.cookiejar` deletes cookies of other domains via expired Set-Cookie [CVE-2026-124249] · Issue #161569 · python/cpython · GitHub
Open Graph Title: `http.cookiejar` deletes cookies of other domains via expired Set-Cookie [CVE-2026-124249] · Issue #161569 · python/cpython
X Title: `http.cookiejar` deletes cookies of other domains via expired Set-Cookie [CVE-2026-124249] · Issue #161569 · python/cpython
Description: http.cookiejar.CookieJar deletes a stored cookie when a response carries an already expired Set-Cookie for it, without checking the cookie policy. A server can therefore delete cookies belonging to other domains from a shared jar, which ...
Open Graph Description: http.cookiejar.CookieJar deletes a stored cookie when a response carries an already expired Set-Cookie for it, without checking the cookie policy. A server can therefore delete cookies belonging to...
X Description: http.cookiejar.CookieJar deletes a stored cookie when a response carries an already expired Set-Cookie for it, without checking the cookie policy. A server can therefore delete cookies belonging to...
Opengraph URL: https://github.com/python/cpython/issues/161569
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`http.cookiejar` deletes cookies of other domains via expired Set-Cookie [CVE-2026-124249]","articleBody":"`http.cookiejar.CookieJar` deletes a stored cookie when a response carries an already expired `Set-Cookie` for it, without checking the cookie policy.\nA server can therefore delete cookies belonging to other domains from a shared jar, which is the default for urllib's `HTTPCookieProcessor`.\n\nRFC 6265, section 5.3, requires the domain check to happen before an existing cookie is removed. The fix consults `CookiePolicy.set_ok()` before an expired cookie is allowed to delete anything.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-161570\n* gh-161579\n* gh-161580\n* gh-161581\n* gh-161582\n* gh-161583\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/Eclips4","@type":"Person","name":"Eclips4"},"datePublished":"2026-11-07T17:32:15Z","url":"https://github.com/python/cpython/issues/161569"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c3264fe8-a933-dba5-19e1-c09131cae2ae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C43A:29AEE8:3566385:471A972:6B02029E |
| html-safe-nonce | 59f0372a2293365fe86d0edbb38dd8edbcb8acec9063c5e0b5966466a31914f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDNBOjI5QUVFODozNTY2Mzg1OjQ3MUE5NzI6NkIwMjAyOUUiLCJ2aXNpdG9yX2lkIjoiMTY1Njc5Njc4NzQxNzE1NDIwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6338c23b0eed17b9d6de54bd982eda85b3f0fe9d81149b13408de94f50a8b8e8 |
| hovercard-subject-tag | issue:6262172668 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/161569/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e6e837c95acb9bec20a5f156e37db93d6ddda62958d3cd284819d0ff798f74bc/python/cpython/issues/161569 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e6e837c95acb9bec20a5f156e37db93d6ddda62958d3cd284819d0ff798f74bc/python/cpython/issues/161569 |
| og:image:alt | http.cookiejar.CookieJar deletes a stored cookie when a response carries an already expired Set-Cookie for it, without checking the cookie policy. A server can therefore delete cookies belonging to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Eclips4 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width