CVE-2026-118264: Echo: Rejected WebSocket upgrades can bypass Echo route-level access controls in github.com/labstack/echo
Published 2026-11-05 · Updated 2026-11-05 · Also known as GHSA-cxf3-9h37-7rr8, GO-2026-6839
Summary
A security bypass flaw exists in Labstack Echo where rejected WebSocket upgrade requests can bypass route-level access controls. Engineering teams maintaining applications using affected versions of Echo must update their dependencies.
Who is affected
Applications utilizing github.com/labstack/echo/v4 or github.com/labstack/echo/v5 with route-level access controls are affected. Under specific conditions involving rejected WebSocket upgrades, unauthorized request paths may bypass security checks.
Exploitability
The CVSS vector and base score are not provided. The current EPSS score is 0.004 (percentile 0.378), and CISA KEV active exploitation is marked as no.
Remediation
- Upgrade Go package github.com/labstack/echo/v4 to version 4.16.1 or later.
- Upgrade Go package github.com/labstack/echo/v5 to version 5.4.1 or later.
How to check your project
- Inspect project dependency files (such as go.mod) to determine if github.com/labstack/echo/v4 or github.com/labstack/echo/v5 is included.
- Check installed module versions against the affected version ranges (v4.0.0 up to 4.16.0, and v5.0.0 up 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 |
>= 4.0.0, < 4.16.1 | 4.16.1 | go get github.com/labstack/echo/[email protected] |
| 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 CVE-2026-118264?
Go github.com/labstack/echo/v4 (versions 4.0.0 through 4.16.0) and github.com/labstack/echo/v5 (versions 5.0.0 through 5.4.0).
Is this vulnerability actively exploited in the wild?
No, CISA Known Exploited Vulnerabilities status is set to no.
How do I fix this vulnerability?
Update github.com/labstack/echo/v4 to version 4.16.1 or github.com/labstack/echo/v5 to version 5.4.1.
Original advisory description
References
- ADVISORY https://github.com/labstack/echo/security/advisories/GHSA-cxf3-9h37-7rr8
- FIX https://github.com/labstack/echo/commit/1855061e572ae9dab727c811d8382f266bfbaaec
- FIX https://github.com/labstack/echo/commit/3fb0ba7e17645bb65611e2a08875d0a2f65c421f
- WEB https://github.com/labstack/echo/releases/tag/v4.16.1
- WEB https://github.com/labstack/echo/releases/tag/v5.4.1
Source records: GO-2026-6839 (OSV.dev) · EPSS by FIRST, 2026-11-26.