Skip to content
Heist/ feed
Medium

go-chi chi before 5.3.0 IP Spoofing via RealIP Middleware

Type: advisorySource: Official CVE List1 source record

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.

Announced Group revision 1
Original source ↗

CVE-2026-72816

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-72816

chi

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "go-chi",
    "product": "chi",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "5.3.0",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.3.0",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:golang/github.com/go-chi/chi/v5",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-72816

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

Event
#12834 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement