CVE-2026-118653

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

Medium published · updated · also known as GHSA-246P-CPWV-V3JQ

5.3
CVSS score out of 10 · NVD (github.com)

Description

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 products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
github.com/labstack/echo/v5 go < 5.1.05.1.0 GitHub
github.com/labstack/echo/v4 go >= 4.0.0, <= 4.16.2— GitHub

References