UBUNTU-CVE-2026-124249: Medium severity ubuntu/python2.7 vulnerability

Published Nov 12, 2026
·
Updated

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.

Affected Software

17 affected components
ubuntu/python2.7*
ubuntu/python3.4*
ubuntu/python3.5*
ubuntu/python2.7*
ubuntu/python3.5*
ubuntu/python2.7*
ubuntu/python3.6*
ubuntu/python3.7*
ubuntu/python3.8*
ubuntu/python2.7*
ubuntu/python3.9*
ubuntu/python3.10*
ubuntu/python2.7*
ubuntu/python3.11*
ubuntu/python3.12*
ubuntu/python3.14*
ubuntu/python3.14*

Event History

Nov 12, 2026
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which applications are most exposed to this issue?

Applications that use a shared http.cookiejar.CookieJar across requests to different domains are most exposed. The description specifically identifies cookie jars used by urllib's HTTPCookieProcessor as an example.

2

What does an attacker need to do to exploit the issue?

The attacker needs to cause the client to process a response containing an already expired Set-Cookie header. The header can use Domain and Path attributes that target a cookie belonging to another domain in the shared cookie jar.

3

What behavior does the fix change?

The fix requires the cookie policy to be consulted before an expired cookie can delete an existing stored cookie. This aligns expired-cookie deletion handling with RFC 6265 section 5.3.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203