BIT-python-min-2026-0672: Header injection in http.cookies.Morsel
Published Jan 20, 2026
·Updated
When using http.cookies.Morsel, user-controlled cookie values and parameters can allow injecting HTTP headers into messages. Patch rejects all control characters within cookie names, values, and parameters.
Affected Software
1 affected component
Python Software Foundation Python
Event History
Jan 20, 2026
CVE Published
via OSV·09:52 PM
Data Sourced
via OSV·09:52 PM
DescriptionSeverityWeakness
Frequently Asked Questions
1
Which deployments are exposed?
Applications that use http.cookies.Morsel and place user-controlled data into cookie names, values, or parameters are exposed to this issue.
2
What access does an attacker need?
The severity vector indicates network reachability, low attack complexity, low privileges required, and no user interaction. It also indicates that an additional attack prerequisite is present.
3
What is the available mitigation?
Apply the patch that rejects all control characters in cookie names, values, and parameters. This prevents the control-character input used for HTTP header injection.