Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/labstack/echo/v5
  4. ›
  5. CVE-2026-25766

CVE-2026-25766: Echo has a Windows path traversal via backslash in middleware.Static default filesystem

February 17, 2026 (updated February 19, 2026)

On Windows, Echo’s middleware.Static using the default filesystem allows path traversal via backslashes, enabling unauthenticated remote file read outside the static root.

References

  • github.com/advisories/GHSA-pgvm-wxw2-hrv9
  • github.com/labstack/echo
  • github.com/labstack/echo/commit/b1d443086ea27cf51345ec72a71e9b7e9d9ce5f1
  • github.com/labstack/echo/pull/2891
  • github.com/labstack/echo/security/advisories/GHSA-pgvm-wxw2-hrv9
  • nvd.nist.gov/vuln/detail/CVE-2026-25766

Code Behaviors & Features

Detect and mitigate CVE-2026-25766 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.0.0 before 5.0.3

Fixed versions

  • 5.0.3

Solution

Upgrade to version 5.0.3 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/labstack/echo/v5/CVE-2026-25766.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Thu, 26 Feb 2026 00:17:48 +0000.