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

- 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.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-06-25T18:18:56.000Z
- Modified: 2026-10-08T16:17:35.923Z
- Also known as: GHSA-9g5q-2w5x-hmxf, GO-2026-5775
- Related: CGA-vphg-6r8r-9x6m
- Weaknesses: CWE-345, CWE-346
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- go-chi chi: from 0.9.0 before 5.3.0 (not affected: 5.3.0)
- github.com/go-chi/chi/middleware (Go): from 0.9.0 up to 1.5.5
- github.com/go-chi/chi/v2/middleware (Go): up to 2.1.1
- github.com/go-chi/chi/v3/middleware (Go): up to 3.3.5
- github.com/go-chi/chi/v4/middleware (Go): up to 4.1.3
- github.com/go-chi/chi/v5/middleware (Go): before 5.3.0
- github.com/go-chi/chi/v5 (Go): 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`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P`

## References

- <https://github.com/go-chi/chi/security/advisories/GHSA-9g5q-2w5x-hmxf> (advisory, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/go-chi-chi-before-ip-spoofing-via-x-forwarded-for> (third-party-advisory)
- <https://github.com/go-chi/chi> (package)
- <https://github.com/go-chi/chi/releases/tag/v5.3.0> (web)
- <https://github.com/go-chi/chi/pull/967> (fix)

## Sources

- CVE List: [CVE-2026-72817](https://www.cve.org/CVERecord?id=CVE-2026-72817), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-9g5q-2w5x-hmxf](https://github.com/advisories/GHSA-9g5q-2w5x-hmxf), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5775](https://pkg.go.dev/vuln/GO-2026-5775), CC-BY-4.0, modified 2026-08-15
- NVD: [CVE-2026-72817](https://nvd.nist.gov/vuln/detail/CVE-2026-72817), Public domain, modified 2026-10-08

---

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