NetSight
medium5.3

CVE-2026-118653

Echo has Rate Limiter Bypass via Spoofed X-Forwarded-For Header in Default Configuration

Impact

Echo is a Go web framework. From 4.0.0 until 5.1.0, Context.RealIP falls back to client-supplied X-Forwarded-For or X-Real-IP values when Echo.IPExtractor is unset, and the default RateLimiter uses that result as its client identifier. A remote attacker can rotate arbitrary forwarded-address values to obtain new rate-limit buckets and bypass IP-based throttling used for controls such as brute-force or request-volume protection. This issue is fixed in Echo v5.1.0.

Affected packages

EcosystemPackageAffectedFixed in
gogithub.com/labstack/echo/v5< 5.1.05.1.0
gogithub.com/labstack/echo/v4>= 4.0.0, <= 4.16.2none recorded

Weakness classification

References