# hyper-staticfile's improper validation of Windows paths could lead to directory traversal attack

Source: https://junglewise.ai/threats/hyper-staticfile-s-improper-validation-of-windows-paths-could-lead-to-752ca7ba  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-12-05  
License: CC BY 4.0 with a link back

Severity: info · Published 2022-12-05

hyper-staticfile's improper validation of Windows paths could lead to directory traversal attack

Technologies: [hyper-staticfile (crates.io)](https://junglewise.ai/threats/technologies/hyper-staticfile). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 5 December 2022.

**Which products and versions are affected?** hyper-staticfile (crates.io) SEMVER:introduced=0,fixed=0.9.2.

**Is there a fix for This vulnerability?** Yes. hyper-staticfile (crates.io): upgrade to 0.9.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run hyper-staticfile (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- hyper-staticfile (crates.io): upgrade to 0.9.2 or later

  ```sh
  cargo update -p hyper-staticfile
  ```


## Affected products

- hyper-staticfile (crates.io) SEMVER:introduced=0,fixed=0.9.2

## Related threats

- [hyper-staticfile's location header incorporates user input, allowing open redirect](https://junglewise.ai/threats/hyper-staticfile-s-location-header-incorporates-user-input-allowing-93b119c9)
- [RUSTSEC-2022-0072 - Location header incorporates user input, allowing open redirect](https://junglewise.ai/threats/rustsec-2022-0072-location-header-incorporates-user-input-allowing-open-84aae44c)
- [RUSTSEC-2022-0069 - Improper validation of Windows paths could lead to directory traversal attack](https://junglewise.ai/threats/rustsec-2022-0069-improper-validation-of-windows-paths-could-lead-to-771c15d8)
