go-chi chi open redirect in RedirectSlashes middleware
go-chi chi
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/go-chi/chi/v5 Go |
|
|
| github.com/go-chi/chi Go |
| No fix yet |
| github.com/go-chi/chi/v2 Go |
|
go-chi chi
| Product | Affected | Fixed in |
|---|---|---|
| github.com/go-chi/chi/v5 Go |
|
|
| github.com/go-chi/chi Go |
| No fix yet |
| github.com/go-chi/chi/v2 Go |
|
| No fix yet |
| github.com/go-chi/chi/v3 Go |
| No fix yet |
| github.com/go-chi/chi/v4 Go |
| No fix yet |
go-chi chi 5.2.2 through 5.5.0 contains an open redirect vulnerability in the RedirectSlashes middleware that allows attackers to redirect victims to external hosts by embedding tab characters in request paths. Attackers can craft links with a URL-encoded tab, which browsers strip from the 301 Location header and resolve as a protocol-relative URL, bypassing the fix for CVE-2025-69725.
From the CVE record · VulnCheck
The RedirectSlashes middleware has an open redirect vulnerability. A remote attacker can craft a link containing a URL-encoded tab that redirects a victim to an external host when the victim follows it; no authentication requirement is described.
Check applications using github.com/go-chi/chi/v5 versions >=5.2.2 and <5.2.4, or any version of github.com/go-chi/chi, github.com/go-chi/chi/v2, /v3, or /v4.