{"id":"CVE-2026-72816","published":"2026-08-14T11:35:28Z","modified":"2026-10-08T15:24:31Z","title":"go-chi chi before 5.3.0 IP Spoofing via RealIP Middleware","vendor":"go-chi","product":"chi","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.003,"percentile":0.15153,"provenance":"source"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"references":[{"url":"https://github.com/go-chi/chi/security/advisories/GHSA-rjr7-jggh-pgcp","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/go-chi-chi-before-ip-spoofing-via-realip-middleware","tags":["third-party-advisory"]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":3.03},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"go-chi","affectedVersions":[{"vendor":"go-chi","product":"chi","versions":["< 5.3.0"]}],"fixedVersions":[{"vendor":"go-chi","product":"chi","versions":["5.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-14T15:21:50.655188Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/go-chi/chi/v5","vulnerableRanges":["<5.3.0"],"patched":["5.3.0"],"from":["GO-2026-5777"],"provenance":"source"}],"summary":{"text":"The RealIP middleware in go-chi's chi router, before version 5.3.0, trusts client-controlled headers (True-Client-IP, X-Real-IP, and X-Forwarded-For) and overwrites the request's RemoteAddr without checking that the request came through a trusted proxy. An attacker who can send HTTP requests to the application can supply arbitrary IP addresses in those headers to bypass IP-based access controls, evade rate limiting and geo-IP restrictions, and corrupt audit logs, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:40Z"},"euvd":{"id":"EUVD-2026-58631","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-69725","published":"2026-02-19","fixed":"5.2.4","kev":false,"link":{"from":"CVE-2025-69725","to":"CVE-2026-72816","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-chi/chi/v5","fromFixed":"5.2.4","toFixed":"5.3.0","daysApart":176}]}},{"cve":"CVE-2026-122132","published":"2026-11-04","fixed":"5.2.4","kev":false},{"cve":"CVE-2026-72815","published":"2026-08-14","fixed":"5.3.0","kev":false},{"cve":"CVE-2026-72816","published":"2026-08-14","fixed":"5.3.0","kev":false},{"cve":"CVE-2026-72817","published":"2026-08-14","fixed":"5.3.0","kev":false},{"cve":"CVE-2026-114437","published":"2026-10-21","fixed":"5.4.0","kev":false}],"package":"Go:github.com/go-chi/chi/v5"}}