CVE-2025-71405

go-chi chi before v5.2.2 Open Redirect via RedirectSlashes

Published Aug 14, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Go-chi
Go-chi chi
Vendors & Products Go-chi
Go-chi chi
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'}

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:21 PM
Reserved
Jul 18, 2026, 12:38 PM
Status
Deferred
Published
Aug 14, 2026, 12:16 PM
Modified
Oct 8, 2026, 4:16 PM