Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-chi/chi/v5
  4. ›
  5. CVE-2026-114437

CVE-2026-114437: chi: Client IP spoofing in ClientIPFromXFF via X-Forwarded-For

October 23, 2026

ClientIPFromXFF 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.

The attack is remote and requires one unauthenticated HTTP request with no user interaction (AV:N/AC:L/PR:N/UI:N). It changes security decisions and exposes one protected handler within the same application (S:U/C:L/I:L); no availability loss was observed (A:N).

Preconditions: The application uses ClientIPFromXFF and makes the origin server reachable by an anonymous client outside the configured trusted-proxy CIDRs. No victim interaction is required.

  1. Send GET /admin directly to the origin with no X-Forwarded-For header.
  2. Observe a 403 Forbidden response and an empty derived client IP.
  3. Repeat the request with X-Forwarded-For: 10.0.0.7, 198.51.100.42.
  4. Observe 200 OK and client-ip="10.0.0.7". Expected: the untrusted direct peer prevents the forwarding chain from being accepted.

References

  • github.com/advisories/GHSA-j6qf-3m9c-vwj3
  • github.com/go-chi/chi/commit/7f9b7448f51d28804fac98c0a17bc2a7cec1079f
  • github.com/go-chi/chi/pull/1214
  • github.com/go-chi/chi/releases/tag/v5.4.0
  • github.com/go-chi/chi/security/advisories/GHSA-j6qf-3m9c-vwj3
  • nvd.nist.gov/vuln/detail/CVE-2026-114437
  • www.tenable.com/security/research/tra-2026-66

Code Behaviors & Features

Detect and mitigate CVE-2026-114437 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 5.4.0

Fixed versions

  • 5.4.0

Solution

Upgrade to version 5.4.0 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-345: Insufficient Verification of Data Authenticity

Source file

go/github.com/go-chi/chi/v5/CVE-2026-114437.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:55 +0000.