{"answers":{"affected":"5 open source packages ship an affected version, including hyper-staticfile.","exploited":"There is no known exploitation of GHSA-5wvv-q5fv-2388 in the wild and no public exploit code.","fix":"Upgrade hyper-staticfile to a fixed version for your release line: 0.9.4 or 0.10.0-alpha.5.","what":"GHSA-5wvv-q5fv-2388 is a vulnerability in hyper-staticfile, published on 23 Dec 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-5wvv-q5fv-2388 and fix it if it is affected.\n\nWhat it is: GHSA-5wvv-q5fv-2388 is a vulnerability in hyper-staticfile, published on 23 Dec 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-5wvv-q5fv-2388 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- hyper-staticfile (crates.io): affected all versions; fixed in 0.9.4\n- hyper-staticfile (crates.io): affected all versions; fixed in 0.9.4\n- hyper-staticfile (crates.io): affected from 0.0.0-0; fixed in 0.9.4, 0.10.0-alpha.5\n- hyper-staticfile (crates.io): affected from 0.10.0-alpha.1; fixed in 0.10.0-alpha.5\n- hyper-staticfile (crates.io): affected from 0.10.0-alpha.1; fixed in 0.10.0-alpha.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-5wvv-q5fv-2388/ (Markdown: https://insights.sbomify.com/GHSA-5wvv-q5fv-2388/index.md)","id":"GHSA-5wvv-q5fv-2388","markdown":"https://insights.sbomify.com/GHSA-5wvv-q5fv-2388/index.md","name":"GHSA-5wvv-q5fv-2388","record":{"aliases":["RUSTSEC-2022-0072"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust static file server","requires_auth":"none","summary":"An attacker can craft URLs that redirect users to malicious domains, facilitating phishing attacks against users of the hyper-staticfile library.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"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.\n\nAn 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.","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"hyper-staticfile's location header incorporates user input, allowing open redirect","id":"GHSA-5wvv-q5fv-2388","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"open_redirect","year":"2022"},"n_packages":5,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.9.4"],"introduced":["0"],"last_affected":[],"package":"hyper-staticfile","purl":null,"source":"GHSA-5wvv-q5fv-2388"},{"ecosystem":"crates.io","fixed":["0.9.4"],"introduced":["0"],"last_affected":[],"package":"hyper-staticfile","purl":"pkg:cargo/hyper-staticfile","source":"GHSA-5wvv-q5fv-2388"},{"ecosystem":"crates.io","fixed":["0.9.4","0.10.0-alpha.5"],"introduced":["0.0.0-0","0.10.0-0"],"last_affected":[],"package":"hyper-staticfile","purl":"pkg:cargo/hyper-staticfile","source":"RUSTSEC-2022-0072"},{"ecosystem":"crates.io","fixed":["0.10.0-alpha.5"],"introduced":["0.10.0-alpha.1"],"last_affected":[],"package":"hyper-staticfile","purl":null,"source":"GHSA-5wvv-q5fv-2388"},{"ecosystem":"crates.io","fixed":["0.10.0-alpha.5"],"introduced":["0.10.0-alpha.1"],"last_affected":[],"package":"hyper-staticfile","purl":"pkg:cargo/hyper-staticfile","source":"GHSA-5wvv-q5fv-2388"}],"products":null,"published":"2022-12-23","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"An attacker can craft URLs that redirect users to malicious domains, facilitating phishing attacks against users of the hyper-staticfile library.","url":"https://insights.sbomify.com/GHSA-5wvv-q5fv-2388/"}