CVE-2026-72815
CVE-2026-72815 · go-chi chi v5.2.1 IP Spoofing via X-Forwarded-For Header
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 6.9 · Medium · EPSS 0.5% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
chi
- Versions
- ≥ 5.2.1, < 5.3.0: Affected (semver)
- 5.3.0: Not affected (semver)
Update to 5.3.0
golang-github-go-chi-chi Debian:12
- Versions
- 5.0.7-1
- 5.1.0-1
- 5.2.0-1
- 5.2.3-1
- 5.2.5-1
- 5.3.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-chi-chi Debian:13
- Versions
- 5.2.0-1
- 5.2.3-1
- 5.2.5-1
- 5.3.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-chi-chi Debian:14
- Versions
- 5.2.0-1
- 5.2.3-1
- 5.2.5-1
- Affected ranges
- ECOSYSTEM: < 5.3.0-1
Update to 5.3.0-1
golang-github-go-chi-chi Ubuntu:22.04:LTS
- Versions
- 1.5.1-2
- 5.0.7-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-chi-chi Ubuntu:24.04:LTS
- Versions
- 5.0.7-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-chi-chi Ubuntu:26.04:LTS
- Versions
- 5.2.0-1
- 5.2.3-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published