CVE-2026-72816

NameCVE-2026-72816
Descriptiongo-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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-github-go-chi-chi (PTS)bookworm5.0.7-1vulnerable
trixie5.2.0-1vulnerable
forky, sid5.3.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-github-go-chi-chisource(unstable)5.3.0-1

Notes

[trixie] - golang-github-go-chi-chi <no-dsa> (Minor issue)
[bookworm] - golang-github-go-chi-chi <ignored> (Minor issue; out of LTS support)
[bullseye] - golang-github-go-chi-chi <ignored> (Minor issue; out of LTS support)
https://github.com/go-chi/chi/security/advisories/GHSA-rjr7-jggh-pgcp

Search for package or bug name: Reporting problems