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.
Published: 2026-08-14
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Open Redirect
Action: Update Library
AI Analysis

Impact

The vulnerability resides in the RedirectSlashes middleware of the Go-chi library. Prior to version 5.2.2, the middleware builds redirect URLs using the Host header supplied in incoming HTTP requests. An attacker can supply a forged Host header containing an arbitrary URL, causing the server to redirect users to that URL. This allows phishing attacks and illicit credential harvesting.

Affected Systems

Affected products are all releases of the go-chi:chi library older than v5.2.2. Any application that incorporates the RedirectSlashes middleware in those versions is susceptible.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate severity, and the EPSS score is currently unavailable, meaning the exact exploitation probability is uncertain. Because the vulnerability relies on the Host header, it can be triggered by an external attacker sending a manipulated request to a target service that uses the middleware. Although it is not listed in CISA’s KEV catalog, the ability to redirect users to malicious sites could facilitate credential compromise.

Generated by OpenCVE AI on August 14, 2026 at 12:30 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the go-chi package to version 5.2.2 or later, which removes the unsafe Host header usage in the RedirectSlashes middleware.
  • If an upgrade is not immediately possible, remove or disable the RedirectSlashes middleware from the routing stack to eliminate the redirect path.
  • Implement strict validation of the Host header or constrain redirects to a whitelist of known internal hosts before processing the request.
  • Monitor outbound redirects to detect anomalous redirect behavior that may indicate exploitation.

Generated by OpenCVE AI on August 14, 2026 at 12:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-vrw8-fxc6-2r93 chi Allows Host Header Injection which Leads to Open Redirect in RedirectSlashes
History

Thu, 08 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 14 Aug 2026 13:15:00 +0000

Type Values Removed Values Added
First Time appeared Go-chi
Go-chi chi
Vendors & Products Go-chi
Go-chi chi

Fri, 14 Aug 2026 11:45:00 +0000

Type Values Removed Values Added
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.
Title go-chi chi before v5.2.2 Open Redirect via RedirectSlashes
Weaknesses CWE-601
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-08T15:21:34.652Z

Reserved: 2026-07-18T12:38:41.077Z

Link: CVE-2025-71405

cve-icon Vulnrichment

Updated: 2026-08-14T18:57:15.202Z

cve-icon NVD

Status : Deferred

Published: 2026-08-14T12:16:43.297

Modified: 2026-10-08T16:16:53.587

Link: CVE-2025-71405

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T13:00:10Z

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')