CVE-2026-118653
Echo: Rate Limiter Bypass via Spoofed X-Forwarded-For Header in Default Configuration
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.
Fixes and workarounds
Fix
github.com/labstack/echo/v5 (Go): OSV reports a fixed version 5.1.0. Check the advisory for supported release branches.
Source: OSV GHSA-246p-cpwv-v3jqAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| echo labstack |
>= 4.0.0, < 5.1.0 (affected) | CNA: GitHub_M |
github.com/labstack/echo/v5github.com/labstack/echo/v5
Go |
≥ 0; < 5.1.0 (affected, semver); OSV events: introduced 0; fixed 5.1.0Source events (semver)
Other versions: unaffected |
OSV GHSA-246p-cpwv-v3jq |
github.com/labstack/echo/v4github.com/labstack/echo/v4
Go |
≥ 4.0.0; ≤ 4.16.2 (affected, semver); OSV events: introduced 4.0.0; last affected 4.16.2Source events (semver)
Other versions: unaffected |
OSV GHSA-246p-cpwv-v3jq |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 5.3 medium |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | CNA: GitHub_M |
Exploit evidence
- https://github.com/labstack/echo/security/advisories/GHSA-246p-cpwv-v3jq
exploit · ADP: CISA-ADP
References
- https://github.com/labstack/echo/security/advisories/GHSA-246p-cpwv-v3jqCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/labstack/echo/commit/22e4b71109ef072ef011a489066ec662ca9565b2CNA: GitHub_M · x_refsource_MISC
- https://github.com/labstack/echo/releases/tag/v5.1.0CNA: GitHub_M · x_refsource_MISC
- https://github.com/labstack/echo/security/advisories/GHSA-246p-cpwv-v3jqADP: CISA-ADP · exploit
- https://github.com/advisories/GHSA-246p-cpwv-v3jqOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-246p-cpwv-v3jqOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.