CVE-2026-118655: Echo has a Static Middleware Double-Unescape Path Traversal in github.com/labstack/echo
Published 2026-11-05 · Updated 2026-11-05 · Also known as GHSA-xwq5-6cqp-vx96, GO-2026-6885
Summary
A path traversal vulnerability exists in the Echo framework's Static Middleware due to a double-unescape flaw. Engineering teams using github.com/labstack/echo/v4 and v5 should update to the patched versions immediately.
Who is affected
Deployments utilizing Echo's static file serving middleware are affected, potentially allowing unauthorized access to files outside the intended root directory. The condition requires handling specific URL paths that trigger improper double-unescape handling during request processing.
Exploitability
The vulnerability currently has an EPSS score of 0.003 (percentile 0.235), indicating a low probability of exploitation in the wild. CISA Known Exploited Vulnerabilities status is no, meaning there is no record of active exploitation.
Remediation
- Upgrade github.com/labstack/echo/v4 to version 4.15.3 or higher.
- Upgrade github.com/labstack/echo/v5 to version 5.2.0 or higher.
How to check your project
- Check go.mod and go.sum files in Go projects to determine if github.com/labstack/echo/v4 or github.com/labstack/echo/v5 is included.
- Verify installed module versions by running 'go list -m github.com/labstack/echo/v4' or 'go list -m github.com/labstack/echo/v5'.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/labstack/echo/v4 |
>= 0, < 4.15.3 | 4.15.3 | go get github.com/labstack/echo/[email protected] |
| Go | github.com/labstack/echo/v5 |
>= 0, < 5.2.0 | 5.2.0 | go get github.com/labstack/echo/[email protected] |
FAQ
What packages are affected by CVE-2026-118655?
The affected packages are github.com/labstack/echo/v4 (versions prior to 4.15.3) and github.com/labstack/echo/v5 (versions prior to 5.2.0).
Is there any active exploitation recorded for this vulnerability?
No, CISA Known Exploited Vulnerabilities status is no, and the EPSS score is 0.003.
How can I fix the path traversal issue in Echo?
You must update your Go dependencies to github.com/labstack/echo/v4 version 4.15.3 or github.com/labstack/echo/v5 version 5.2.0.
Original advisory description
References
- ADVISORY https://github.com/labstack/echo/security/advisories/GHSA-xwq5-6cqp-vx96
- FIX https://github.com/labstack/echo/commit/a9ede66a5a7196411131beb1ee801e75bbaf7ac6
- FIX https://github.com/labstack/echo/commit/c3fa2a27ff92b2b8db360de614f999ef1da24725
- FIX https://github.com/labstack/echo/pull/3006
- REPORT https://github.com/labstack/echo/issues/2599
- WEB https://github.com/labstack/echo/releases/tag/v4.15.3
- WEB https://github.com/labstack/echo/releases/tag/v5.2.0
Source records: GO-2026-6885 (OSV.dev) · EPSS by FIRST, 2026-11-26.