Skip to main content
← All vulnerabilities
CVE-2026-114437GHSA-J6QF-3M9C-VWJ3

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated
  4. First seen by cve.now

Affected versions

  • github.com/go-chi/chi/v5

    fixed in 5.4.0

  • github.com/go-chi/chi/v5Go

    fixed in 5.4.0

References 2

tenable.com

GitHub · go-chi/chi