VulnPulse
MediumAdvisoryGoGitHub

Echo: X-Real-IP extractor trusts the header value instead of the sending peer

影響: go:github.com/labstack/echo/v5 >= 5.0.0, < 5.4.1 → 5.4.1

In Echo v5, ExtractIPFromRealIPHeader checked whether the address supplied in X-Real-IP belonged to a trusted range instead of checking the address of the direct network peer. An untrusted client could therefore supply a loopback or private address and have it returned by c.RealIP() with the extractor's default trust options. Applications using this extractor for IP allowlists, IP-based rate limiting, audit logs or forwarding headers could accept a spoofed client identity. Exploitation requires…

Read on GitHub Advisory Database

SourceGitHub Advisory Database
Fetched10/24/2026, 01:50 PM
DataMarkdown JSON

On 10/24/2026, 05:50 AM, GitHub Advisory Database published "Echo: X-Real-IP extractor trusts the header value instead of the sending peer" (type: Advisory). Severity is "Medium" (medium). Related technologies: Go, GitHub.