PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-124249 Python Software Foundation CVE debrief

A vulnerability in Python's `http.cookiejar` module allows a server to delete cookies belonging to other domains from a shared cookie jar. This issue arises because the `CookieJar` class applies an expired `Set-Cookie` header to the cookie store before validating it against the cookie policy, as required by RFC 6265 section 5.3. The vulnerability has been addressed in Python 3.16.0.

Vendor
Python Software Foundation
Product
CPython
CVSS
MEDIUM 6.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-09
Original CVE updated
2026-11-12
Advisory published
2026-11-09
Advisory updated
2026-11-12

Who should care

Defenders responsible for Python applications using the `http.cookiejar` module should assess exposure and prioritize upgrading to Python 3.16.0 or later. This includes operators, platform administrators, vulnerability management teams, and security teams who manage Python applications and need to ensure the security of their cookie jar configurations.

Why it matters

This vulnerability allows a server to delete cookies belonging to other domains from a shared cookie jar, potentially impacting Python applications using the `http.cookiejar` module. Defenders should prioritize verifying and upgrading to Python 3.16.0 or later.

  • Potential cookie deletion issues in shared cookie jars
  • Verification of cookie jar configurations and policies
  • Upgrade and patch management for Python applications

Technical summary

The `http.cookiejar.CookieJar` class in Python's `http.cookiejar` module incorrectly applies an expired `Set-Cookie` header to the cookie store before validating it against the cookie policy. This allows a server to delete cookies belonging to other domains from a shared cookie jar. The vulnerability has been addressed in Python 3.16.0. 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.

Defensive priority

Defenders should prioritize verifying and upgrading to Python 3.16.0 or later to address this vulnerability.

Recommended defensive actions

  • Verify and upgrade to Python 3.16.0 or later
  • Review and update cookie jar configurations
  • Monitor for potential cookie deletion issues
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The CVE record and source item provide details about the vulnerability, its impact, and the fix. However, the corpus does not establish versions, exploitation, impact, or remediation beyond the provided information.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-124249 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-124249

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-124249 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-124249

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • `http.cookiejar` applies expired `Set-Cookie` to cookie store before policy validation

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/124xxx/CVE-2026-124249.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/python/cpython/pull/161570

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/python/cpython/issues/161569

    Supplemental source - issue-tracking

  • Source reference

    Unverified legacy reference

    URL: https://mail.python.org/archives/list/[email protected]/thread/Y6IKNZ2VZUS2L6CLQICSFUEMCLT7OLTY/

    Supplemental source - vendor-advisory

  • Source reference

    Unverified legacy reference

    URL: https://github.com/python/cpython/commit/4e9d037f1cfc8e29efcb1f67bc668e06ff2b6643

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/python/cpython/commit/8eb3d2c1c41ca7ce628554413981c1eb763a1494

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/python/cpython/commit/ac1d49f4fbb33941475c5aa3cb663ab39d64cb73

    Supplemental source - patch

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.