{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "3.16.0a2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "4e9d037f1cfc8e29efcb1f67bc668e06ff2b6643"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "8eb3d2c1c41ca7ce628554413981c1eb763a1494"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "ac1d49f4fbb33941475c5aa3cb663ab39d64cb73"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "d1ff5e51e3fbb30bde31fcd7c2c8ef0b3b1b1cef"
            },
            {
              "fixed": "4e9d037f1cfc8e29efcb1f67bc668e06ff2b6643"
            },
            {
              "fixed": "8eb3d2c1c41ca7ce628554413981c1eb763a1494"
            },
            {
              "fixed": "ac1d49f4fbb33941475c5aa3cb663ab39d64cb73"
            }
          ],
          "repo": "https://github.com/python/cpython",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "PSF",
    "cwe_ids": [
      "CWE-346"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/124xxx/CVE-2026-124249.json"
  },
  "details": "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.",
  "id": "CVE-2026-124249",
  "modified": "2026-11-17T06:45:31.570085598Z",
  "published": "2026-11-09T14:20:47.891Z",
  "references": [
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2026/11/09/24"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/124xxx/CVE-2026-124249.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/Y6IKNZ2VZUS2L6CLQICSFUEMCLT7OLTY/"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-124249"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/python/cpython/issues/161569"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/4e9d037f1cfc8e29efcb1f67bc668e06ff2b6643"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/8eb3d2c1c41ca7ce628554413981c1eb763a1494"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/ac1d49f4fbb33941475c5aa3cb663ab39d64cb73"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/pull/161570"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/python/cpython"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "`http.cookiejar` applies expired `Set-Cookie` to cookie store before policy validation"
}