CVE-2025-71405: go-chi chi before v5.2.2 Open Redirect via RedirectSlashes
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.
Security readout for executives and security teams
Plain-English summary
Applications using vulnerable go-chi middleware may send users to an attacker-chosen website when processing malformed URLs. This can make phishing pages appear to originate from a trusted service, increasing credential-theft risk. The flaw does not directly compromise the server.
Executive priority
Prioritize remediation for public-facing authentication, payment, or other high-trust applications. The moderate severity supports prompt maintenance rather than emergency response, unless exposure validation confirms vulnerable middleware and unrestricted Host handling on sensitive user flows.
Technical view
Before v5.2.2, chi's RedirectSlashes middleware constructs redirect URLs using the request Host header. An unauthenticated remote attacker can manipulate that header, but user interaction is required for harm. The reported CVSS v4.0 score is 5.1, with confidentiality and integrity impacts and no availability impact.
Likely exposure
Exposure requires chi earlier than v5.2.2, use of RedirectSlashes, and a deployment path that accepts or forwards untrusted Host headers. Applications not using this middleware, running v5.2.2 or later, or strictly validating allowed hosts are less likely to be exploitable.
Exploitation context
The supplied sources do not report active exploitation, and the CVE is not identified as being in KEV. Exploitation would primarily support phishing or credential theft by causing a trusted application to redirect a user to an attacker-controlled host.
Researcher notes
CWE-601 applies. The decisive conditions are middleware use and Host-header trust boundaries. Confirm behavior across direct traffic, proxies, and CDNs because intermediaries may normalize or validate Host values. The supplied version data supports v5.2.2 as the remediation boundary, but does not document exploitation in the wild.
Mitigation direction
Upgrade go-chi chi to v5.2.2 or later.
Identify every service using the RedirectSlashes middleware.
Validate allowed Host values at the application or trusted reverse proxy.
Review the vendor advisory for deployment-specific guidance.
Validation and detection
Confirm deployed chi versions from dependency manifests, lockfiles, and runtime inventories.
Inspect routing configuration for RedirectSlashes middleware usage.
Verify unrecognized Host values are rejected or cannot influence redirect destinations.
Confirm redirects remain on approved application hosts during controlled testing.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-601: User-session and phishing behavior lookup
Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-601 · source CWE mapping
URL Redirection to Untrusted Site ('Open Redirect')
URL Redirection to Untrusted Site ('Open Redirect') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.