Skip to main content
← All vulnerabilities
CVE-2026-72817GO-2026-5775GHSA-9G5Q-2W5X-HMXF

go-chi chi 0.9.0 before 5.3.0 IP Spoofing via X-Forwarded-For

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

Summary

go-chi/chi versions 0.9.0 before 5.3.0 contains an IP spoofing vulnerability in the RealIP middleware, which resolves the request source IP (Request.RemoteAddr) using the first IP in the X-Forwarded-For header without validating trusted proxies. A malicious client can prepend a forged IP as the first value of the X-Forwarded-For header to spoof the request source IP, potentially bypassing access controls or falsifying request logs.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • go-chi chi

    From 0.9.0 · fixed in 5.3.0

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

    From 0.9.0 · through 1.5.5

  • github.com/go-chi/chi/v2/middlewareGo

    through 2.1.1

  • github.com/go-chi/chi/v3/middlewareGo

    through 3.3.5

  • github.com/go-chi/chi/v4/middlewareGo

    through 4.1.3

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

    fixed in 5.3.0

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

    fixed in 5.3.0

References 2

GitHub · go-chi/chi

vulncheck.com