CVE-2026-72817
6.9
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| go-chi | chi | 0.9.0 < 5.3.0 | affected |
| go-chi | chi | 5.3.0 | unaffected |
Weaknesses
- CWE-345: Insufficient Verification of Data Authenticity
References
- https://github.com/go-chi/chi/security/advisories/GHSA-9g5q-2w5x-hmxf
- https://www.vulncheck.com/advisories/go-chi-chi-before-ip-spoofing-via-x-forwarded-for
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.