published 21 Oct 2026 · updated 21 Oct 2026
Chi Client IP Spoofing in ClientIPFromXFF via X-Forwarded-For
4.8MediumCVSS 4.8EPSS 0%
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 5.4.0.
In the Golang Chi web framework, the ClientIPFromXFF middleware skips any X-Forwarded-For entry in a configured trusted CIDR but never verifies that the direct TCP peer in http.Request.RemoteAddr belongs to that CIDR. A client that can reach the Go server directly can therefore append a trusted-looking proxy address and choose the client IP returned by middleware.GetClientIP. This issue affects chi before 5.4.0.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| go-chi | <5.4.0 | 5.4.0 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket