Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-chi/chi/v2/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. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.1.1

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/v2/middleware/GHSA-9g5q-2w5x-hmxf.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Thu, 16 Jul 2026 00:19:50 +0000.