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

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-25T18:21:37.000Z
- Modified: 2026-11-04T04:00:03.945Z
- Also known as: GHSA-3fxj-6jh8-hvhx, GO-2026-5774
- Related: CGA-fv5x-24pc-x6fw
- Weaknesses: CWE-290, CWE-345
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- go-chi chi: from 5.2.1 before 5.3.0 (not affected: 5.3.0)
- github.com/go-chi/chi/v5/middleware (Go): from 5.2.1 before 5.3.0
- github.com/go-chi/chi/v5 (Go): from 5.2.1 before 5.3.0

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/go-chi/chi/security/advisories/GHSA-3fxj-6jh8-hvhx> (exploit, advisory, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/go-chi-chi-ip-spoofing-via-x-forwarded-for-header> (third-party-advisory)
- <https://github.com/go-chi/chi/pull/967> (fix, web)
- <https://github.com/go-chi/chi/commit/3b171578ca44dfd75ca3c5cbddc7b44c600a7b49> (web)
- <https://github.com/go-chi/chi> (package)

## Sources

- CVE List: [CVE-2026-72815](https://www.cve.org/CVERecord?id=CVE-2026-72815), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-3fxj-6jh8-hvhx](https://github.com/advisories/GHSA-3fxj-6jh8-hvhx), CC-BY-4.0, modified 2026-11-04
- Go Vulnerability Database: [GO-2026-5774](https://pkg.go.dev/vuln/GO-2026-5774), CC-BY-4.0, modified 2026-08-15
- NVD: [CVE-2026-72815](https://nvd.nist.gov/vuln/detail/CVE-2026-72815), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2026-72815 · Whole record: https://cve.day/CVE-2026-72815.json · Rebuilt by cve.day 2026-11-25T22:59:32.902Z
