High severity · published Oct 28, 2026
CVE-2026-118261
Echo: Decompress permits unbounded gzip expansion in v4
New
8.2
CVSS
–
EPSS
No
On KEV
Description
Echo is a Go web framework. From 4.0.0 until 4.16.1, Echo v4's opt-in Decompress middleware exposes a gzip-decoded request stream without limiting its expanded size. A small compressed request can expand into a very large body when a handler reads or binds it, consuming excessive memory or CPU and allowing repeated or concurrent requests to cause denial of service. The middleware is not enabled by default, and limiting only the compressed request size does not bound the decoded size. This issue is fixed in 4.16.1.
Exploitation
Is it being used?
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
EC
echo · labstack
>= 4.0.0, < 4.16.1 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-118261
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-118261
x_refsource_CONFIRM
https://github.com/labstack/echo/security/advisories/GHSA-h7wr-284f-5qvc
x_refsource_MISC
https://github.com/labstack/echo/commit/3fb0ba7e17645bb65611e2a08875d0a2f65c421f
x_refsource_MISC
https://github.com/labstack/echo/releases/tag/v4.16.1
More from echo
9.6
CVE-2022-40083
Labstack Echo v4.8.0 was discovered to contain an open redirect vulnerability via the Static Handler component
9.1
CVE-2026-118264
Echo: Rejected WebSocket upgrades can bypass Echo route-level access controls
8.2
CVE-2026-118262
Echo: WebSocket proxy can retain connections and handlers after client disconnect
8.2
CVE-2026-118260
Echo: BodyDump captures request and response bodies without size limits in v4
7.5
CVE-2026-118650
Echo: middleware.Static: `%2F`-encoded path bypasses route/group middleware guarding a statically-served path
