Skip to content
Heist/ feed
Back to feed
Unrated

Duplicate Advisory: chi: Client IP spoofing in ClientIPFromXFF via X-Forwarded-For

Type: withdrawalSources: OSV

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-j6qf-3m9c-vwj3. This link is maintained to preserve external references. ## Original Description 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
Not specified
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 03:19 UTC · Revision 1

Source evidence

Duplicate Advisory: chi: Client IP spoofing in ClientIPFromXFF via X-Forwarded-For

core-osv · Original source

Published 21 Oct 2026, 15:42 UTC

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-j6qf-3m9c-vwj3. This link is maintained to preserve external references. ## Original Description 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.

osv:GHSA-7cgw-qmxx-7fc2

github.com/go-chi/chi/v5

Fixed versions: Not specified

Complete source record
{
  "id": "821b7c2df8547aa750c74588e6fff319fb554949c6ff79fd036c135c5c2a24ab",
  "url": "https://osv.dev/vulnerability/GHSA-7cgw-qmxx-7fc2",
  "method": "structured",
  "payload": {
    "kind": "withdrawal",
    "title": "Duplicate Advisory: chi: Client IP spoofing in ClientIPFromXFF via X-Forwarded-For",
    "summary": "## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-j6qf-3m9c-vwj3. This link is maintained to preserve external references. ## Original Description 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.",
    "evidence": "osv:GHSA-7cgw-qmxx-7fc2",
    "products": [
      {
        "name": {
          "value": "github.com/go-chi/chi/v5",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "GHSA-7cgw-qmxx-7fc2",
      "aliases": [
        "GHSA-7cgw-qmxx-7fc2"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:H/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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "5.3.2"
                }
              ]
            }
          ],
          "package": {
            "name": "github.com/go-chi/chi/v5",
            "purl": "pkg:golang/github.com/go-chi/chi/v5",
            "ecosystem": "Go"
          },
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-7cgw-qmxx-7fc2/GHSA-7cgw-qmxx-7fc2.json"
          }
        }
      ],
      "modified": "2026-10-23T21:15:03.744165797Z",
      "provider": "osv",
      "references": [
        "https://github.com/go-chi/chi/security/advisories/GHSA-j6qf-3m9c-vwj3",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-114437",
        "https://www.tenable.com/security/research/tra-2026-66"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-348"
        ],
        "severity": "MODERATE",
        "github_reviewed": true,
        "nvd_published_at": "2026-10-21T14:17:14Z",
        "github_reviewed_at": "2026-10-23T20:56:29Z"
      }
    },
    "related_cves": [],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 427037,
  "published_at": "2026-10-21T15:42:31+00:00"
}