PSF-2026-5: 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

Who is exposed to this issue?

Applications using http.cookies.Morsel are exposed when user-controlled data can reach cookie names, values, or parameters. The affected behavior can inject HTTP headers into messages.

2

What does an attacker need to exploit it?

An attacker needs the ability to supply or influence cookie names, values, or parameters processed through http.cookies.Morsel. No user interaction is indicated in the provided severity vector.

3

What mitigation is available if patching is not immediately possible?

Reject control characters in all cookie names, values, and parameters before they are passed to http.cookies.Morsel. The patch addresses the issue by rejecting all such control characters.

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