PSF-2026-5: Header injection in http.cookies.Morsel
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
Event History
Frequently Asked Questions
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.
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.
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.