Description
go-chi chi versions >= 5.2.1 and before 5.3.0 contain an IP spoofing vulnerability in the RealIP middleware, which blindly trusts the first (leftmost) value of the X-Forwarded-For HTTP header. A remote attacker can bypass IP-based access control lists and rate-limiting mechanisms, and forge log entries, by supplying a spoofed IP address in the X-Forwarded-For header. The issue is fixed in version 5.3.0.
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-290 — Authentication Bypass by Spoofing
Affected products
| Vendor | Product | Versions |
|---|---|---|
| go-chi | chi | 5.2.1 to <5.3.0; 5.3.0 |
References
- https://github.com/go-chi/chi/security/advisories/GHSA-3fxj-6jh8-hvhx (vendor-advisory)
- https://www.vulncheck.com/advisories/go-chi-chi-ip-spoofing-via-x-forwarded-for-header (third-party-advisory)
Generated from the official CVE List on 15 Aug 2026 07:05 UTC.