CVE-2026-16052Published Nov 12, 2026 · Nov 12Updated 2d ago
CPython cookie restriction bypass in http.cookies.Morsel
Python Software Foundation CPython
Low2.3Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Python Software Foundation CPython |
| No fix yet |
Original description
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.
From the CVE record · PSF