Live threats

All CVEs / go-chi

CVE-2026-72815go-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 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.

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/v5 ≥ 5.2.1 < 5.3.0 5.3.0 go get github.com/go-chi/chi/v5@v5.3.0
Go github.com/go-chi/chi/v5 ≥ 5.2.1 < 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.2.1 < 5.3.0 5.3.0 go get github.com/go-chi/chi/v5/middleware@v5.3.0

Per OSV / GitHub Advisories (GHSA-3fxj-6jh8-hvhx, GO-2026-5774). 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), Red Hat (+1)

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

Official sources

References

Links published by the sources. Open them with care.