Medium [CVE-2025-71405] Open Redirect vulnerability via RedirectSlashes middleware
This medium-severity Red Hat Linux advisory covers CVE-2025-71405.
Android app · Google Play
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.
Summary
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.
A flaw was found in go-chi/chi. Red Hat rates this issue Moderate.
The vulnerable Host-based redirect implementation is present in go-chi/chi v5 releases from v5.0.0 through v5.2.1 and is fixed in v5.2.2.
Exploitation requires an application to use the RedirectSlashes middleware and an attacker to submit a request with a manipulated Host header; upstream notes that normal browsers and email clients cannot directly manipulate this header.
Red Hat products identified with go-chi/chi v1 or v4 are not affected because that implementation does not construct redirects from the Host header. Red Hat severity: Moderate — CVSS 5.4 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N).
Weakness: CWE-601.
- < 2.2
Official advisory · high-confidence parse· fetched 3 hours ago·verify at source
Fixed versions
No fixed release is recorded yet. That does not prove no patch exists — confirm against the vendor advisory.
Official advisory · high-confidence parse· fetched 3 hours ago·verify at source
Mitigation checklist
- Upgrade go-chi/chi to v5.2.2 or later. If an immediate upgrade is not possible, disable the RedirectSlashes middleware or configure the application or frontend proxy to validate and allowlist trusted Host headers.
Official advisory · high-confidence parse· fetched 3 hours ago·verify at source
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.