What’s Vulnerable › Vulnerabilities

CVE-2025-71405: go-chi chi before v5.2.2 Open Redirect via RedirectSlashes

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.

Affected products

How to fix

Upgrade to a fixed version: go-chi chi 5.2.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-71405 or the next vulnerability affects your stack