5.3

CVE-2026-25766: labstack echo Path Traversal

CVSS: 5.3v3.1MediumAnalyzed
AliasesGHSA-pgvm-wxw2-hrv9GO-2026-4502
Published 19-02-2026Last modified 19-02-2026

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.

Overall risk
31/100
0100
Medium · default modelHow is this calculated?
CVSS score
5.3/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.50%
0%100%
Low · +0.16 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 2 · Related 2

Timeline

  1. 19-02-2026
    PublishedVulnerability first disclosed.
  2. 19-02-2026
    Last 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

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

21-09-202621-10-2026
EPSS score
0.50%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Echo

    Maturity: poc

Weaknesses

CWE · root cause

Affected 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