Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-chi/chi/v5
  4. ›
  5. GHSA-vrw8-fxc6-2r93

GHSA-vrw8-fxc6-2r93: chi Allows Host Header Injection which Leads to Open Redirect in RedirectSlashes

June 20, 2025 (updated October 2, 2026)

The RedirectSlashes function in middleware/strip.go is vulnerable to host header injection which leads to open redirect.

We consider this a lower-severity open redirect, as it can’t be exploited from browsers or email clients (requires manipulation of a Host header).

References

  • github.com/advisories/GHSA-vrw8-fxc6-2r93
  • github.com/go-chi/chi/commit/1be7ad938cc9c5b39a9dea01a5c518848928ab65
  • github.com/go-chi/chi/security/advisories/GHSA-vrw8-fxc6-2r93
  • nvd.nist.gov/vuln/detail/CVE-2025-71405
  • www.vulncheck.com/advisories/go-chi-chi-before-open-redirect-via-redirectslashes

Code Behaviors & Features

Detect and mitigate GHSA-vrw8-fxc6-2r93 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 5.2.2

Fixed versions

  • 5.2.2

Solution

Upgrade to version 5.2.2 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

go/github.com/go-chi/chi/v5/GHSA-vrw8-fxc6-2r93.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:04 +0000.