Skip to main content
VulnerabilityPublished Updated

github.com/go-chi/chi · Duplicate Advisory: chi Allows Host Header Injection which Leads to Open Redirect in RedirectSlashes

Affects github.com/go-chi/chiSource GCVE Database

0

CVSS 5.1 Medium.

Data as of 3 Oct 2026, 17:38 UTC

CVSS 4.0 base score
5.1Medium
How severe the flaw is on the 0–10 CVSS scale.
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

What to do

Affected software

ProductAffectedFixed in
Gogithub.com/go-chi/chiAffected
  • <=5.2.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade chi to version 5.2.2 or later, where this open redirect vulnerability in RedirectSlashes middleware is fixed. No other mitigations are indicated.

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.

References

Community reviews

Loading reviews…