Http4s improperly parses User-Agent and Server headers
Package
Affected versions
>= 0.1.0, < 0.21.34
>= 0.22.0, < 0.22.15
>= 0.23.0, < 0.23.17
>= 1.0.0-M1, < 1.0.0-M38
Patched versions
0.21.34
0.22.15
0.23.17
1.0.0-M38
Description
Published by the National Vulnerability Database
Jan 4, 2023
Published to the GitHub Advisory Database
Jan 6, 2023
Reviewed
Jan 6, 2023
Last updated
Jan 30, 2023
Impact
The
User-Agent
andServer
header parsers are susceptible to a fatal error on certain inputs. In http4s, modeled headers are lazily parsed, so this only applies to services that explicitly request these typed headers.v0.21.x
v0.22.x, v0.23.x, v1.x
Patches
Fixes are released in 0.21.34, 0.22.15, 0.23.17, and 1.0.0-M38.
Workarounds
Use the weakly typed header interface
v0.21.x
v0.22.x, v0.23.x, v1.x
References