CVE-2026-118265: Echo: X-Real-IP extractor trusts the header value instead of the sending peer in github.com/labstack/echo
Published 2026-11-05 · Updated 2026-11-05 · Also known as GHSA-h53f-rm2w-w7rg, GO-2026-6841
Summary
The X-Real-IP extractor in github.com/labstack/echo incorrectly trusts the provided header value rather than the actual sending peer. Engineering teams maintaining applications using the affected Echo package versions should review and update their configurations.
Who is affected
Deployments using the affected versions of github.com/labstack/echo/v5 are impacted by improper IP extraction behavior. This condition allows untrusted header values to be trusted as the sending peer.
Exploitability
The EPSS score is 0.001 (percentile 0.033), indicating a very low probability of exploitation in the wild. CISA KEV status is no, meaning there is no record of active exploitation.
Remediation
- Upgrade github.com/labstack/echo/v5 to version 5.4.1 or later.
How to check your project
- Inspect the go.mod file in your Go projects to check if github.com/labstack/echo/v5 is used within the range introduced at 5.0.0 and fixed before 5.4.1.
Automated analysis of the published advisory data, generated 2026-11-19. 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/v5 |
>= 5.0.0, < 5.4.1 | 5.4.1 | go get github.com/labstack/echo/[email protected] |
FAQ
What packages are affected by this vulnerability?
Go package github.com/labstack/echo/v5 introduced at 5.0.0 and fixed before 5.4.1 is affected.
Is this vulnerability actively exploited in the wild?
No, CISA Known Exploited Vulnerabilities lists this as no.
How do I fix the vulnerability?
Upgrade github.com/labstack/echo/v5 to version 5.4.1.
Original advisory description
References
- ADVISORY https://github.com/labstack/echo/security/advisories/GHSA-h53f-rm2w-w7rg
- FIX https://github.com/labstack/echo/commit/1855061e572ae9dab727c811d8382f266bfbaaec
- WEB https://github.com/labstack/echo/releases/tag/v5.4.1
Source records: GO-2026-6841 (OSV.dev) · EPSS by FIRST, 2026-11-26.