CVE-2026-72816
CVE-2026-72816 · go-chi chi before 5.3.0 IP Spoofing via RealIP Middleware
This page contains facts from public vulnerability sources. Check the original advisory before updating.
go-chi/chi through 5.2.1 contains an IP spoofing vulnerability in the RealIP middleware (middleware/realip.go). The realIP() function reads client-controlled headers (True-Client-IP, X-Real-IP, and X-Forwarded-For) and overwrites r.RemoteAddr without verifying that the request originated from a trusted proxy. Attackers can supply arbitrary IP addresses in these headers to bypass IP-based access controls, evade rate limiting and geo-IP restrictions, and pollute audit logs. Fixed in 5.3.0.
CVSS 6.9 · Medium · EPSS 0.3% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
chi
- Versions
- ≥ 0, < 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