# GO-2026-6878: Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto in github.com/labstack/echo

- Database: Go
- Published: 2026-11-05
- Modified: 2026-11-05

## Tracked as

- [CVE-2026-118658](https://cve.now/CVE-2026-118658.md): Echo: Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto

## Also published as

- [GHSA-23WF-92CP-8PCJ](https://cve.now/GHSA-23WF-92CP-8PCJ.md) (GitHub)

## Affected versions

- github.com/labstack/echo/v4 (Go): fixed in 4.15.2
- github.com/labstack/echo/v5 (Go): fixed in 5.1.1

## Description

Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto in github.com/labstack/echo

## References

- https://github.com/labstack/echo/security/advisories/GHSA-23wf-92cp-8pcj
- https://github.com/labstack/echo/commit/ca4f38a474302aabee93c66bdd0052359882e181
- https://github.com/labstack/echo/commit/d1d8ad3f99dd9b80542cd0c357d56a8916c515df
- https://github.com/labstack/echo/pull/2953
- https://github.com/labstack/echo/releases/tag/v4.15.2
- https://github.com/labstack/echo/releases/tag/v5.1.1

Page: https://cve.now/GO-2026-6878

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
