CVE-2026-118651: Reverse Proxy Forwards Attacker-Supplied X-Real-IP to Upstream by Default in github.com/labstack/echo
Published 2026-11-05 · Updated 2026-11-24 · Also known as GHSA-99jh-6h7p-pp36, GO-2026-6875
Summary
A vulnerability in github.com/labstack/echo causes its reverse proxy component to forward client-supplied X-Real-IP headers to upstream servers by default. Security and engineering teams using affected versions of Echo should upgrade to patched releases.
Who is affected
Applications using github.com/labstack/echo as a reverse proxy are affected when handling untrusted traffic. An attacker can supply an arbitrary X-Real-IP header, which the proxy forwards to upstream destinations without stripping or overriding it. Additional impact details or specific conditions are not documented.
Exploitability
CVSS vector and base score metrics are not provided for this vulnerability. The EPSS score is 0.002 (0.107th percentile), reflecting a low probability of exploitation. CISA Known Exploited Vulnerabilities list does not include this flaw, indicating no known active exploitation.
Remediation
- Upgrade github.com/labstack/echo/v4 to version 4.16.3 or higher.
- Upgrade github.com/labstack/echo/v5 to version 5.4.0 or higher.
How to check your project
- Check your project's go.mod file for dependencies on github.com/labstack/echo/v4 (versions 4.0.0 up to 4.16.2) or github.com/labstack/echo/v5 (versions prior to 5.4.0).
- Run `go list -m github.com/labstack/echo/v4` or `go list -m github.com/labstack/echo/v5` in your build environment to verify the resolved package version.
Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/labstack/echo/v4 |
>= 4.0.0, < 4.16.3 | 4.16.3 | go get github.com/labstack/echo/[email protected] |
| Go | github.com/labstack/echo/v5 |
>= 0, < 5.4.0 | 5.4.0 | go get github.com/labstack/echo/[email protected] |
FAQ
Is CVE-2026-118651 actively being exploited in the wild?
No. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog, and its EPSS score is 0.002.
Are there any documented workarounds?
Workarounds are not documented. The recommended action is to upgrade to a fixed version of the library.
Which specific package versions are impacted?
github.com/labstack/echo/v4 is affected from version 4.0.0 up to (but not including) 4.16.3, and github.com/labstack/echo/v5 is affected for all versions prior to 5.4.0.
Original advisory description
References
- ADVISORY https://github.com/labstack/echo/security/advisories/GHSA-99jh-6h7p-pp36
- FIX https://github.com/labstack/echo/commit/ebbb855f5827b76fb206e267dd91d020000baf66
- FIX https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af
- WEB https://github.com/labstack/echo/releases/tag/v4.16.3
- WEB https://github.com/labstack/echo/releases/tag/v5.4.0
Source records: GO-2026-6875 (OSV.dev) · EPSS by FIRST, 2026-11-26.