Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-chi/chi/v4/middleware
  4. ›
  5. GHSA-9g5q-2w5x-hmxf

GHSA-9g5q-2w5x-hmxf: chi Middleware Vulnerable to Potential IP Spoofing via `X-Forwarded-For` Header in `Request.RemoteAddr` Resolution

June 25, 2026

The vulnerability allows the Request.RemoteAddr to be spoofed when determining the request source IP via the X-Forwarded-For header. This could result in misidentification of the request source and potentially compromise access control and logging integrity.

References

  • github.com/advisories/GHSA-9g5q-2w5x-hmxf
  • github.com/go-chi/chi/releases/tag/v5.3.0
  • github.com/go-chi/chi/security/advisories/GHSA-9g5q-2w5x-hmxf

Code Behaviors & Features

Detect and mitigate GHSA-9g5q-2w5x-hmxf 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 up to 4.1.3

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-346: Origin Validation Error

Source file

go/github.com/go-chi/chi/v4/middleware/GHSA-9g5q-2w5x-hmxf.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:33 +0000.