Read the docs
TI-2022-26705 Aliases GHSA-5wvv-q5fv-2388

hyper-staticfile's location header incorporates user input, allowing open redirect

Priority LOW 38CWE-601Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Spoofing
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-601.

Summary

When `hyper-staticfile` performs a redirect for a directory request (e.g. a request for `/dir` that redirects to `/dir/`), the `Location` header value was derived from user input (the request path), simply appending a slash. The intent was to perform an origin-relative redirect, but specific inputs allowed performing a scheme-relative redirect instead. An attacker could craft a special URL that would appear to be for the correct domain, but immediately redirects to a malicious domain. Such a URL can benefit phishing attacks, for example an innocent looking link in an email.

Why it matters now

Fix Fixed hyper-staticfile (crates.io): 0.9.4, 0.10.0-alpha.5

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—hyper-staticfile (crates.io)before 0.9.40.9.4Patch availableGHSA-5wvv-q5fv-2388
—hyper-staticfile (crates.io)0.10.0-alpha.1 to before 0.10.0-alpha.50.10.0-alpha.5Patch availableGHSA-5wvv-q5fv-2388
  • hyper-staticfile (crates.io) Vendor— Affected before 0.9.4 Fixed in 0.9.4 Patch available GHSA-5wvv-q5fv-2388
  • hyper-staticfile (crates.io) Vendor— Affected 0.10.0-alpha.1 to before 0.10.0-alpha.5 Fixed in 0.10.0-alpha.5 Patch available GHSA-5wvv-q5fv-2388

Remediation

  • Fix · GHSA-5wvv-q5fv-2388 hyper-staticfile (crates.io) Fixed in 0.9.4 Advisory →
  • Fix · GHSA-5wvv-q5fv-2388 hyper-staticfile (crates.io) Fixed in 0.10.0-alpha.5 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-5wvv-q5fv-2388

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences