MEDIUM5.9
GO-2026-6879
Echo: HTTPS Redirect and HSTS Bypass via Unconditional Trust of Forwarded Scheme Headers in github.com/labstack/echo
Quick fix
GO-2026-6879 — github.com/labstack/echo/v4: upgrade to the fixed version with the command below.
go get github.com/labstack/echo/v4@v4.16.0Details
Echo: HTTPS Redirect and HSTS Bypass via Unconditional Trust of Forwarded Scheme Headers 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.16.0Fix
go get github.com/labstack/echo/v4@v4.16.0Go/github.com/labstack/echo/v5
Introduced in:
0Fixed in: 5.4.0Fix
go get github.com/labstack/echo/v5@v5.4.0References
- https://github.com/labstack/echo/security/advisories/GHSA-2ffq-g2xg-c22p[ADVISORY]
- https://github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1[FIX]
- https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af[FIX]
- https://github.com/labstack/echo/releases/tag/v4.16.0[WEB]
- https://github.com/labstack/echo/releases/tag/v5.4.0[WEB]