Injection Vulnerability in Python's HTTP Cookie Handling
CVE-2026-0672
6MEDIUM
What is CVE-2026-0672?
The vulnerability arises in Python's http.cookies.Morsel, where improperly validated user-controlled cookie values and parameters can lead to HTTP header injection. This flaw allows malicious users to manipulate HTTP messages through crafted cookies. A recent patch addresses this issue by rejecting all control characters within cookie names, values, and parameters, thereby enhancing the security of applications relying on this component.
Affected Version(s)
CPython 0 < 3.10.20
CPython 3.11.0 < 3.11.15
CPython 3.12.0 < 3.12.13
