Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-25766
February 19, 2026
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.
Affected Packages
https://github.com/labstack/echo.git (GITHUB):
Affected version(s) >=v5.0.0 <v5.0.3
Fix Suggestion:
Update to version v5.0.3
github.com/labstack/echo/v5 (GO):
Affected version(s) >=v5.0.0 <v5.0.3
Fix Suggestion:
Update to version v5.0.3
Do you need more information?
Contact Us
CVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
EPSS
Base Score:
0.05