---
id: GO-2026-5775
aliases:
  - GHSA-9g5q-2w5x-hmxf
title: >-
  Chi Middleware vulnerable to IP spoofing via X-Forwarded-For header in
  github.com/go-chi/chi
summary: >-
  Chi Middleware vulnerable to IP spoofing via 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-5775'
references:
  - url: 'https://github.com/go-chi/chi/security/advisories/GHSA-9g5q-2w5x-hmxf'
  - 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.890Z'
---

## Overview

Chi Middleware vulnerable to IP spoofing via 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`
