Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/labstack/echo/v5
  4. ›
  5. CVE-2026-118653

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

October 28, 2026

When echo.New() is used without explicitly setting Echo#IPExtractor, the RealIP() method falls back to reading the client-supplied X-Forwarded-For (or X-Real-IP) header without any proxy-origin validation. The default RateLimiter() middleware derives its per-client identifier from ctx.RealIP(), so an attacker can rotate arbitrary values in the X-Forwarded-For header on each request to obtain a fresh rate-limit bucket and bypass IP-based throttling entirely.

References

  • github.com/advisories/GHSA-246p-cpwv-v3jq
  • github.com/labstack/echo/commit/22e4b71109ef072ef011a489066ec662ca9565b2
  • github.com/labstack/echo/releases/tag/v5.1.0
  • github.com/labstack/echo/security/advisories/GHSA-246p-cpwv-v3jq
  • nvd.nist.gov/vuln/detail/CVE-2026-118653

Code Behaviors & Features

Detect and mitigate CVE-2026-118653 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 5.1.0

Fixed versions

  • 5.1.0

Solution

Upgrade to version 5.1.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-290: Authentication Bypass by Spoofing

Source file

go/github.com/labstack/echo/v5/CVE-2026-118653.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 29 Oct 2026 12:15:48 +0000.