Chi Client IP Spoofing in ClientIPFromXFF via X-Forwarded-For
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| go-chichi |
< 5.4.0→ 5.4.0 |
5.4.0 |
| gogithub.com/go-chi/chi/v5 |
< 5.4.0→ 5.4.0 |
5.4.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-114437 golang-github-go-chi-chi No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-114437 golang-github-go-chi-chi No fixed version in this record
Original description The description as published by the source.
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.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- REDHAT Red Hat
- web tenable.com
- web github.com
- web pkg.go.dev
- web github.com
- web github.com
- web github.com
- web github.com