CVE-2026-118262: Echo · WebSocket proxy can retain connections and handlers after client disconnect
Affects github.com/labstack/echo/v4Source GCVE Database
Not known to be exploited · CVSS 8.2 High : upgrade to 4.16.1 soon.
Data as of 28 Oct 2026, 20:14 UTC
- Patch
- Available – fixed in 4.16.1, 5.4.1
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 28 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade github.com/labstack/echo/v4 to 4.16.1; github.com/labstack/echo/v5 to 5.4.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/labstack/echo/v4 | Affected
| Fixed in
|
| Gogithub.com/labstack/echo/v5 | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade affected Echo versions to 4.16.1 or 5.4.1, which contain the official fix. Until upgrading, disable WebSocket proxy routes or apply bounded connection lifetimes and resource limits at the frontend and upstream. Server idle timeouts alone may not mitigate the issue due to hijacked WebSocket connections.
Description
Echo's WebSocket proxy middleware in versions 4.15.0 through 4.16.0 and 5.0.0 through 5.4.0 can retain connections and handlers after a WebSocket client disconnects if the upstream server keeps its connection open. This resource retention can accumulate with repeated connections, potentially causing denial of service. The issue does not affect confidentiality or integrity. Fixed in versions 4.16.1 and 5.4.1.
References
- github.com/labstack/echo/security/advisories/GHSA-9969-6676-49h5 (opens in a new tab)
- github.com/labstack/echo/commit/1855061e572ae9dab727c811d8382f266bfbaaec (opens in a new tab)
- github.com/labstack/echo/commit/3fb0ba7e17645bb65611e2a08875d0a2f65c421f (opens in a new tab)
- github.com/labstack/echo (opens in a new tab)
- github.com/labstack/echo/releases/tag/v4.16.1 (opens in a new tab)
- github.com/labstack/echo/releases/tag/v5.4.1 (opens in a new tab)