Echo: Reverse Proxy Forwards Attacker-Supplied X-Real-IP to Upstream by Default
影響: go:github.com/labstack/echo/v5 < 5.4.0 → 5.4.0, go:github.com/labstack/echo/v4 >= 4.0.0, <= 4.16.2
The Echo proxy middleware (middleware/proxy.go) preserves an incoming X-Real-IP header verbatim and forwards it to the upstream service when Echo#IPExtractor is not configured — which is the default. Because any HTTP client can supply an arbitrary X-Real-IP value, an attacker can cause Echo to relay a spoofed client IP address to every upstream service behind the proxy, undermining upstream IP-based access controls, rate limiting, audit logging, and geo-restriction. Affected Component - middlew…
| CVE | CVE-2026-118651 |
|---|---|
| 来源 | GitHub Advisory Database |
| 获取时间 | 2026/10/29 09:48 |
| 数据 | Markdown JSON |
2026/10/29 04:53,GitHub Advisory Database 发布了“Echo: Reverse Proxy Forwards Attacker-Supplied X-Real-IP to Upstream by Default”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:Go、GitHub。CVE:CVE-2026-118651。