Every CVESearch/Get API key

GHSA-5wvv-q5fv-2388

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

No scoreFix available

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.

What each source reports

GitHub AdvisoriesNo score

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

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.

Record
GHSA-5wvv-q5fv-2388
Weakness
CWE-601
Updated
2026-11-02
OSVNo score

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

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.

Record
GHSA-5wvv-q5fv-2388
Weakness
CWE-601
Updated
2026-11-02
OSVRUSTSEC-2022-0072No score

Location header incorporates user input, allowing open redirect

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.

Record
RUSTSEC-2022-0072
Updated
2026-11-02

Affected packages

Affected packages
PackageAffectedFixed
hyper-staticfile
crates.io
before 0.9.4
0.9.4
hyper-staticfile
crates.io
0.10.0-alpha.1 up to 0.10.0-alpha.5
0.10.0-alpha.5
hyper-staticfile
crates.io
0.0.0-0 up to 0.9.4, 0.10.0-0 up to 0.10.0-alpha.5
0.9.40.10.0-alpha.5

History

History
RecordedChangedSources
first indexedGitHub Advisories, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

GHSA-5wvv-q5fv-2388 is a vulnerability with no CVSS score yet in hyper-staticfile, published December 23, 2022. No source lists public exploit code. Fixed in hyper-staticfile 0.9.4.

References

MoveEnter Open