Duplicate Advisory: chi Allows Host Header Injection which Leads to Open Redirect in RedirectSlashes
chi versions before 5.2.2 contain an open redirect vulnerability in the RedirectSlashes middleware. This vulnerability arises because the middleware uses the Host header to construct redirect URLs, allowing attackers to manipulate the Host header to redirect users to arbitrary hosts. This can facilitate phishing attacks and credential theft. The advisory is a duplicate and has been withdrawn in favor of GHSA-vrw8-fxc6-2r93. No patch links are provided in this advisory, but the fixed version is 5.2.2.
AI Analysis
Technical Summary
The chi Go HTTP router versions prior to 5.2.2 have an open redirect vulnerability in the RedirectSlashes middleware function. The middleware constructs redirect URLs based on the Host header without proper validation, enabling an attacker to supply a malicious Host header value. This can cause users to be redirected to arbitrary external hosts, potentially leading to phishing or credential theft. The advisory is a duplicate of GHSA-vrw8-fxc6-2r93 and has been withdrawn. The vulnerability is tracked as CWE-601 (Open Redirect).
Potential Impact
An attacker can exploit this vulnerability by manipulating the Host header in HTTP requests to cause the RedirectSlashes middleware to redirect users to arbitrary external URLs. This can be used in phishing attacks to trick users into visiting malicious sites or to steal credentials. There is no indication of privilege escalation or direct code execution. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade chi to version 5.2.2 or later, where this open redirect vulnerability in RedirectSlashes middleware is fixed. Since no patch links are provided in this advisory, refer to the original advisory GHSA-vrw8-fxc6-2r93 for official remediation details. No other mitigations are indicated.
Duplicate Advisory: chi Allows Host Header Injection which Leads to Open Redirect in RedirectSlashes
Description
chi versions before 5.2.2 contain an open redirect vulnerability in the RedirectSlashes middleware. This vulnerability arises because the middleware uses the Host header to construct redirect URLs, allowing attackers to manipulate the Host header to redirect users to arbitrary hosts. This can facilitate phishing attacks and credential theft. The advisory is a duplicate and has been withdrawn in favor of GHSA-vrw8-fxc6-2r93. No patch links are provided in this advisory, but the fixed version is 5.2.2.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The chi Go HTTP router versions prior to 5.2.2 have an open redirect vulnerability in the RedirectSlashes middleware function. The middleware constructs redirect URLs based on the Host header without proper validation, enabling an attacker to supply a malicious Host header value. This can cause users to be redirected to arbitrary external hosts, potentially leading to phishing or credential theft. The advisory is a duplicate of GHSA-vrw8-fxc6-2r93 and has been withdrawn. The vulnerability is tracked as CWE-601 (Open Redirect).
Potential Impact
An attacker can exploit this vulnerability by manipulating the Host header in HTTP requests to cause the RedirectSlashes middleware to redirect users to arbitrary external URLs. This can be used in phishing attacks to trick users into visiting malicious sites or to steal credentials. There is no indication of privilege escalation or direct code execution. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade chi to version 5.2.2 or later, where this open redirect vulnerability in RedirectSlashes middleware is fixed. Since no patch links are provided in this advisory, refer to the original advisory GHSA-vrw8-fxc6-2r93 for official remediation details. No other mitigations are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-xcvf-46f4-xwxf
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6ac139a8a43b0b3b89d69ac1
Added to database: 10/03/2026, 17:21:44 UTC
Last enriched: 10/03/2026, 17:38:16 UTC
Last updated: 10/03/2026, 22:38:29 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.