GHSA-xcvf-46f4-xwxf: Duplicate Advisory Chi Allows Host Header Injection Vulnerability
MODERATEGHSA-xcvf-46f4-xwxf is a MODERATE chi allows host header injection vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Duplicate Advisory libraries in the Go ecosystem. The issue involves chi allows host header injection which leads to open redirect in redirectslashes. Remediation is available in the latest vendor maintenance releases.
GHSA-xcvf-46f4-xwxf at a Glance
How to Fix GHSA-xcvf-46f4-xwxf
To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/go-chi/chi to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/go-chi/chi
How to Check if You Are Affected
To determine whether your application is affected by GHSA-xcvf-46f4-xwxf, inspect your project dependencies for Duplicate Advisory:
inspect dependencies for github.com/go-chi/chi
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-xcvf-46f4-xwxf Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/go-chi/chi
|
Go |
≤ 5.2.1
|
|
References
Frequently Asked Questions
What is GHSA-xcvf-46f4-xwxf?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-xcvf-46f4-xwxf?
Is github.com/go-chi/chi affected?
What CWE is associated with GHSA-xcvf-46f4-xwxf?
How can I check Go dependencies for GHSA-xcvf-46f4-xwxf?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xcvf-46f4-xwxf",
"modified" : "2026-10-02T23:17:35Z",
"published" : "2026-08-14T12:31:24Z",
"withdrawn" : "2026-10-02T23:17:35Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: chi Allows Host Header Injection which Leads to Open Redirect in RedirectSlashes",
"details" : "## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-vrw8-fxc6-2r93. This link is maintained to preserve external references.\n\n## Original Description\nchi 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/go-chi/chi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "5.2.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/go-chi/chi/security/advisories/GHSA-vrw8-fxc6-2r93"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-71405"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/go-chi-chi-before-open-redirect-via-redirectslashes"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-02T23:17:35Z",
"nvd_published_at" : "2026-08-14T12:16:43Z"
}
}