Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-chi/chi/middleware
  4. ›
  5. GHSA-rjr7-jggh-pgcp

GHSA-rjr7-jggh-pgcp: chi's RealIP Middleware allows IP spoofing via unvalidated X-Forwarded-For header

June 25, 2026

realip middleware in go-chi/chi trusts headers like x-forwarded-for without checking them, so attackers can fake their ip and bypass rate limits or access controls

References

  • github.com/advisories/GHSA-rjr7-jggh-pgcp
  • github.com/go-chi/chi/releases/tag/v5.3.0
  • github.com/go-chi/chi/security/advisories/GHSA-rjr7-jggh-pgcp

Code Behaviors & Features

Detect and mitigate GHSA-rjr7-jggh-pgcp 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 1.5.5

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-290: Authentication Bypass by Spoofing
  • CWE-348: Use of Less Trusted Source

Source file

go/github.com/go-chi/chi/middleware/GHSA-rjr7-jggh-pgcp.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:44 +0000.