Vulnerability · Published Aug 14, 2026 · Assigned by VulnCheck

CVE-2026-72815go-chi chi v5.2.1 IP Spoofing via X-Forwarded-For Header

Medium 6.9

In plain English

A medium-severity authentication bypass by spoofing in chi from go-chi. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.5%top 57.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-github-go-chi-chino fix listedDEBIAN-CVE-2026-72815
Debian:13golang-github-go-chi-chino fix listedDEBIAN-CVE-2026-72815
Debian:14golang-github-go-chi-chi5.3.0-1DEBIAN-CVE-2026-72815
Gogithub.com/go-chi/chi/v55.3.0GHSA-3fxj-6jh8-hvhx
Gogithub.com/go-chi/chi/v55.3.0GO-2026-5774
Gogithub.com/go-chi/chi/v5/middleware5.3.0GHSA-3fxj-6jh8-hvhx
Ubuntu:22.04:LTSgolang-github-go-chi-chino fix listedUBUNTU-CVE-2026-72815
Ubuntu:24.04:LTSgolang-github-go-chi-chino fix listedUBUNTU-CVE-2026-72815
Ubuntu:26.04:LTSgolang-github-go-chi-chino fix listedUBUNTU-CVE-2026-72815

Affected products (as reported)

VendorProductVersions
go-chi chi 5.2.1 – before 5.3.0

Weakness: CWE-290 · 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

References