CVE-2025-71405 go-chi chi before v5.2.2 Open Redirect via RedirectSlashes
Attackers can exploit the RedirectSlashes middleware to redirect users to malicious sites via Host header manipulation, facilitating phishing attacks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-71405?
CVE-2025-71405 is a medium-severity vulnerability in go-chi chi, published on 14 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
chi versions before v5.2.2 contain an open redirect vulnerability in the RedirectSlashes middleware function that uses the Host header to construct redirect URLs. Attackers can manipulate the Host header to redirect users to arbitrary hosts, enabling phishing attacks and credential theft.
Weakness: CWE-601
Which versions are affected by CVE-2025-71405?
3 open source packages ship an affected version, including github.com/go-chi/chi/v5.
| Package | Affected | Fixed in |
|---|---|---|
github.com/go-chi/chi/v5 Go | All versions | 5.2.2 |
github.com/go-chi/chi/v5 Go | All versions | 5.2.2 |
github.com/go-chi/chi/v5 Go | From 5.2.1 | 5.2.2 |
How do I fix CVE-2025-71405?
Upgrade github.com/go-chi/chi/v5 to 5.2.2 or later.
Is CVE-2025-71405 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-71405 exists.
Sources
Also known as CLEANSTART-2026-HY04469, DEBIAN-CVE-2025-71405, GHSA-vrw8-fxc6-2r93, GO-2025-3770, MINI-2cg4-5vv8-gqx6, MINI-2h69-fvm5-rxjg and 21 more.