Live threats

All CVEs / go-chi

CVE-2026-72816go-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-290
SSVC (CISA)
Exploitation: proof of concept · 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 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.

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 ≤ 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-rjr7-jggh-pgcp, GO-2026-5777). 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 (+2)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.