Vulnerability · Published Aug 14, 2026 · Assigned by VulnCheck

CVE-2026-72816go-chi chi before 5.3.0 IP Spoofing via RealIP Middleware

Medium 6.5

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.3% (higher than 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.3%top 77.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-github-go-chi-chino fix listedDEBIAN-CVE-2026-72816
Debian:13golang-github-go-chi-chino fix listedDEBIAN-CVE-2026-72816
Debian:14golang-github-go-chi-chi5.3.0-1DEBIAN-CVE-2026-72816
Gogithub.com/go-chi/chi/middlewareno fix listedGHSA-rjr7-jggh-pgcp
Gogithub.com/go-chi/chi/v2/middlewareno fix listedGHSA-rjr7-jggh-pgcp
Gogithub.com/go-chi/chi/v3/middlewareno fix listedGHSA-rjr7-jggh-pgcp
Gogithub.com/go-chi/chi/v4/middlewareno fix listedGHSA-rjr7-jggh-pgcp
Gogithub.com/go-chi/chi/v55.3.0GO-2026-5777
Gogithub.com/go-chi/chi/v5/middleware5.3.0GHSA-rjr7-jggh-pgcp
Ubuntu:22.04:LTSgolang-github-go-chi-chino fix listedUBUNTU-CVE-2026-72816
Ubuntu:24.04:LTSgolang-github-go-chi-chino fix listedUBUNTU-CVE-2026-72816
Ubuntu:26.04:LTSgolang-github-go-chi-chino fix listedUBUNTU-CVE-2026-72816

Affected products (as reported)

VendorProductVersions
go-chi chi 0 – before 5.3.0

Weakness: CWE-290 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

References