MEDIUM4.7
GO-2026-6878
Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto in github.com/labstack/echo
Quick fix
GO-2026-6878 — github.com/labstack/echo/v4: upgrade to the fixed version with the command below.
go get github.com/labstack/echo/v4@v4.15.2Details
Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto 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.2Fix
go get github.com/labstack/echo/v4@v4.15.2Go/github.com/labstack/echo/v5
Introduced in:
0Fixed in: 5.1.1Fix
go get github.com/labstack/echo/v5@v5.1.1References
- https://github.com/labstack/echo/security/advisories/GHSA-23wf-92cp-8pcj[ADVISORY]
- https://github.com/labstack/echo/commit/ca4f38a474302aabee93c66bdd0052359882e181[FIX]
- https://github.com/labstack/echo/commit/d1d8ad3f99dd9b80542cd0c357d56a8916c515df[FIX]
- https://github.com/labstack/echo/pull/2953[FIX]
- https://github.com/labstack/echo/releases/tag/v4.15.2[WEB]
- https://github.com/labstack/echo/releases/tag/v5.1.1[WEB]