CVE-2026-114437 PUBLISHED

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

Assigner: tenable
Reserved: 21.10.2026 Published: 21.10.2026 Updated: 21.10.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
CVSS Score: 6.3

Product Status

Vendor go-chi
Product chi
Versions Default: unaffected
  • affected from 0 to 5.4.0 (excl.)

Credits

  • Joshua Martinelle finder

References

Problem Types

  • CWE-348 Use of Less Trusted Source CWE