Skip to content
Medium 6.3

Chi Client IP Spoofing in ClientIPFromXFF via X-Forwarded-For

CVE-2026-114437 First seen on SecPulse

Affected packages

PackageAffected → Fixed
go-chichi
< 5.4.0→ 5.4.0
gogithub.com/go-chi/chi/v5
< 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.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details