Description
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.
Severity (CVSS)
| Base score | 6.9 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-345 — Insufficient Verification of Data Authenticity
Affected products
| Vendor | Product | Versions |
|---|---|---|
| go-chi | chi | 0.9.0 to <5.3.0; 5.3.0 |
References
- https://github.com/go-chi/chi/security/advisories/GHSA-9g5q-2w5x-hmxf (vendor-advisory)
- https://www.vulncheck.com/advisories/go-chi-chi-before-ip-spoofing-via-x-forwarded-for (third-party-advisory)
Generated from the official CVE List on 15 Aug 2026 07:05 UTC.