CVE-2026-118655
MEDIUM 5.9CVSS 3.1Echo has a Static Middleware Double-Unescape Path Traversal
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.
- Published
- 28 Oct 2026
- Last modified
- 5 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Undergoing Analysis
- Weakness
- CWE-174
- Also known as
- GHSA-xwq5-6cqp-vx96GO-2026-6885
- Sources
- NVDJSONOSV GHSA-xwq5-6cqp-vx96JSONOSV GO-2026-6885JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/labstack/echo/v5 | < 5.2.0 | 5.2.0 |
| OSV | Go | github.com/labstack/echo/v4 | < 4.15.3 | 4.15.3 |
References
- https://github.com/labstack/echo/commit/a9ede66a5a7196411131beb1ee801e75bbaf7ac6 · WEB, FIX
- https://github.com/labstack/echo/commit/c3fa2a27ff92b2b8db360de614f999ef1da24725 · WEB, FIX
- https://github.com/labstack/echo/issues/2599 · WEB, REPORT
- https://github.com/labstack/echo/pull/3006 · WEB, FIX
- https://github.com/labstack/echo/releases/tag/v4.15.3 · WEB
- https://github.com/labstack/echo/releases/tag/v5.2.0 · WEB
- https://github.com/labstack/echo/security/advisories/GHSA-xwq5-6cqp-vx96 · WEB, ADVISORY
- https://github.com/labstack/echo · PACKAGE
History
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 28 Oct 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Nov 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Oct 2026)