CVE-2026-72816
Received Received - Intake

IP Spoofing in Go-Chi Chi Router

Vulnerability report for CVE-2026-72816, 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 through 5.2.1 contains an IP spoofing vulnerability in the RealIP middleware (middleware/realip.go). The realIP() function reads client-controlled headers (True-Client-IP, X-Real-IP, and X-Forwarded-For) and overwrites r.RemoteAddr without verifying that the request originated from a trusted proxy. Attackers can supply arbitrary IP addresses in these headers to bypass IP-based access controls, evade rate limiting and geo-IP restrictions, and pollute audit logs. Fixed in 5.3.0.

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 2 associated CPEs
Vendor Product Version / Range
go-chi chi to 5.3.0 (exc)
go-chi chi 5.3.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-290 This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.

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 library's RealIP middleware. The middleware reads client-controlled headers like True-Client-IP, X-Real-IP, and X-Forwarded-For to overwrite the remote address without verifying the request came from a trusted proxy. Attackers can manipulate these headers to falsify their IP address.

Detection Guidance

Check if your go-chi/chi version is below 5.3.0 by running: go list -m github.com/go-chi/chi. Inspect HTTP headers like X-Forwarded-For, X-Real-IP, and True-Client-IP in requests to see if they contain arbitrary IP addresses not matching the actual client IP.

Impact Analysis
  • Bypass IP-based access controls by spoofing allowed IP addresses.
  • Evade rate limiting systems that restrict requests based on IP.
  • Circumvent geo-IP restrictions to access region-locked content.
  • Pollute audit logs with fake IP addresses, obscuring real activity.
Compliance Impact

This vulnerability could undermine compliance by allowing unauthorized access to sensitive data, making it difficult to accurately track user activity in audit logs. This may violate requirements for data access logging and user accountability in standards like GDPR and HIPAA.

Mitigation Strategies

Upgrade go-chi/chi to version 5.3.0 or later. If upgrading is not possible, validate proxy CIDR ranges before trusting forwarded IP headers. Ensure middleware only processes headers from trusted proxies.

Chat Assistant

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

EPSS Chart