GHSA-6h7w-fc84-x7p6
MODERATECVE-2021-32643StaticFile.fromUrl can leak the presence of a directory on a server when the URL scheme is not file://, and the URL points to a fetchable resource under its scheme and authority. The function returns F[None], indicating no resource, if url.getFile is a directory, without first checking the scheme or authority of the URL. If a URL connection to the scheme and URL would return a stream, and the pa
- Affected
- >= 0.22.0-M1, <= 0.22.0-M8, >= 0.21.7, < 0.21.24, >= 1.0.0-M1, <= 1.0.0-M22, = 0.23.0-M1
- Fixed in
- 0.22.0-RC1
- Weakness
- CWE-22
- Published
- 2021-05-28
- Source
- github