CVE-2026-118655

Echo has a Static Middleware Double-Unescape Path Traversal

Medium published · updated · also known as GHSA-XWQ5-6CQP-VX96

5.9
CVSS score out of 10 · NVD (github.com)

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 / packageEcosystem / vendorVersionsFixed inSource
github.com/labstack/echo/v5 go < 5.2.05.2.0 GitHub
github.com/labstack/echo/v4 go < 4.15.34.15.3 GitHub

References