REDHAT-BUG-2574488: Medium severity Python Software Foundation Python vulnerability

Published Nov 17, 2026
·
Updated

The http.cookies.Morsel class allows separator semicolons in attribute values and includes them verbatim in all output formats. An attacker who can control these values could use this to relax the cookie's Domain or SameSite restrictions.

Affected Software

1 affected component
Python Software Foundation Python

Event History

Nov 17, 2026
Data Sourced
via Red Hat·04:31 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What access does an attacker need to exploit this issue?

The attacker must be able to control values assigned to cookie attributes through Python's http.cookies.Morsel class. The provided information does not identify a remote attack path independent of such application-level control.

2

What security controls could be weakened?

Injected separator semicolons in attribute values can be emitted verbatim and may relax a cookie's Domain or SameSite restrictions.

3

How can I identify potentially affected code?

Review Python application code that uses http.cookies.Morsel and accepts untrusted input for cookie attribute values. Focus on paths that construct or modify cookie attributes before sending them in HTTP responses.

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