Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/labstack/echo/v4
  4. ›
  5. GHSA-h7wr-284f-5qvc

GHSA-h7wr-284f-5qvc: Echo: Decompress permits unbounded gzip expansion in v4

October 23, 2026 (updated October 28, 2026)

Echo v4’s opt-in Decompress middleware exposed a gzip-decoded request stream without limiting its expanded size. A small compressed request could therefore produce a very large decoded body. Handlers that read or bind that body could consume excessive memory or CPU, and repeated or concurrent requests could cause denial of service.

The middleware is not enabled by default. A limit on the compressed request size alone does not bound the decompressed size. Applications that already apply an effective body limit after decompression have reduced exposure.

References

  • github.com/advisories/GHSA-h7wr-284f-5qvc
  • github.com/labstack/echo/commit/3fb0ba7e17645bb65611e2a08875d0a2f65c421f
  • github.com/labstack/echo/pull/3136
  • github.com/labstack/echo/releases/tag/v4.16.1
  • github.com/labstack/echo/security/advisories/GHSA-h7wr-284f-5qvc
  • nvd.nist.gov/vuln/detail/CVE-2026-118261

Code Behaviors & Features

Detect and mitigate GHSA-h7wr-284f-5qvc with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 4.0.0 before 4.16.1

Fixed versions

  • 4.16.1

Solution

Upgrade to version 4.16.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)

Source file

go/github.com/labstack/echo/v4/GHSA-h7wr-284f-5qvc.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:18 +0000.