CVE catalog

CVE-2026-72816

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-

[CVE catalog]

Severity
Medium · CVSS 6.9CVSS: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
Published
Source
[NVD] · [CVE record]
EPSS
0.30% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangolang-github-go-chi-chisid5.3.0-1fixed
Debiangolang-github-go-chi-chiforky5.3.0-1fixed
Debiangolang-github-go-chi-chitrixie5.2.0-1vulnerable
Debiangolang-github-go-chi-chibookworm5.0.7-1vulnerable
Ubuntugolang-github-go-chi-chi22.041.5.1-2vulnerable
Ubuntugolang-github-go-chi-chi22.045.0.7-1vulnerable
Ubuntugolang-github-go-chi-chi24.045.0.7-1vulnerable
Ubuntugolang-github-go-chi-chi26.045.2.0-1vulnerable
Ubuntugolang-github-go-chi-chi26.045.2.3-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-github-go-chi-chisourcesid5.3.0-1not yet assignedNot reportedNot reported
Debiangolang-github-go-chi-chisourceforky5.3.0-1not yet assignedNot reportedNot reported
Debiangolang-github-go-chi-chisourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiangolang-github-go-chi-chisourcebookworm(unfixed)not yet assignedNot reportedNot reported

Notes

[trixie] golang-github-go-chi-chi: Minor issue [bookworm] golang-github-go-chi-chi: Minor issue; out of LTS support

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [golang-github-go-chi-chi]

    Details (2)
    • 5.0.7-1 · all · bookworm

      Affected

      nvd · golang-github-go-chi-chi · debian · bookworm; nvd · golang-github-go-chi-chi · debian · 12

    • 5.0.7-1 · all · bookworm

      Affected

      nvd · golang-github-go-chi-chi · debian · bookworm; nvd · golang-github-go-chi-chi · debian · 12

[Debian 13 (Trixie)]

Observed:

References