GHSA-cxf3-9h37-7rr8: Echo: Rejected WebSocket upgrades can bypass Echo route-level access controls
(updated )
Echo’s Proxy middleware selected a raw tunnel when the client requested a WebSocket upgrade, before validating whether the configured upstream accepted it. If the upstream returned an ordinary HTTP response and kept the connection alive, subsequent HTTP requests on that connection were forwarded directly to the same upstream without passing through Echo’s router or route-specific middleware.
This can bypass authentication or authorization enforced only at Echo’s routes. Exploitation requires an accessible proxy route, an upstream that rejects the upgrade without closing the connection, and a target resource on that upstream without independent authorization. The issue does not provide arbitrary-host proxying or bypass the upstream’s own authentication.
References
- github.com/advisories/GHSA-cxf3-9h37-7rr8
- github.com/labstack/echo/commit/1855061e572ae9dab727c811d8382f266bfbaaec
- github.com/labstack/echo/commit/3fb0ba7e17645bb65611e2a08875d0a2f65c421f
- github.com/labstack/echo/releases/tag/v4.16.1
- github.com/labstack/echo/releases/tag/v5.4.1
- github.com/labstack/echo/security/advisories/GHSA-cxf3-9h37-7rr8
- nvd.nist.gov/vuln/detail/CVE-2026-118264
Code Behaviors & Features
Detect and mitigate GHSA-cxf3-9h37-7rr8 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →