CVE-2026-118655
Echo has a Static Middleware Double-Unescape Path Traversal
5.9
Description
Echo is a Go web framework. Prior to 4.15.3 and 5.2.0, middleware.Static can decode an already decoded Request.URL.Path a second time. Double-encoded separators can consequently be reconstructed before filesystem resolution. This can reach a file under a guarded route when the static middleware is registered globally. This issue is fixed in 4.15.3 and 5.2.0.
Affected products and versions
| Product / package | Ecosystem / vendor | Versions | Fixed in | Source |
|---|---|---|---|---|
| github.com/labstack/echo/v5 | go | < 5.2.0 | 5.2.0 | GitHub |
| github.com/labstack/echo/v4 | go | < 4.15.3 | 4.15.3 | GitHub |