CVE-2026-72816
Vulnerability Summary
Timeline
Description
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 Metrics
- v4.0•MEDIUM•Score: 6.9CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
- v4.0•MEDIUM•Score: 6.9CVSS: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
- v4.0•HIGH•Score: 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P
- v3.1•MEDIUM•Score: 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS Trends
Current EPSS score: 0.22%• Percentile: 13%
Techniques & Countermeasures
- CWE-290•Authentication Bypass by Spoofing
This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.
Affected Systems
- debian•golang-github-go-chi-chi
all | all | all | < 5.3.0-1
- ubuntu•golang-github-go-chi-chi
all | all | all
- go-chi•chi
< 5.3.0
- github.com/go-chi/chi•middleware
≤ 1.5.5
- github.com/go-chi/chi•v5
< 5.3.0
- github.com/go-chi/chi/v2•middleware
≤ 2.1.1
- github.com/go-chi/chi/v3•middleware
≤ 3.3.5
- github.com/go-chi/chi/v4•middleware
≤ 4.1.3
- github.com/go-chi/chi/v5•middleware
< 5.3.0
References (8)
- https://github.com/go-chi/chi/security/advisories/GHSA-rjr7-jggh-pgcp
- https://www.vulncheck.com/advisories/go-chi-chi-before-ip-spoofing-via-realip-middleware
- https://security-tracker.debian.org/tracker/CVE-2026-72816
- https://github.com/go-chi/chi
- https://github.com/go-chi/chi/releases/tag/v5.3.0
- https://github.com/go-chi/chi/pull/967
- https://ubuntu.com/security/CVE-2026-72816
- https://www.cve.org/CVERecord?id=CVE-2026-72816