CVE-2026-124249
Awaiting Analysis Awaiting Analysis - Queue

CookieJar Deletes Cookies via Expired Set-Cookie Header

Vulnerability report for CVE-2026-124249, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-09

Last updated on: 2026-11-09

Assigner: Python Software Foundation

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-09
Last Modified
2026-11-09
Generated
2026-11-09
AI Q&A
2026-11-09
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
python cookiejar *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-346 The product does not properly verify that the source of data or communication is valid.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-124249 is a vulnerability in Python's http.cookiejar.CookieJar where an expired Set-Cookie header could delete stored cookies for other domains without checking the cookie policy first. This violates RFC 6265 section 5.3, which requires domain checks before removing cookies. A malicious server could exploit this to delete cookies belonging to different domains in a shared cookie jar.

Impact Analysis

This vulnerability could allow an attacker to delete cookies for other domains in a shared cookie jar. This might disrupt user sessions, log users out of applications, or enable session hijacking if cookies are improperly managed. It primarily affects applications using urllib's HTTPCookieProcessor with shared cookie storage.

Mitigation Strategies
  • Update Python to a patched version where the fix for CVE-2026-124249 has been applied, specifically versions 3.11 through 3.16.
  • Review applications using http.cookiejar.CookieJar or urllib's HTTPCookieProcessor to ensure they are using the updated Python versions.
  • Monitor cookie jar behavior in shared environments to detect unexpected cookie deletions across domains.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-124249. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...