Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/labstack/echo/v4
  4. ›
  5. GHSA-cxf3-9h37-7rr8

GHSA-cxf3-9h37-7rr8: Echo: Rejected WebSocket upgrades can bypass Echo route-level access controls

October 23, 2026 (updated October 28, 2026)

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 →

Affected versions

All versions starting from 4.0.0 before 4.16.1

Fixed versions

  • 4.16.1

Solution

Upgrade to version 4.16.1 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')
  • CWE-863: Incorrect Authorization

Source file

go/github.com/labstack/echo/v4/GHSA-cxf3-9h37-7rr8.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:11 +0000.