Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-chi/chi
  4. ›
  5. GHSA-mqqf-5wvp-8fh8

GHSA-mqqf-5wvp-8fh8: chi has an open redirect vulnerability in the RedirectSlashes middleware

January 14, 2026

The RedirectSlashes function in middleware/strip.go does not perform correct input validation and can lead to an open redirect vulnerability.

References

  • github.com/advisories/GHSA-mqqf-5wvp-8fh8
  • github.com/go-chi/chi
  • github.com/go-chi/chi/commit/6eb35881c0e438ffb663ddbad3a61babaa5e5d8a
  • github.com/go-chi/chi/issues/1037
  • github.com/go-chi/chi/security/advisories/GHSA-mqqf-5wvp-8fh8

Code Behaviors & Features

Detect and mitigate GHSA-mqqf-5wvp-8fh8 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 starting from 5.2.2 before 5.2.4

Fixed versions

  • 5.2.4

Solution

Upgrade to version 5.2.4 or above.

Impact 4.7 MEDIUM

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

Learn more about CVSS

Weakness

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

Source file

go/github.com/go-chi/chi/GHSA-mqqf-5wvp-8fh8.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 04 Feb 2026 00:36:00 +0000.