Echo has a Static Middleware Double-Unescape Path Traversal
影響: go:github.com/labstack/echo/v5 < 5.2.0 → 5.2.0, go:github.com/labstack/echo/v4 < 4.15.3 → 4.15.3
Commit a9ede66a (PR #3006, issue #2599) silently fixed a path traversal vulnerability in the Echo web framework's static file middleware. Vulnerability The static middleware double-unescaped URL paths. Go's net/http already decodes Request.URL.Path, but middleware/static.go unconditionally called url.PathUnescape() again: go // BEFORE (vulnerable) pathUnescape := true This reassembled path traversal sequences from double-encoded input. An attacker could send GET /%2e%2e%2fsecret.txt or /..%252f…
Read on GitHub Advisory Database
| CVE | CVE-2026-118655 |
|---|---|
| Source | GitHub Advisory Database |
| Fetched | 10/29/2026, 09:48 AM |
| Data | Markdown JSON |
On 10/29/2026, 06:04 AM, GitHub Advisory Database published "Echo has a Static Middleware Double-Unescape Path Traversal" (type: Advisory). Severity is "Medium" (medium). Related technologies: Go, GitHub. CVE: CVE-2026-118655.