Live threats

All CVEs / Labstack

CVE-2026-25766Labstack Echo

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
—
Auth required
No
Published
Feb 19, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

Echo is a Go web framework. In versions 5.0.0 through 5.0.2 on Windows, Echo’s `middleware.Static` using the default filesystem allows path traversal via backslashes, enabling unauthenticated remote file read outside the static root. In `middleware/static.go`, the requested path is unescaped and normalized with `path.Clean` (URL semantics). `path.Clean` does not treat `\` as a path separator, so `..\` sequences remain in the cleaned path. The resulting path is then passed to `currentFS.Open(...)`. When the filesystem is left at the default (nil), Echo uses `defaultFS` which calls `os.Open` (`echo.go:792`). On Windows, `os.Open` treats `\` as a path separator and resolves `..\`, allowing traversal outside the static root. Version 5.0.3 fixes the issue.

Original NVD text.

What to do

  1. Apply the vendor's security update for Echo.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/labstack/echo/v5 ≥ 5.0.0 < 5.0.3 5.0.3 go get github.com/labstack/echo/v5@v5.0.3
Go github.com/labstack/echo/v5 ≥ 5.0.0 < 5.0.3 5.0.3 go get github.com/labstack/echo/v5@v5.0.3

Per OSV / GitHub Advisories (GHSA-pgvm-wxw2-hrv9, GO-2026-4502). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
labstackecho≥ 5.0.0 < 5.0.3

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.