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

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

References

  • github.com/advisories/GHSA-vrw8-fxc6-2r93
  • github.com/go-chi/chi
  • github.com/go-chi/chi/commit/1be7ad938cc9c5b39a9dea01a5c518848928ab65
  • github.com/go-chi/chi/security/advisories/GHSA-vrw8-fxc6-2r93

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. Learn more about Dependency Scanning →

Affected versions

All versions before 5.2.2

Fixed versions

  • 5.2.2

Solution

Upgrade to version 5.2.2 or above.

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 Tue, 19 Aug 2025 12:18:39 +0000.