CVE-2026-72815: go-chi chi v5.2.1 IP Spoofing via X-Forwarded-For Header

Published Aug 14, 2026
·
Updated

go-chi chi versions >= 5.2.1 and before 5.3.0 contain an IP spoofing vulnerability in the RealIP middleware, which blindly trusts the first (leftmost) value of the X-Forwarded-For HTTP header. A remote attacker can bypass IP-based access control lists and rate-limiting mechanisms, and forge log entries, by supplying a spoofed IP address in the X-Forwarded-For header. The issue is fixed in version 5.3.0.

Affected Software

1 affected component
go-chi/chi>=5.2.1<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. Upgrade

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

    Fixed in 5.3.0Patch go-chi chi v5.2.1 IP Spoofing via X-Forwarded-For Header

Event History

Aug 14, 2026
CVE Published
via MITRE·11:35 AM
Data Sourced
via MITRE·11:35 AM
DescriptionWeakness
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-72815?

CVE-2026-72815 has a risk rating of 47, indicating a moderate level of severity.

2

How do I fix CVE-2026-72815?

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

3

What systems are affected by CVE-2026-72815?

CVE-2026-72815 affects go-chi/chi versions greater than or equal to 5.2.1 and less than 5.3.0.

4

What kind of attack can exploit CVE-2026-72815?

CVE-2026-72815 can be exploited by remote attackers to bypass IP-based access controls and forge logs.

5

Which middleware in go-chi/chi is vulnerable in CVE-2026-72815?

The vulnerability in CVE-2026-72815 resides in the RealIP middleware of go-chi/chi.

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