CVE-2026-72817: go-chi chi 0.9.0 before 5.3.0 IP Spoofing via X-Forwarded-For

Published Aug 14, 2026
·
Updated

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.

Affected Software

1 affected component
go-chi/chi>=0.9.0<5.3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go-chi/chi to a version that resolves this vulnerability.

    Fixed in 5.3.0
  2. Configuration

    Update the RealIP middleware configuration so it only uses the first X-Forwarded-For IP when the request is coming from a trusted proxy; otherwise fall back to Request.RemoteAddr and do not use unvalidated X-Forwarded-For.

    go-chi chi RealIP middleware X-Forwarded-For handling / trusted proxies validation = Enable validation of trusted proxies (do not trust the first X-Forwarded-For IP unless the proxy is trusted)

Event History

Aug 14, 2026
CVE Published
via MITRE·11:35 AM
Data Sourced
via MITRE·11:35 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-72817?

The severity of CVE-2026-72817 is rated as medium, with a score of 6.5.

2

How do I fix CVE-2026-72817?

To fix CVE-2026-72817, upgrade go-chi/chi to version 5.3.0 or later.

3

What type of vulnerability is CVE-2026-72817?

CVE-2026-72817 is an IP spoofing vulnerability related to the X-Forwarded-For header.

4

What impact does CVE-2026-72817 have on my system?

CVE-2026-72817 may allow a malicious client to spoof their IP address, potentially bypassing security controls.

5

Which versions of go-chi/chi are affected by CVE-2026-72817?

CVE-2026-72817 affects go-chi/chi versions 0.9.0 before 5.3.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2026-72817 - go-chi chi 0.9.0 before 5.3.0 IP Spoofing via X-Forwarded-For - SecAlerts