CVE-2026-118658 Echo: Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
Echo is a Go web framework. Prior to 4.15.2 and 5.1.1, Context.Scheme returns values from X-Forwarded-Proto, X-Forwarded-Protocol, or X-Url-Scheme without validating that they are supported web schemes. WWWRedirect and NonWWWRedirect use that value to construct a Location header, so an attacker controlling a forwarded scheme header can cause a redirect to use an arbitrary URI scheme. Exploitation requires an affected redirect middleware and user interaction with the response; the HTTPS-specific redirect variants hardcode HTTPS and are unaffected. This issue is fixed in 4.15.2 and 5.1.1.
Upgrade path
13 packages: 1 fixed, 11 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux golang-github-labstack-echo-4(Azure Linux 4.0) | All versions | No fix listed | No fix yet |
| azure linux grafana(Azure Linux 4.0) | All versions | No fix listed | No fix yet |
| debian/golang-github-labstack-echo(Debian 12) | = 4.2.1-3; = 4.11.1-1; = 4.11.1-2; = 4.12.0-1 +1 more | No fix listed | No fix yet |
| debian/golang-github-labstack-echo(Debian 13) | = 4.12.0-1; All versions | No fix listed | No fix yet |
| debian/golang-github-labstack-echo(Debian 14) | = 4.12.0-1; All versions | No fix listed | No fix yet |
| ubuntu/golang-github-labstack-echo(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-labstack-echo(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-labstack-echo(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-labstack-echo(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-labstack-echo.v2(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-labstack-echo.v3(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| labstack github.com/labstack/echo/v4(Go) | < 4.15.2; < 5.1.1 | 4.15.2, 5.1.1 | Fixed |
| labstack github.com/labstack/echo/v4 | = < 4.15.2; = >= 5.0.0, < 5.1.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| labstack github.com/labstack/echo/v4(Go) | < 5.1.1 | 5.1.1 |
| labstack github.com/labstack/echo/v4(Go) | < 4.15.2 | 4.15.2 |
| labstack github.com/labstack/echo/v4 | = >= 5.0.0, < 5.1.1 | No fix listed |
| labstack github.com/labstack/echo/v4 | = < 4.15.2 | No fix listed |
| debian/golang-github-labstack-echo(Debian:12) | All versions | No fix listed |
| debian/golang-github-labstack-echo(Debian:12) | = 4.11.1-1 | No fix listed |
| debian/golang-github-labstack-echo(Debian:12) | = 4.11.1-2 | No fix listed |
| debian/golang-github-labstack-echo(Debian:12) | = 4.12.0-1 | No fix listed |
| debian/golang-github-labstack-echo(Debian:12) | = 4.2.1-3 | No fix listed |
| debian/golang-github-labstack-echo(Debian:13) | All versions | No fix listed |
| debian/golang-github-labstack-echo(Debian:13) | = 4.12.0-1 | No fix listed |
| debian/golang-github-labstack-echo(Debian:14) | All versions | No fix listed |
| debian/golang-github-labstack-echo(Debian:14) | = 4.12.0-1 | No fix listed |
| ubuntu/golang-github-labstack-echo(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/golang-github-labstack-echo.v2(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/golang-github-labstack-echo.v3(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/golang-github-labstack-echo(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/golang-github-labstack-echo(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/golang-github-labstack-echo(Ubuntu:26.10) | All versions | No fix listed |
| azure linux golang-github-labstack-echo-4(Azure Linux:4.0) | All versions | No fix listed |
| azure linux grafana(Azure Linux:4.0) | All versions | No fix listed |
References
- https://github.com/labstack/echo/security/advisories/GHSA-23wf-92cp-8pcj exploit vendor-advisory
- github.com patch
- https://github.com/labstack/echo/commit/ca4f38a474302aabee93c66bdd0052359882e181 patch
- https://github.com/labstack/echo/commit/d1d8ad3f99dd9b80542cd0c357d56a8916c515df patch
- github.com product
- https://github.com/labstack/echo/releases/tag/v4.15.2
- https://github.com/labstack/echo/releases/tag/v5.1.1
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2563178 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-118658 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- ENISA EUVD EUVD-2026-112465 third-party-advisory