Public vulnerability disclosure

CVE-2026-118262

Echo: WebSocket proxy can retain connections and handlers after client disconnect

publishedCWE-772

Echo is a Go web framework. From 4.15.0 until 4.16.1 and 5.4.1, Echo's Proxy middleware can retain a handler, copy goroutines, and network connections after a WebSocket client disconnects when the upstream keeps its connection open. The raw proxy waits for both copy directions without reliably closing the peer connection when one direction ends, including when a rejected upgrade response uses HTTP keep-alive. Repeated connections can accumulate resources and cause denial of service, depending on proxy-route accessibility, upstream behavior, and connection deadlines. This issue is fixed in 4.16.1 and 5.4.1.

Technical severity8.2 highCVSS 4.0 · CNA: GitHub_M
Published2026-10-28Source updated 2026-11-03
Collected2026-11-033 attributed sources

Fixes and workarounds

Fix

github.com/labstack/echo/v4 (Go): OSV reports a fixed version 4.16.1. Check the advisory for supported release branches.

Source: OSV GHSA-9969-6676-49h5

Fix

github.com/labstack/echo/v5 (Go): OSV reports a fixed version 5.4.1. Check the advisory for supported release branches.

Source: OSV GHSA-9969-6676-49h5

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
echo
labstack
>= 4.15.0, < 4.16.1 (affected)
>= 5.0.0, < 5.4.1 (affected)
CNA: GitHub_M
github.com/labstack/echo/v4

github.com/labstack/echo/v4
Go
≥ 4.15.0; < 4.16.1 (affected, semver); OSV events: introduced 4.15.0; fixed 4.16.1
Source events (semver)
[
  {
    "introduced": "4.15.0"
  },
  {
    "fixed": "4.16.1"
  }
]

Other versions: unaffected
OSV GHSA-9969-6676-49h5
github.com/labstack/echo/v5

github.com/labstack/echo/v5
Go
≥ 5.0.0; < 5.4.1 (affected, semver); OSV events: introduced 5.0.0; fixed 5.4.1
Source events (semver)
[
  {
    "introduced": "5.0.0"
  },
  {
    "fixed": "5.4.1"
  }
]

Other versions: unaffected
OSV GHSA-9969-6676-49h5

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
4.0 / 8.2
high
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NCNA: GitHub_M

Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide