GHSA-7cgw-qmxx-7fc2

Suggest an improvement
Source
https://github.com/advisories/GHSA-7cgw-qmxx-7fc2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-7cgw-qmxx-7fc2/GHSA-7cgw-qmxx-7fc2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7cgw-qmxx-7fc2
Withdrawn
2026-10-23T20:56:29Z
Published
2026-10-21T15:42:31Z
Modified
2026-10-23T21:15:03Z
Severity
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
  • 6.3 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Duplicate Advisory: chi: Client IP spoofing in ClientIPFromXFF via X-Forwarded-For
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-348"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-23T20:56:29Z",
    "nvd_published_at":  "2026-10-21T14:17:14Z",
    "severity":  "MODERATE"
}
References

Affected packages

Go / github.com/go-chi/chi/v5

Package

Name
github.com/go-chi/chi/v5
View open source insights on deps.dev
Purl
pkg:golang/github.com/go-chi/chi/v5

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
5.3.2

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"