---
id: GO-2026-5777
aliases:
  - GHSA-rjr7-jggh-pgcp
title: >-
  Chi's RealIP Middleware allows IP spoofing via unvalidated X-Forwarded-For
  header in github.com/go-chi/chi
summary: >-
  Chi's RealIP Middleware allows IP spoofing via unvalidated X-Forwarded-For
  header in github.com/go-chi/chi
severity: none
vendor: go-chi
product: github.com/go-chi/chi/v5
ecosystem: go
affected:
  - github.com/go-chi/chi/v5 < 5.3.0
patched:
  - github.com/go-chi/chi/v5 5.3.0
published: '2026-07-24'
updated: '2026-07-25'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GO-2026-5777'
references:
  - url: 'https://github.com/go-chi/chi/security/advisories/GHSA-rjr7-jggh-pgcp'
  - url: 'https://github.com/go-chi/chi/pull/967'
  - url: 'https://github.com/go-chi/chi/releases/tag/v5.3.0'
tags:
  - osv
  - go
ingestedAt: '2026-07-25T19:08:12.915Z'
---

## Overview

Chi's RealIP Middleware allows IP spoofing via unvalidated X-Forwarded-For header in github.com/go-chi/chi

## Affected packages

- `github.com/go-chi/chi/v5 < 5.3.0`

## Remediation

Upgrade to a patched release:

- `github.com/go-chi/chi/v5 5.3.0`
