CVE-2026-118261: Echo: Decompress permits unbounded gzip expansion in v4

Published Oct 28, 2026
·
Updated

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 Software

1 affected component
Labstack Echo>=4.0.0<4.16.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Echo to a version that resolves this vulnerability.

    Fixed in 4.16.1

Event History

Oct 28, 2026
CVE Published
via MITRE·06:58 PM
Data Sourced
via MITRE·06:58 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using Echo v4 from 4.0.0 through 4.16.0 are exposed only if they have enabled the opt-in Decompress middleware. The middleware is not enabled by default.

2

What does an attacker need to do to trigger the denial of service?

An attacker can send a small gzip-compressed request that expands into a very large decoded body when an application handler reads or binds the request. Repeated or concurrent requests can consume excessive memory or CPU.

3

Does a compressed request-size limit mitigate the issue?

No. Limiting only the compressed request size does not limit the size of the gzip-decoded request body.

4

What version fixes the issue?

The issue is fixed in Echo v4.16.1.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203