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.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.2%top 89.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12golang-github-labstack-echono fix listedDEBIAN-CVE-2026-118651
Debian:13golang-github-labstack-echono fix listedDEBIAN-CVE-2026-118651
Debian:14golang-github-labstack-echono fix listedDEBIAN-CVE-2026-118651
Gogithub.com/labstack/echo/v4no fix listedGHSA-99jh-6h7p-pp36
Gogithub.com/labstack/echo/v4no fix listedGO-2026-6875
Gogithub.com/labstack/echo/v55.4.0GHSA-99jh-6h7p-pp36
Gogithub.com/labstack/echo/v55.4.0GO-2026-6875
Ubuntu:22.04:LTSgolang-github-labstack-echono fix listedUBUNTU-CVE-2026-118651
Ubuntu:24.04:LTSgolang-github-labstack-echono fix listedUBUNTU-CVE-2026-118651
Ubuntu:26.04:LTSgolang-github-labstack-echono fix listedUBUNTU-CVE-2026-118651
Ubuntu:26.10golang-github-labstack-echono fix listedUBUNTU-CVE-2026-118651
Ubuntu:22.04:LTSgolang-github-labstack-echo.v2no fix listedUBUNTU-CVE-2026-118651
Ubuntu:22.04:LTSgolang-github-labstack-echo.v3no fix listedUBUNTU-CVE-2026-118651

Affected products (as reported)

VendorProductVersions
labstack echo >= 4.0.0, < 5.4.0

Weakness: CWE-346 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References