CVE-2026-118653: Rate Limiter Bypass via Spoofed X-Forwarded-For Header in Default Configuration in github.com/labstack/echo
Published 2026-11-05 · Updated 2026-11-24 · Also known as GHSA-246p-cpwv-v3jq, GO-2026-6872
Summary
The labstack/echo framework contains a vulnerability where a spoofed X-Forwarded-For header can bypass rate limiting due to default configuration issues. Engineering teams using echo/v4 or echo/v5 should upgrade to the specified patched versions to restore effective rate limiting.
Who is affected
This flaw impacts applications utilizing the default rate limiting configuration within labstack/echo versions 4.0.0 through 4.16.2 or echo/v5 prior to 5.1.0. Attackers can leverage spoofed headers to circumvent rate limits, potentially leading to unauthorized high-volume requests or resource exhaustion.
Exploitability
The exploitability is characterized by an EPSS score of 0.005, indicating a moderate probability of exploitation in the wild. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog, and a CVSS vector is not documented.
Remediation
- Upgrade github.com/labstack/echo/v4 to version 4.16.3 or higher.
- Upgrade github.com/labstack/echo/v5 to version 5.1.0 or higher.
How to check your project
- Inspect the go.mod file in the project root to identify the version of github.com/labstack/echo currently in use.
- Run 'go list -m github.com/labstack/echo' to verify the exact version utilized in the build environment.
Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/labstack/echo/v4 |
>= 4.0.0, < 4.16.3 | 4.16.3 | go get github.com/labstack/echo/[email protected] |
| Go | github.com/labstack/echo/v5 |
>= 0, < 5.1.0 | 5.1.0 | go get github.com/labstack/echo/[email protected] |
FAQ
Is this vulnerability being actively exploited?
There is no documentation or CISA KEV entry suggesting active exploitation at this time.
What specifically causes the bypass?
The bypass is caused by the handling of the X-Forwarded-For header in the default configuration, allowing unauthorized traffic to mask its origin.
Is a workaround available if I cannot upgrade immediately?
Workarounds are not documented in the provided vulnerability record.
Original advisory description
References
- ADVISORY https://github.com/labstack/echo/security/advisories/GHSA-246p-cpwv-v3jq
- FIX https://github.com/labstack/echo/commit/22e4b71109ef072ef011a489066ec662ca9565b2
- FIX https://github.com/labstack/echo/commit/ebbb855f5827b76fb206e267dd91d020000baf66
- WEB https://github.com/labstack/echo/releases/tag/v4.16.3
- WEB https://github.com/labstack/echo/releases/tag/v5.1.0
Source records: GO-2026-6872 (OSV.dev) · EPSS by FIRST, 2026-11-26.