Vulnerability · Published Oct 28, 2026 · Assigned by GitHub_M
CVE-2026-118261Echo: Decompress permits unbounded gzip expansion in v4
High 8.2
In plain English
A high-severity uncontrolled resource consumption in echo from labstack. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 31% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-github-labstack-echo | no fix listed | DEBIAN-CVE-2026-118261 |
| Debian:13 | golang-github-labstack-echo | no fix listed | DEBIAN-CVE-2026-118261 |
| Debian:14 | golang-github-labstack-echo | no fix listed | DEBIAN-CVE-2026-118261 |
| Go | github.com/labstack/echo/v4 | 4.16.1 | GO-2026-6842 |
| Go | github.com/labstack/echo/v4 | 4.16.1 | GHSA-h7wr-284f-5qvc |
| Ubuntu:22.04:LTS | golang-github-labstack-echo | no fix listed | UBUNTU-CVE-2026-118261 |
| Ubuntu:24.04:LTS | golang-github-labstack-echo | no fix listed | UBUNTU-CVE-2026-118261 |
| Ubuntu:26.04:LTS | golang-github-labstack-echo | no fix listed | UBUNTU-CVE-2026-118261 |
| Ubuntu:26.10 | golang-github-labstack-echo | no fix listed | UBUNTU-CVE-2026-118261 |
| Ubuntu:22.04:LTS | golang-github-labstack-echo.v2 | no fix listed | UBUNTU-CVE-2026-118261 |
| Ubuntu:22.04:LTS | golang-github-labstack-echo.v3 | no fix listed | UBUNTU-CVE-2026-118261 |
Affected products (as reported)
Weakness: CWE-400, CWE-409 · Vector: 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
References
- https://github.com/labstack/echo/security/advisories/GHSA-h7wr-284f-5qvc x_refsource_CONFIRM
- https://github.com/labstack/echo/commit/3fb0ba7e17645bb65611e2a08875d0a2f65c421f x_refsource_MISC
- https://github.com/labstack/echo/releases/tag/v4.16.1 x_refsource_MISC