CVE-2026-72815 PUBLISHED

go-chi chi v5.2.1 IP Spoofing via X-Forwarded-For Header

Assigner: VulnCheck
Reserved: 10.08.2026 Published: 14.08.2026 Updated: 14.08.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
CVSS Score: 6.9

Product Status

Vendor go-chi
Product chi
Versions Default: unaffected
  • affected from 5.2.1 to 5.3.0 (excl.)
  • Version 5.3.0 is unaffected

Credits

  • Saku0512 reporter

References

Problem Types

  • Authentication Bypass by Spoofing CWE