CVE-2026-72817
Received Received - Intake

IP Spoofing in go-chi/chi RealIP Middleware

Vulnerability report for CVE-2026-72817, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-14

Last updated on: 2026-08-14

Assigner: VulnCheck

Description

go-chi/chi versions 0.9.0 before 5.3.0 contains an IP spoofing vulnerability in the RealIP middleware, which resolves the request source IP (Request.RemoteAddr) using the first IP in the X-Forwarded-For header without validating trusted proxies. A malicious client can prepend a forged IP as the first value of the X-Forwarded-For header to spoof the request source IP, potentially bypassing access controls or falsifying request logs.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-14
Last Modified
2026-08-14
Generated
2026-08-14
AI Q&A
2026-08-14
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
go-chi chi to 5.3.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-345 The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an IP spoofing issue in the go-chi/chi web framework versions 0.9.0 to 5.2.0. The RealIP middleware incorrectly uses the first IP in the X-Forwarded-For header as the request source IP without validating trusted proxies. Attackers can forge this header to falsify their IP address, potentially bypassing access controls or manipulating request logs.

Detection Guidance

To detect this vulnerability, inspect HTTP request headers for manipulated X-Forwarded-For values. Check if your application uses go-chi/chi versions before 5.3.0. Monitor logs for inconsistencies between RemoteAddr and X-Forwarded-For headers. Test by sending requests with forged X-Forwarded-For headers to see if the server accepts them.

Impact Analysis

This vulnerability could allow attackers to bypass access controls by spoofing their IP address, leading to unauthorized access to restricted resources. It may also falsify request logs, making it difficult to trace malicious activities. Systems using proxies or load balancers are particularly vulnerable.

Mitigation Strategies

Upgrade go-chi/chi to version 5.3.0 or later. Configure the RealIP middleware to validate trusted proxies and use the last untrusted IP in the X-Forwarded-For header. Implement network-level controls to block requests with suspicious headers. Review and update access control policies to account for potential IP spoofing.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-72817. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart