Live threats

All CVEs / go-chi

CVE-2026-72817go-chi chi

Medium 6.9 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for chi.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

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.