Red Hat VEX
RHVEX-CVE-2026-72817
github.com/go-chi/chi/middleware: go-chi/chi: IP spoofing via X-Forwarded-For header manipulation
Details
A flaw was found in the go-chi/chi component. The RealIP middleware, responsible for resolving the request source IP, does not properly validate trusted proxies when processing the X-Forwarded-For header. A remote attacker can exploit this by prepending a forged IP address to the X-Forwarded-For header, leading to IP spoofing. This could allow the attacker to bypass access controls or falsify request logs.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | osbuild-composer | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | osbuild-composer-core | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | osbuild-composer-dnf-json | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | osbuild-composer-worker | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2026-72817
- https://bugzilla.redhat.com/show_bug.cgi?id=2516008
- https://www.cve.org/CVERecord?id=CVE-2026-72817
- https://nvd.nist.gov/vuln/detail/CVE-2026-72817
- https://github.com/go-chi/chi/security/advisories/GHSA-9g5q-2w5x-hmxf
- https://www.vulncheck.com/advisories/go-chi-chi-before-ip-spoofing-via-x-forwarded-for