{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-72816","id":"CVE-2026-72816","title":"go-chi chi before 5.3.0 IP Spoofing via RealIP Middleware","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 co","descriptionLong":"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.","published":"2026-08-14T11:35:28.145Z","updated":"2026-10-28T02:30:49.292032754Z","reserved":"2026-08-10T15:12:16.754Z","status":"Deferred","rejected":false,"assigner":"VulnCheck","metric":{"version":"4.0","score":6.9,"vector":"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","rating":"medium","source":"VulnCheck"},"metrics":[{"version":"4.0","score":6.9,"vector":"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","rating":"medium","source":"VulnCheck"},{"version":"4.0","score":6.9,"vector":"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","rating":"medium","source":"vulncheck.com"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"CVSS: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","rating":"high","source":"GitHub"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"VulnCheck"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"vulncheck.com"}],"rating":"medium","products":["go-chi chi"],"affectedProducts":[{"vendor":"go-chi","product":"chi","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","versionType":"semver","lessThan":"5.3.0"},{"version":"5.3.0","status":"unaffected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/go-chi/chi/middleware","purl":"pkg:golang/github.com/go-chi/chi/middleware","ranges":["<=1.5.5"],"fixed":[],"advisory":"GHSA-rjr7-jggh-pgcp"},{"ecosystem":"Go","name":"github.com/go-chi/chi/v2/middleware","purl":"pkg:golang/github.com/go-chi/chi/v2/middleware","ranges":["<=2.1.1"],"fixed":[],"advisory":"GHSA-rjr7-jggh-pgcp"},{"ecosystem":"Go","name":"github.com/go-chi/chi/v3/middleware","purl":"pkg:golang/github.com/go-chi/chi/v3/middleware","ranges":["<=3.3.5"],"fixed":[],"advisory":"GHSA-rjr7-jggh-pgcp"},{"ecosystem":"Go","name":"github.com/go-chi/chi/v4/middleware","purl":"pkg:golang/github.com/go-chi/chi/v4/middleware","ranges":["<=4.1.3"],"fixed":[],"advisory":"GHSA-rjr7-jggh-pgcp"},{"ecosystem":"Go","name":"github.com/go-chi/chi/v5/middleware","purl":"pkg:golang/github.com/go-chi/chi/v5/middleware","ranges":["<5.3.0"],"fixed":["5.3.0"],"advisory":"GHSA-rjr7-jggh-pgcp"},{"ecosystem":"Go","name":"github.com/go-chi/chi/v5","purl":"pkg:golang/github.com/go-chi/chi/v5","ranges":["<5.3.0"],"fixed":["5.3.0"],"advisory":"GO-2026-5777"}],"cwes":["CWE-290","CWE-348"],"aliases":["GHSA-rjr7-jggh-pgcp","GO-2026-5777"],"references":[{"url":"https://github.com/go-chi/chi/security/advisories/GHSA-rjr7-jggh-pgcp","tags":["vendor-advisory","exploit","advisory","web"]},{"url":"https://www.vulncheck.com/advisories/go-chi-chi-before-ip-spoofing-via-realip-middleware","tags":["third-party-advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72816.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72816","tags":["advisory"]},{"url":"https://github.com/go-chi/chi","tags":["package"]},{"url":"https://github.com/go-chi/chi/releases/tag/v5.3.0","tags":["web"]},{"url":"https://github.com/go-chi/chi/pull/967","tags":["fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.003,"epssPercentile":0.23112,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-72816","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72816","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-72816","ok":true,"note":"6 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rjr7-jggh-pgcp","ok":true,"note":"GHSA-rjr7-jggh-pgcp"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-72816","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}