NetSight
medium5.9

CVE-2026-118655

Echo has a Static Middleware Double-Unescape Path Traversal

Impact

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 packages

EcosystemPackageAffectedFixed in
gogithub.com/labstack/echo/v5< 5.2.05.2.0
gogithub.com/labstack/echo/v4< 4.15.34.15.3

Affected products

VendorProductAffected versions
Wikimedia FoundationEcho
from 5.0.0, before 5.2.0
before 4.15.3

Weakness classification

References