CVE-2026-25766: labstack echo Path Traversal
Vulnerability summary
CVE-2026-25766 is a medium (CVSS 5.3) Path Traversal vulnerability in labstack echo. EPSS estimates a 0.50% chance of exploitation in the next 30 days, higher than 41.9% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 19-02-2026PublishedVulnerability first disclosed.
- 19-02-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS trend
Probability
0.50%
Chance of exploitation in the next 30 days
Percentile
42%
Versus all other CVEs
30-day change
+0.16 pp
From 0.34% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundEcho
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Github.com/labstack/echo1 product
- v5≥ 5.0.0, < 5.0.3
Labstack1 product
- echo≥ 5.0.0, < 5.0.3
2 vendors · 2 products
References
6 links- github.com/labstack/echo/security/advisories/GHSA-pgvm-wxw2-hrv9X Refsource CONFIRMWEBAdvisoryExploitVendor Advisory
- github.com/labstack/echoPACKAGE