Read the docs

Rate limiter bypass in Echo via spoofed X-Forwarded-For header

Priority MEDIUM 63CWE-290Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
None · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-290.

Summary

Echo, a Go web framework, is affected from 4.0.0 before 5.1.0. Without Echo.IPExtractor, Context.RealIP trusts client-supplied X-Forwarded-For or X-Real-IP values, which the default RateLimiter uses as the client identifier (CWE-290). A remote attacker can rotate forwarded addresses to obtain new rate-limit buckets and bypass IP-based throttling used for brute-force or request-volume protection.

Written with Claude Haiku 5.5 from the sources below · 2026-11-06

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00415 36th percentileScored 2026-11-07
Fix Fixed echo (labstack): 5.1.0github.com/labstack/echo/v5 (Go): 5.1.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
labstackecho4.0.0 to before 5.1.05.1.0Patch availableCNA
—github.com/labstack/echo/v5 (Go)before 5.1.05.1.0Patch availableGHSA-246p-cpwv-v3jq
—github.com/labstack/echo/v4 (Go)4.0.0 – 4.16.2—No fix listedGHSA-246p-cpwv-v3jq
  • echo Vendorlabstack Affected 4.0.0 to before 5.1.0 Fixed in 5.1.0 Patch available CNA
  • github.com/labstack/echo/v5 (Go) Vendor— Affected before 5.1.0 Fixed in 5.1.0 Patch available GHSA-246p-cpwv-v3jq
  • github.com/labstack/echo/v4 (Go) Vendor— Affected 4.0.0 – 4.16.2 Fixed in — No fix listed GHSA-246p-cpwv-v3jq

Remediation

Upgrade labstack/echo and github.com/labstack/echo/v5 to version 5.1.0, which fixes the issue. The sources list no fixed version for github.com/labstack/echo/v4.

Written with Claude Haiku 5.5 from the sources below · 2026-11-06

  • Fix · CNA echo (labstack) Fixed in 5.1.0
  • Fix · GHSA-246p-cpwv-v3jq github.com/labstack/echo/v5 (Go) Fixed in 5.1.0 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-28 Threatist record created from CVE-2026-118653
  2. 2026-10-28 Alias added: GHSA-246p-cpwv-v3jq
  3. 2026-10-28 Fix available: Go/github.com/labstack/echo/[email protected] · GHSA-246p-cpwv-v3jq
  4. 2026-10-28 CVSS score added · GHSA-246p-cpwv-v3jq
  5. 2026-10-28 Weakness changed · GHSA-246p-cpwv-v3jq
  6. 2026-10-28 4 new references · GHSA-246p-cpwv-v3jq
  7. 2026-11-02 CISA SSVC decision points changed
  8. 2026-11-02 Priority changed: LOW → MEDIUM
  9. 2026-11-06 Affected versions changed · Red Hat
  10. 2026-11-06 CVSS score added · Red Hat

References

  • TI-2022-18981 Labstack Echo v4.8.0 was discovered to contain an open redirect vulnerability via the… CVSS 3.1CRITICAL 9.6
  • TI-2026-82185 Path decoding mismatch in Echo middleware.Static exposes static files CVSS 3.1HIGH 7.5
  • TI-2026-40198 Echo: Encoded slash (%2F) bypasses route-level protection and exposes static files CVSS 3.1HIGH 7.5
  • TI-2026-20833 Echo has a Windows path traversal via backslash in middleware.Static default filesystem CVSS 3.1MEDIUM 5.3
  • TI-2020-18793 Directory traversal on Windows in github.com/labstack/echo/v4 CVSS 3.1MEDIUM 5.3
  • TI-2026-82198 Forwarded scheme headers trusted in Echo, bypassing HTTPS redirect CVSS 3.1MEDIUM 5.9
See all 19 →

Sources