CVEslabstackCVE-2026-118651Published Oct 28, 19:30 · Updated Oct 29, 20:53 UTC
5.3
MediumCVSS 3.1 · from GitHub_M
CVE-2026-118651

Echo: Reverse Proxy Forwards Attacker-Supplied X-Real-IP to Upstream by Default

echo · CWE-346 · CWE-346
Affectedecho
FixNo fix listed yet.
PublishedOct 28, 19:30 · GitHub_M
ScoredOct 28 · 5.3 · GitHub_M
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:08 UTC

What we know

No known exploitation. CISA KEV, checked 22:08 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker only needs network access to the target. No login needed. CVSS: network, no privileges.

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.

From GitHub_M

Affected and fixed versions

ProductAffectedFixed inecho>= 4.0.0, < 5.4.0–

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

github.com/labstack/echo/security/advisories/GHSA-99jh-6h7p-pp36 · github.comrefsource_CONFIRMgithub.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af · github.comrefsource_MISCgithub.com/labstack/echo/releases/tag/v5.4.0 · github.comrefsource_MISC

Other CVEs in echo

All 17 →
4.7Echo: Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto · CVE-2026-118658Oct 285.9Echo: HTTPS Redirect and HSTS Bypass via Unconditional Trust of Forwarded Scheme Headers · CVE-2026-118657Oct 286.1Echo: Open Redirect via Control-Character Prefix Defeating sanitizeURI · CVE-2026-118656Oct 28