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: n/a
KEV: No
Impact: n/a
Action: n/a
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 vendor fix or workaround currently provided.

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

No advisories yet.

History

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-08-14T11:35:23.411Z

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

Link: CVE-2025-71405

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

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')