CVE-2026-72815
MEDIUM 6.9CVSS 4.0chi Has an IP Spoofing Vulnerability in `middleware.RealIP`
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.
- Published
- 14 Aug 2026
- Last modified
- 4 Nov 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-290CWE-345
- Also known as
- GHSA-3fxj-6jh8-hvhxGO-2026-5774
- Sources
- NVDJSONOSV GHSA-3fxj-6jh8-hvhxJSONOSV GO-2026-5774JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | MEDIUM 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/go-chi/chi/v5/middleware | >= 5.2.1, < 5.3.0 | 5.3.0 |
| OSV | Go | github.com/go-chi/chi/v5 | >= 5.2.1, < 5.3.0 | 5.3.0 |
References
- https://github.com/go-chi/chi/security/advisories/GHSA-3fxj-6jh8-hvhx · WEB, ADVISORY
- https://www.vulncheck.com/advisories/go-chi-chi-ip-spoofing-via-x-forwarded-for-header
- https://github.com/go-chi/chi/pull/967 · WEB, FIX
- https://github.com/go-chi/chi/commit/3b171578ca44dfd75ca3c5cbddc7b44c600a7b49 · WEB
- https://github.com/go-chi/chi · PACKAGE
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 14 Aug 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 25 Jun 2026)