CVE-2026-118655 Echo: Static Middleware Double-Unescape Path Traversal
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-118655?
CVE-2026-118655 is a medium-severity vulnerability in labstack echo, published on 28 Oct 2026.
Official 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.
Weakness: CWE-174
Which versions are affected by CVE-2026-118655?
4 open source packages ship an affected version, including github.com/labstack/echo/v4 and github.com/labstack/echo/v5.
| Package | Affected | Fixed in |
|---|---|---|
github.com/labstack/echo/v4 Go | All versions | 4.15.3 |
github.com/labstack/echo/v4 Go | All versions | 4.15.3 |
github.com/labstack/echo/v5 Go | All versions | 5.2.0 |
github.com/labstack/echo/v5 Go | All versions | 5.2.0 |
How do I fix CVE-2026-118655?
Upgrade github.com/labstack/echo/v4 to 4.15.3 or later.
Is CVE-2026-118655 being exploited?
There is no known exploitation of CVE-2026-118655 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-118655, GHSA-xwq5-6cqp-vx96, UBUNTU-CVE-2026-118655.