Technical impact
The http.cookies.Morsel class accepts semicolons in cookie attribute values and includes them verbatim in all output formats. This flaw allows an attacker who can control those values to inject additional attributes that can relax the cookie's Domain or SameSite restrictions, effectively enabling cross‑domain tracking or a potential CSRF attack. The weakness is a classic example of CWE‑74, a web‑application attack that results in improper input handling.
Affected Systems
Python Software Foundation CPython is affected. Any installation of CPython that includes the http.cookies.Morsel class is vulnerable. No specific CPython version is listed, but the issue exists in the current release until patched.
Risk and Exploitability
The CVSS score is 2.3, indicating a low severity vulnerability. The EPSS score is less than 1%, suggesting a very low likelihood of exploitation. It is not listed in CISA's KEV catalog. The vulnerability is exploitable only if an attacker can influence cookie attribute values, for example through crafted HTTP responses or client-side code. The attack would likely proceed remotely through web traffic without needing privileged access.