BIT-libpython-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 applications are exposed?

Applications are exposed when they use http.cookies.Morsel with cookie names, values, or parameters that can be influenced by a user. Code that does not pass user-controlled data into Morsel is not identified as affected by the available information.

2

What does an attacker need to exploit this issue?

An attacker needs a way to supply crafted cookie-related input to vulnerable Morsel usage. The supplied metadata indicates network reachability, low privileges, no user interaction, and that additional attack conditions are required.

3

What can be done before applying the patch?

Ensure cookie names, values, and parameters passed to Morsel reject control characters. The patch addresses the issue by rejecting all control characters in those fields.

4

How can I identify potentially affected code?

Review uses of http.cookies.Morsel and trace whether cookie names, values, or parameters originate from requests or other user-controlled sources. Inputs containing control characters are the relevant indicator for this issue.

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