CVE-2026-118264labstack echo
Authentication bypass in Echo Proxy middleware
Critical 9.1 No auth needed
Follow: this CVE · labstack · labstack echo We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 4.0
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Oct 28, 2026
- Updated
- Nov 4, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
Echo's Proxy middleware (versions 4.0.0 to 4.16.0 and 5.0.0 to 5.4.0) selects a WebSocket tunnel before verifying the upstream server accepted the upgrade. If the upstream rejects the upgrade, subsequent HTTP requests bypass Echo's router and route-specific middleware, potentially circumventing authentication or authorization controls.
Show the original NVD text
Echo is a Go web framework. From 4.0.0 until 4.16.1 and 5.4.1, Echo's Proxy middleware selects a raw tunnel from a client WebSocket upgrade request before verifying that the configured upstream accepted the upgrade. If the upstream rejects the upgrade with an ordinary keep-alive response, later HTTP requests on the connection are sent directly to that upstream without passing through Echo's router or route-specific middleware. This can bypass authentication or authorization enforced only by Echo routes, but requires an accessible proxy route, a cooperating rejected-upgrade response, and a target without independent upstream authorization. This issue is fixed in 4.16.1 and 5.4.1.
What to do
Patch available · fixed versions: 4.16.1, 5.4.1
Update Echo to version 4.16.1 or 5.4.1 depending on your branch.
- Apply the vendor's security update for echo.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/labstack/echo/v4 |
≥ 4.0.0 < 4.16.1 |
4.16.1 |
go get github.com/labstack/echo/v4@v4.16.1 |
| Go | github.com/labstack/echo/v4 |
≥ 4.0.0 < 4.16.1 |
4.16.1 |
go get github.com/labstack/echo/v4@v4.16.1 |
| Go | github.com/labstack/echo/v5 |
≥ 5.0.0 < 5.4.1 |
5.4.1 |
go get github.com/labstack/echo/v5@v5.4.1 |
| Go | github.com/labstack/echo/v5 |
≥ 5.0.0 < 5.4.1 |
5.4.1 |
go get github.com/labstack/echo/v5@v5.4.1 |
Per OSV / GitHub Advisories (GHSA-cxf3-9h37-7rr8, GO-2026-6839). Check the version in your lockfile before upgrading.
Affected products
- labstack · echo
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.