Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/labstack/echo/v5
  4. ›
  5. GHSA-x9ff-22gv-65f4

GHSA-x9ff-22gv-65f4: Echo: BodyDump can discard BodyLimit overflow errors for unknown-length requests

October 23, 2026 (updated October 28, 2026)

Echo v5’s BodyDump middleware captured a bounded prefix, drained the remaining request body while ignoring read errors, and then replaced the body with the captured prefix. With an outer BodyLimit, an unknown-length request such as an HTTP/1.1 chunked request, and a BodyDump capture limit below the BodyLimit threshold, an overflow detected during that drain could be discarded.

The handler could consequently process a truncated request and return success even though the original body exceeded the configured limit. This is a conditional size-policy bypass; no general authentication bypass, production data modification or denial of service is claimed. Known-length requests rejected before BodyDump runs are unaffected by this path.

References

  • github.com/advisories/GHSA-x9ff-22gv-65f4
  • github.com/labstack/echo/commit/1855061e572ae9dab727c811d8382f266bfbaaec
  • github.com/labstack/echo/pull/3105
  • github.com/labstack/echo/releases/tag/v5.4.1
  • github.com/labstack/echo/security/advisories/GHSA-x9ff-22gv-65f4
  • nvd.nist.gov/vuln/detail/CVE-2026-118263

Code Behaviors & Features

Detect and mitigate GHSA-x9ff-22gv-65f4 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 5.0.0 before 5.4.1

Fixed versions

  • 5.4.1

Solution

Upgrade to version 5.4.1 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-252: Unchecked Return Value

Source file

go/github.com/labstack/echo/v5/GHSA-x9ff-22gv-65f4.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:56 +0000.