MEDIUM5.3
GHSA-q89x-f52w-6hj2
Headers containing newline characters can split messages in hyper
Details
Serializing of headers to the socket did not filter the values for newline bytes (\r or \n), which allowed for header values to split a request or response. People would not likely include newlines in the headers in their own applications, so the way for most people to exploit this is if an application constructs headers based on unsanitized user input.
This issue was fixed by replacing all newline characters with a space during serialization of a header value.
Are you affected?
Enter the version of the package you're using.
Affected packages
crates.io/hyper
Introduced in:
0.10.0Fixed in: 0.10.2Upgrade hyper to 0.10.2 or newer (ecosystem crates.io).
crates.io/hyper
Introduced in:
0Fixed in: 0.9.18Upgrade hyper to 0.9.18 or newer (ecosystem crates.io).