medium4.8
CVE-2026-114437
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…
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/go-chi/chi/v5 | <= 5.3.2 | 5.4.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-j6qf-3m9c-vwj3
- https://github.com/go-chi/chi/security/advisories/GHSA-j6qf-3m9c-vwj3
- https://nvd.nist.gov/vuln/detail/CVE-2026-114437
- https://github.com/go-chi/chi/pull/1214
- https://github.com/go-chi/chi/commit/7f9b7448f51d28804fac98c0a17bc2a7cec1079f
- https://github.com/go-chi/chi/releases/tag/v5.4.0
- https://www.tenable.com/security/research/tra-2026-66