Starlette before 1.0.1 does not validate the Host header when reconstructing request.url, so a malformed header can make request.url.path differ from the requested path. Security checks in middleware or endpoints that rely on request.url instead of the raw scope path can be bypassed.
Starlette before 1.0.1 does not validate the Host header when reconstructing request.url, so a malformed header can make request.url.path differ from the requested path. Security checks in middleware or endpoints that rely on request.url instead of the raw scope path can be bypassed.