MEDIUM5.9
GO-2026-6885
Echo has a Static Middleware Double-Unescape Path Traversal in github.com/labstack/echo
Quick fix
GO-2026-6885 — github.com/labstack/echo/v4: upgrade to the fixed version with the command below.
go get github.com/labstack/echo/v4@v4.15.3Details
Echo has a Static Middleware Double-Unescape Path Traversal in github.com/labstack/echo
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/labstack/echo/v4
Introduced in:
0Fixed in: 4.15.3Fix
go get github.com/labstack/echo/v4@v4.15.3Go/github.com/labstack/echo/v5
Introduced in:
0Fixed in: 5.2.0Fix
go get github.com/labstack/echo/v5@v5.2.0References
- https://github.com/labstack/echo/security/advisories/GHSA-xwq5-6cqp-vx96[ADVISORY]
- https://github.com/labstack/echo/commit/a9ede66a5a7196411131beb1ee801e75bbaf7ac6[FIX]
- https://github.com/labstack/echo/commit/c3fa2a27ff92b2b8db360de614f999ef1da24725[FIX]
- https://github.com/labstack/echo/pull/3006[FIX]
- https://github.com/labstack/echo/issues/2599[REPORT]
- https://github.com/labstack/echo/releases/tag/v4.15.3[WEB]
- https://github.com/labstack/echo/releases/tag/v5.2.0[WEB]