Skip to main content

Duplicate Advisory: chi Allows Host Header Injection which Leads to Open Redirect in RedirectSlashes

0
Medium
Published: 08/14/2026 (08/14/2026, 12:31:24 UTC)
Source: GCVE Database
Product: github.com/go-chi/chi

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
Scope
X
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected software

Goghsa
github.com/go-chi/chi
Affected versions
<=5.2.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/03/2026, 17:38:16 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses