{"id":"CVE-2026-72815","published":"2026-08-14T11:35:27Z","modified":"2026-10-08T15:24:31Z","title":"go-chi chi v5.2.1 IP Spoofing via X-Forwarded-For Header","vendor":"go-chi","product":"chi","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00545,"percentile":0.39284,"provenance":"source"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"references":[{"url":"https://github.com/go-chi/chi/security/advisories/GHSA-3fxj-6jh8-hvhx","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/go-chi-chi-ip-spoofing-via-x-forwarded-for-header","tags":["third-party-advisory"]}],"priority":{"score":12.7,"factors":[{"name":"EPSS percentile","points":7.86},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"go-chi","affectedVersions":[{"vendor":"go-chi","product":"chi","versions":[">= 5.2.1, < 5.3.0"]}],"fixedVersions":[{"vendor":"go-chi","product":"chi","versions":["5.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-18T01:54:58.560637Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/go-chi/chi/v5","vulnerableRanges":[">=5.2.1, <5.3.0"],"patched":["5.3.0"],"from":["GO-2026-5774"],"provenance":"source"}],"summary":{"text":"The RealIP middleware in go-chi's chi router (versions 5.2.1 up to but not including 5.3.0) blindly trusts the leftmost value of the X-Forwarded-For header when determining a client's IP address. A remote, unauthenticated attacker with no user interaction can supply a spoofed IP in that header to bypass IP-based access control lists and rate limits and to forge log entries.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:34Z"},"euvd":{"id":"EUVD-2026-58630","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-go-chi-chi-cve-2026-72815","children":[{"from":"CVE-2026-72815","to":"CVE-2026-114437","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-chi/chi/v5","fromFixed":"5.3.0","toFixed":"5.4.0","daysApart":68},{"kind":"same-code","provenance":"machine","files":["middleware/client_ip.go"],"commits":["https://github.com/go-chi/chi/commit/7f9b7448f51d28804fac98c0a17bc2a7cec1079f","https://github.com/go-chi/chi/commit/3b171578ca44dfd75ca3c5cbddc7b44c600a7b49"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-71405","published":"2026-08-14","fixed":"5.2.2","kev":false},{"cve":"CVE-2025-69725","published":"2026-02-19","fixed":"5.2.4","kev":false,"link":{"from":"CVE-2025-69725","to":"CVE-2026-72815","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"}}