Vulnerability · Published Aug 14, 2026 · Assigned by VulnCheck

CVE-2026-72817go-chi chi 0.9.0 before 5.3.0 IP Spoofing via X-Forwarded-For

Medium 6.5

In plain English

A medium-severity insufficient verification of data authenticity in chi from go-chi. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-github-go-chi-chino fix listedDEBIAN-CVE-2026-72817
Debian:13golang-github-go-chi-chino fix listedDEBIAN-CVE-2026-72817
Debian:14golang-github-go-chi-chi5.3.0-1DEBIAN-CVE-2026-72817
Gogithub.com/go-chi/chi/middlewareno fix listedGHSA-9g5q-2w5x-hmxf
Gogithub.com/go-chi/chi/v2/middlewareno fix listedGHSA-9g5q-2w5x-hmxf
Gogithub.com/go-chi/chi/v3/middlewareno fix listedGHSA-9g5q-2w5x-hmxf
Gogithub.com/go-chi/chi/v4/middlewareno fix listedGHSA-9g5q-2w5x-hmxf
Gogithub.com/go-chi/chi/v55.3.0GO-2026-5775
Gogithub.com/go-chi/chi/v5/middleware5.3.0GHSA-9g5q-2w5x-hmxf
Ubuntu:22.04:LTSgolang-github-go-chi-chino fix listedUBUNTU-CVE-2026-72817
Ubuntu:24.04:LTSgolang-github-go-chi-chino fix listedUBUNTU-CVE-2026-72817
Ubuntu:26.04:LTSgolang-github-go-chi-chino fix listedUBUNTU-CVE-2026-72817

Affected products (as reported)

VendorProductVersions
go-chi chi 0.9.0 – before 5.3.0

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

References