CVE-2026-118653 Echo: Rate Limiter Bypass via Spoofed X-Forwarded-For Header in Default Configuration

Medium 5.3 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-118653?

CVE-2026-118653 is a medium-severity vulnerability in labstack echo, published on 28 Oct 2026.

Official 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.

Weakness: CWE-290

Which versions are affected by CVE-2026-118653?

4 open source packages ship an affected version, including github.com/labstack/echo/v4 and github.com/labstack/echo/v5.

PackageAffectedFixed in
github.com/labstack/echo/v4 GoFrom 4.0.0 to 4.16.2None
github.com/labstack/echo/v4 GoFrom 4.0.0 to 4.16.2None
github.com/labstack/echo/v5 GoAll versions5.1.0
github.com/labstack/echo/v5 GoAll versions5.1.0

How do I fix CVE-2026-118653?

Upgrade to a fixed version.

Is CVE-2026-118653 being exploited?

There is no known exploitation of CVE-2026-118653 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-118653, GHSA-246p-cpwv-v3jq, UBUNTU-CVE-2026-118653.

Is CVE-2026-118653 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free