---
id: GO-2026-5774
aliases:
  - GHSA-3fxj-6jh8-hvhx
title: >-
  Chi has an IP spoofing vulnerability in middleware.RealIP in
  github.com/go-chi/chi
summary: >-
  Chi has an IP spoofing vulnerability in middleware.RealIP 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.2.1, < 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-5774'
references:
  - url: 'https://github.com/go-chi/chi/security/advisories/GHSA-3fxj-6jh8-hvhx'
  - url: 'https://github.com/go-chi/chi/pull/967'
tags:
  - osv
  - go
ingestedAt: '2026-07-25T19:08:12.865Z'
---

## Overview

Chi has an IP spoofing vulnerability in middleware.RealIP in github.com/go-chi/chi

## Affected packages

- `github.com/go-chi/chi/v5 >= 5.2.1, < 5.3.0`

## Remediation

Upgrade to a patched release:

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