CVE-2026-118657: Echo: HTTPS Redirect and HSTS Bypass via Unconditional Trust of Forwarded Scheme Headers in github.com/labstack/echo
Published 2026-11-05 · Updated 2026-11-05 · Also known as GHSA-2ffq-g2xg-c22p, GO-2026-6879
Summary
The Echo web framework unconditionally trusts forwarded scheme headers, allowing attackers to bypass HTTPS redirects and HSTS policies. Engineering teams using github.com/labstack/echo/v4 or v5 must update their dependencies.
Who is affected
Deployments utilizing Echo's HTTPS redirection or HSTS features behind reverse proxies or load balancers are affected. This flaw allows malicious actors to force connections over plain HTTP by manipulating forwarded scheme headers.
Exploitability
The CVSS vector is not provided and the CISA Known Exploited Vulnerabilities status is no, meaning active exploitation is not documented. The EPSS score is 0.001 with a percentile of 0.029, indicating a very low probability of exploitation in the wild.
Remediation
- Upgrade Go package github.com/labstack/echo/v4 to version 4.16.0 or later.
- Upgrade Go package github.com/labstack/echo/v5 to version 5.4.0 or later.
How to check your project
- Check go.mod and go.sum files for github.com/labstack/echo/v4 versions prior to 4.16.0.
- Check go.mod and go.sum files for github.com/labstack/echo/v5 versions prior to 5.4.0.
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/v4 |
>= 0, < 4.16.0 | 4.16.0 | 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
What is CVE-2026-118657?
It is an HTTPS redirect and HSTS bypass vulnerability in the Echo web framework caused by the unconditional trust of forwarded scheme headers.
Which packages are affected?
Go packages github.com/labstack/echo/v4 (before 4.16.0) and github.com/labstack/echo/v5 (before 5.4.0) are affected.
Is there any active exploitation documented?
No, CISA KEV status is no and exploit data is not documented beyond low EPSS metrics.
Original advisory description
References
- ADVISORY https://github.com/labstack/echo/security/advisories/GHSA-2ffq-g2xg-c22p
- FIX https://github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1
- FIX https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af
- WEB https://github.com/labstack/echo/releases/tag/v4.16.0
- WEB https://github.com/labstack/echo/releases/tag/v5.4.0
Source records: GO-2026-6879 (OSV.dev) · EPSS by FIRST, 2026-11-22.