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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203