REDHAT-BUG-2574488: Medium severity Python Software Foundation Python vulnerability
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
Event History
Frequently Asked Questions
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.
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.
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.