Vulnerability · Published Oct 28, 2026 · Assigned by GitHub_M
CVE-2026-118651Echo: Reverse Proxy Forwards Attacker-Supplied X-Real-IP to Upstream by Default
Medium 5.3
In plain English
A medium-severity security flaw in echo from labstack. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Echo is a Go web framework. From 4.0.0 until 5.4.0, the Proxy middleware can preserve an attacker-supplied X-Real-IP header and forward it to an upstream service when Echo.IPExtractor is not configured. A remote client can therefore make upstream services receive a spoofed client address, undermining IP-based access controls, rate limiting, audit logging, or geographic restrictions that trust Echo's forwarded identity. This issue is fixed in Echo 5.4.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-github-labstack-echo | no fix listed | DEBIAN-CVE-2026-118651 |
| Debian:13 | golang-github-labstack-echo | no fix listed | DEBIAN-CVE-2026-118651 |
| Debian:14 | golang-github-labstack-echo | no fix listed | DEBIAN-CVE-2026-118651 |
| Go | github.com/labstack/echo/v4 | no fix listed | GHSA-99jh-6h7p-pp36 |
| Go | github.com/labstack/echo/v4 | no fix listed | GO-2026-6875 |
| Go | github.com/labstack/echo/v5 | 5.4.0 | GHSA-99jh-6h7p-pp36 |
| Go | github.com/labstack/echo/v5 | 5.4.0 | GO-2026-6875 |
| Ubuntu:22.04:LTS | golang-github-labstack-echo | no fix listed | UBUNTU-CVE-2026-118651 |
| Ubuntu:24.04:LTS | golang-github-labstack-echo | no fix listed | UBUNTU-CVE-2026-118651 |
| Ubuntu:26.04:LTS | golang-github-labstack-echo | no fix listed | UBUNTU-CVE-2026-118651 |
| Ubuntu:26.10 | golang-github-labstack-echo | no fix listed | UBUNTU-CVE-2026-118651 |
| Ubuntu:22.04:LTS | golang-github-labstack-echo.v2 | no fix listed | UBUNTU-CVE-2026-118651 |
| Ubuntu:22.04:LTS | golang-github-labstack-echo.v3 | no fix listed | UBUNTU-CVE-2026-118651 |
Affected products (as reported)
Weakness: CWE-346 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
References
- https://github.com/labstack/echo/security/advisories/GHSA-99jh-6h7p-pp36 x_refsource_CONFIRM
- https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af x_refsource_MISC
- https://github.com/labstack/echo/releases/tag/v5.4.0 x_refsource_MISC