Skip to main content
← Vulnerabilities

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

6.3MediumCNA
Exploited
No known exploitation
Fix
Fixed in 3.16.0
Who is exposed
Not reported

Do first: Upgrade to a fixed version: 3.16.0.

Published
Last modified
23/100 · provisional
None on Exploit-DB, Metasploit or GitHub

Summary

A remote attacker can, without logging in and without any user action, make a malicious server's response delete cookies that belong to other domains from a shared cookie jar, such as the one used by urllib's HTTPCookieProcessor. The flaw is in Python's http.cookiejar module, which removed stored cookies when a response carried an already expired Set-Cookie header without first checking the cookie policy.

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

Read the original 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.

cve.now Index

23Pcve.now Index 23 of 100 · methodology v3 · provisional
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure17/25No login or user action needed per the CVSS vector, reachable over the network without a login · Unknown: No advisory context yet
  • Reach?/20Unknown. No tracked technology or package matched
  • Severity6.3/10CVSS 6.3
  • No patch0/5No signal

What would change the score

  • Would score about 68 if added to CISA KEV
  • Would score about 63 if CISA's SSVC rates exploitation active
  • Would score about 28 if advisories confirm default setups are exposed

What to do

  • Upgrade to a fixed version: 3.16.0.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. Record last updated

Affected versions

  • Python Software Foundation CPython

    fixed in 3.16.0

Evidence 4

  1. Advisory
  2. Patch
  3. Report
  4. Link

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

Questions about CVE-2026-124249

Is CVE-2026-124249 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data

Which versions are affected by CVE-2026-124249?

CPython: before 3.16.0.Source: cve.now feed data

How do I fix CVE-2026-124249?

Upgrade to a fixed version: 3.16.0.Source: cve.now feed data