Skip to main content

Echo Web Framework EUVDEUVD-2026-112394

| CVE-2026-118262 HIGH
Missing Release of Resource after Effective Lifetime (CWE-772)
2026-10-28 security-advisories@github.com GHSA-9969-6676-49h5
8.2
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed WebSocket proxy route
  2. Delivery
    Open connection / trigger rejected keep-alive upgrade
  3. Exploit
    Client disconnect leaves upstream open
  4. Execution
    Leak handler, goroutines and connections per attempt
  5. Impact
    Repeat to exhaust server resources (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup on lifecycle end
Exploitation Conditions

Requires the application to use Echo's Proxy middleware with a WebSocket (raw) proxy route that is reachable by the attacker. The leak triggers when a client disconnects while the upstream keeps its side open - notably when a rejected upgrade response is returned over an HTTP keep-alive connection - so the proxy waits indefinitely on the still-open direction. Exploitation is unauthenticated (PR:N) but conditional (AT:P): it depends on proxy-route accessibility, upstream behavior (whether it holds the connection open), and configured connection deadlines. Limiting factors: applications not using the proxy WebSocket feature are unaffected, and bounded connection lifetimes or resource limits at the frontend/upstream constrain impact. The vendor notes server idle timeouts alone may not cover hijacked WebSocket connections.

Impact

This is a genuine but conditional availability risk, not a top-tier emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) rated 8.2 reflects a network-reachable, unauthenticated flaw affecting availability only (VA:H; VC:N/VI:N), but the AT:P flag signals a real attack requirement - an upstream that keeps its connection open after the client disconnects - which the GHSA and description both confirm. The vuln.today decision label is 'this_week' (not act_now or emergency), consistent with a resource-retention DoS rather than code execution or data exposure. No EPSS score, no CISA KEV listing, and no proof-of-concept reference were provided; exploitation is therefore unproven. Signals are internally consistent (DoS-only impact, CWE-772 resource retention, vendor-described conditions) with no contradictions between CVSS vector and description. Net assessment: patch within a normal cadence; prioritize instances that expose a WebSocket proxy route to untrusted clients, since the practical risk depends heavily on route accessibility and upstream behavior.

Exploit ScenarioDerived

An attacker who can reach an Echo application configured with a WebSocket proxy route repeatedly opens connections that the upstream keeps open (for example by eliciting a rejected upgrade response delivered with HTTP keep-alive). Because the raw proxy waits on both copy directions without reliably closing the peer connection when one ends, each attempt leaks a handler, goroutines, and network connections, and repeated attempts accumulate until the server exhausts resources. No public exploit was identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 28, 2026

Denial of service in Labstack Echo's Proxy middleware (v4.15.0 through v4.16.0 and v5.0.0 through v5.4.0) lets unauthenticated remote clients tie up server resources by disconnecting from a WebSocket proxy route while the upstream keeps its side of the connection open, leaving the handler, copy goroutines and network connections retained instead of released. Repeated connections accumulate these leaked resources until the service is degraded or unavailable; only availability is affected, with no confidentiality or integrity impact claimed. Exploitation is conditional rather than trivial - it requires a reachable raw/WebSocket proxy route, an upstream that holds the connection open (a rejected upgrade response delivered over HTTP keep-alive is one such trigger), and permissive or absent connection deadlines. No public exploit code identified at time of analysis; vendor patches are available in 4.16.1 and 5.4.1.

RemediationAI

Vendor-released patch: upgrade to Echo v4.16.1 (github.com/labstack/echo/v4) or v5.4.1 (github.com/labstack/echo/v5) - the fix commits are 3fb0ba7e17645bb65611e2a08875d0a2f65c421f for v4 and 1855061e572ae9dab727c811d8382f266bfbaaec for v5, and release notes are at https://github.com/labstack/echo/releases/tag/v4.16.1 and https://github.com/labstack/echo/releases/tag/v5.4.1. Because the regressing change was a proxy rewrite (commit e2133320c7, PR #2852), teams that pinned v4.15.0-v4.16.0 or v5.0.0-v5.4.0 should bump the module and rebuild rather than cherry-picking middleware code. If upgrading cannot happen immediately, the vendor's documented workaround is to disable the WebSocket/raw proxy routes entirely until the upgrade lands, which removes the affected code path at the cost of any feature depending on it. As a supplementary control, apply bounded connection lifetimes and resource limits at the frontend and at the upstream - but be aware the vendor explicitly notes that server idle timeouts alone may not cover hijacked WebSocket connections, so plain read/write timeout tuning should not be treated as a substitute for patching. Prioritization can follow the intermediate decision signal (patch within the current week) given the conditional AT:P preconditions and availability-only impact.

Affected VersionsENISA

Echo 5.0.0, < 5.4.1
Echo 4.15.0, < 4.16.1

Affected Packages

go github.com/labstack/echo/v4 fix: 4.16.1
go github.com/labstack/echo/v5 fix: 5.4.1
euvd echo fix: 4.16.1, 5.4.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Echo is a Go web framework, and the flaw sits in its Proxy middleware when it handles a raw (WebSocket/upgrade) proxy route. To tunnel upgraded traffic the middleware hijacks the client connection and runs two io.Copy loops, one per direction, then waits for both to finish. It does not reliably close the peer connection when one direction terminates, so if the client goes away but the upstream deliberately keeps its side open - or if a rejected upgrade response is returned over an HTTP keep-alive connection - the copy loop and its goroutine block indefinitely. The root cause class is CWE-772 (Missing Release of Resource after Effective Lifetime): a resource acquires a lifetime that is never terminated because the second copy direction never reaches EOF and nothing forces the pair to be torn down. The regression was introduced by commit e2133320c7, merged in pull request #2852, and the fix replaces the hand-rolled copy logic with Go's HTTP reverse proxy, preserves ordinary HTTP handling for rejected upgrades, and closes both sides of the tunnel when either direction ends - including the case where the upstream receives client EOF but keeps its side open. Note that the v5 fix commit referenced in the advisory also carries unrelated hardening to IP extraction (X-Real-IP trust checks) and BodyDump middleware behavior, so the full commit should be read rather than a single file diff. The 8.2 CVSS 4.0 base score reflects high availability impact under AT:P (the attack depends on conditions outside the attacker's full control), and the assessing vector of CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H is consistent with that conditional, availability-only profile.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 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:N
vuln.today AI 5.9 MEDIUM

Network-reachable and unauthenticated (AV:N/PR:N), but AC:H because exploitation needs an upstream that holds the connection open; availability-only impact (A:H, C:N/I:N).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 28, 2026 - 20:04 EUVD
CVE Published
Oct 28, 2026 - 19:17 cve.org
HIGH 8.2

DescriptionCVE.org

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 POC Analysis

CWE-772: Missing Release of Resource after Effective Lifetime.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-118262 is a high-severity denial-of-service vulnerability in Labstack Echo's Proxy middleware, affecting versions 4.15.0 through 4.16.0 and 5.0.0 through 5.4.0. Unauthenticated attackers can exhaust server resources by repeatedly opening and closing WebSocket proxy connections, potentially causing service outages for any applications relying on the affected middleware. Leadership should prioritize remediation because this flaw directly threatens availability of internet-facing services and could disrupt business operations.

Business Impact: High
Compensating Controls

Apply vendor patch: upgrade to 4.16.1 or 5.4.1. If immediate patching is not possible, enforce aggressive connection deadlines and limit concurrent proxy connections to reduce resource exhaustion.

Threat Intelligence Overview

Prevalence
Medium
popular Go web framework, but the proxy WebSocket middleware is an optional component
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy