Skip to content
Heist/ feed
Medium

Chi Client IP Spoofing in ClientIPFromXFF via X-Forwarded-For

Type: advisorySource: Official CVE List1 source record

In the Golang Chi web framework, the ClientIPFromXFF middleware skips any X-Forwarded-For entry in a configured trusted CIDR but never verifies that the direct TCP peer in http.Request.RemoteAddr belongs to that CIDR. A client that can reach the Go server directly can therefore append a trusted-looking proxy address and choose the client IP returned by middleware.GetClientIP. This issue affects chi before 5.4.0.

Announced Group revision 1
Original source ↗

CVE-2026-114437

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-114437

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.4.0",
        "versionType": "semver"
      }
    ],
    "packageName": "github.com/go-chi/chi/v5",
    "collectionURL": "https://pkg.go.dev",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-114437

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

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