CVE-2026-72817go-chi chi
Medium 6.9 No auth needed
Follow: this CVE · go-chi · go-chi chi We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 4.0
- 6.9
- EPSS
- —
- Auth required
- No
- Published
- Aug 14, 2026
- Updated
- Oct 8, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-345
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- 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
What happens
go-chi/chi versions 0.9.0 before 5.3.0 contains an IP spoofing vulnerability in the RealIP middleware, which resolves the request source IP (Request.RemoteAddr) using the first IP in the X-Forwarded-For header without validating trusted proxies. A malicious client can prepend a forged IP as the first value of the X-Forwarded-For header to spoof the request source IP, potentially bypassing access controls or falsifying request logs.
What to do
- Apply the vendor's security update for chi.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/go-chi/chi/middleware |
≥ 0.9.0 ≤ 1.5.5 |
no fixed version | — |
| Go | github.com/go-chi/chi/v2/middleware |
≤ 2.1.1 |
no fixed version | — |
| Go | github.com/go-chi/chi/v3/middleware |
≤ 3.3.5 |
no fixed version | — |
| Go | github.com/go-chi/chi/v4/middleware |
≤ 4.1.3 |
no fixed version | — |
| Go | github.com/go-chi/chi/v5 |
< 5.3.0 |
5.3.0 |
go get github.com/go-chi/chi/v5@v5.3.0 |
| Go | github.com/go-chi/chi/v5/middleware |
< 5.3.0 |
5.3.0 |
go get github.com/go-chi/chi/v5/middleware@v5.3.0 |
Per OSV / GitHub Advisories (GHSA-9g5q-2w5x-hmxf, GO-2026-5775). Check the version in your lockfile before upgrading.
Affected products
- go-chi · chi
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for warewulf4 · SUSE · openSUSE-SU-2026:21918-1 · Sep 18, 2026 High
- warewulf4-4.7.1-1.1 on GA media · SUSE · openSUSE-SU-2026:11810-1 · Sep 17, 2026 Medium
- Security update for hauler · SUSE · openSUSE-SU-2026:21793-1 · Sep 3, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:54420 · Aug 20, 2026 Medium
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:49732 · Aug 20, 2026 Medium
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:49718 · Aug 20, 2026 Medium
Also: SUSE (+6)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.