CVE-2026-72817 — Vulnerability in github.com/go-chi/chi/middleware...
chi Middleware Vulnerable to Potential IP Spoofing via `X-Forwarded-For` Header in `Request.RemoteAddr` Resolution
Summary
Advisory Timeline
- First published June 25, 2026 (109 days ago).
- Last revised September 10, 2026 — 76 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/go-chi/chi/v5/middleware@v5.3.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (5)
Affects 1 ecosystem: go (5).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| github.com/go-chi/chi/middleware | go | All versions | Range-based data available |
| github.com/go-chi/chi/v4/middleware | go | All versions | Range-based data available |
| github.com/go-chi/chi/v5/middleware | go | All versions | 5.3.0 |
| github.com/go-chi/chi/v3/middleware | go | All versions | Range-based data available |
| github.com/go-chi/chi/v2/middleware | go | All versions | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-346Origin Validation ErrorMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
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
References
Frequently Asked Questions
- What is CVE-2026-72817?
- chi Middleware Vulnerable to Potential IP Spoofing via `X-Forwarded-For` Header in `Request.RemoteAddr` Resolution This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-72817?
- CVE-2026-72817 affects github.com/go-chi/chi/middleware, github.com/go-chi/chi/v4/middleware and github.com/go-chi/chi/v5/middleware (and 2 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-72817 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2026-107809HIGH
Nginx-UI AuthRequired token cookie fallback enables CSRF against management APIs
- CVE-2026-107813HIGH
Nginx UI: Incomplete fix of CVE-2026-84315 - the api/cluster router was not - wrapped in RequireSecureSession, so those sensitive mutations run without OTP step-up
- CVE-2026-72816HIGH
chi's RealIP Middleware allows IP spoofing via unvalidated X-Forwarded-For header
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies