CVE-2026-118653
MEDIUM 5.3CVSS 3.1Echo has 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.
- Published
- 28 Oct 2026
- Last modified
- 1 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Undergoing Analysis
- Weakness
- CWE-290
- Also known as
- GHSA-246p-cpwv-v3jqGO-2026-6872
- Sources
- NVDJSONOSV GHSA-246p-cpwv-v3jqJSONOSV GO-2026-6872JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/labstack/echo/v5 | < 5.1.0 | 5.1.0 |
| OSV | Go | github.com/labstack/echo/v4 | >= 4.0.0, < 4.16.3 | 4.16.3 |
References
- https://github.com/labstack/echo/commit/22e4b71109ef072ef011a489066ec662ca9565b2 · WEB, FIX
- https://github.com/labstack/echo/releases/tag/v5.1.0 · WEB
- https://github.com/labstack/echo/security/advisories/GHSA-246p-cpwv-v3jq · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-118653 · ADVISORY
- https://github.com/labstack/echo/pull/3197 · WEB
- https://github.com/labstack/echo/commit/ebbb855f5827b76fb206e267dd91d020000baf66 · WEB, FIX
- https://github.com/labstack/echo · PACKAGE
- https://github.com/labstack/echo/releases/tag/v4.16.3 · WEB
History
- 1 Dec 2026 15:49 UTC · OSV: affected list changed (2 entries); 4 references added
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 28 Oct 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Nov 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 28 Oct 2026)