CVE-2026-118654: Echo static file middleware route protection bypass via encoded dot-dot traversal in github.com/labstack/echo
Published 2026-11-05 · Updated 2026-11-05 · Also known as GHSA-3pmx-cf9f-34xr, GO-2026-6881
Summary
An encoded dot-dot traversal vulnerability exists in the Echo static file middleware route protection, allowing bypasses in github.com/labstack/echo. Engineering teams maintaining applications using affected versions of Echo should review and update their dependencies.
Who is affected
Deployments using the static file middleware in affected versions of github.com/labstack/echo/v4 and github.com/labstack/echo/v5 are impacted. The vulnerability permits route protection bypass via encoded dot-dot traversal.
Exploitability
The CVSS vector is not documented and severity is unknown. The EPSS score is 0.003 (percentile 0.287) and CISA Known Exploited Vulnerabilities is no, indicating low observed exploitation activity.
Remediation
- Upgrade github.com/labstack/echo/v4 to version 4.16.0 or later.
- Upgrade github.com/labstack/echo/v5 to version 5.4.0 or later.
How to check your project
- Check go.mod to see if github.com/labstack/echo/v4 or github.com/labstack/echo/v5 is imported.
- Run 'go list -m github.com/labstack/echo/v4' or 'go list -m github.com/labstack/echo/v5' to verify the exact installed version.
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.16.0 | 4.16.0 | go get github.com/labstack/echo/[email protected] |
| Go | github.com/labstack/echo/v5 |
>= 0, < 5.4.0 | 5.4.0 | go get github.com/labstack/echo/[email protected] |
FAQ
What packages are affected by CVE-2026-118654?
Go packages github.com/labstack/echo/v4 (versions prior to 4.16.0) and github.com/labstack/echo/v5 (versions prior to 5.4.0) are affected.
Is this vulnerability actively exploited in the wild?
No, CISA Known Exploited Vulnerabilities status is no.
What is the nature of the vulnerability?
It is a route protection bypass in the Echo static file middleware caused by encoded dot-dot traversal.
Original advisory description
References
- ADVISORY https://github.com/labstack/echo/security/advisories/GHSA-3pmx-cf9f-34xr
- FIX https://github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1
- FIX https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af
- WEB https://github.com/labstack/echo/releases/tag/v4.16.0
- WEB https://github.com/labstack/echo/releases/tag/v5.4.0
Source records: GO-2026-6881 (OSV.dev) · EPSS by FIRST, 2026-11-22.