CVE-2026-118658 json
Echo: Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto
published 2026-10-28 11 d ago modified 2026-11-05 3 d ago also GHSA-23wf-92cp-8pcj , GO-2026-6878 , EUVD-2026-112465
- cvss
- 4.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 8%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/labstack/echo/v5 5.1.1
- go github.com/labstack/echo/v4 4.15.2
- github.com/labstack/echo@ca4f38a commit
- github.com/labstack/echo@d1d8ad3 commit
- github.com/labstack/echo#2953 pull request
- github.com/labstack/echo/releases/tag/v4.15.2 release
- github.com/labstack/echo/releases/tag/v5.1.1 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-118658 updated cvss 4.7
github.com/labstack/echo: Echo: Arbitrary URI redirect via unvalidated forwarded scheme headers
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 6 d ago
Exploit prediction
0.19% chance of exploitation in the next 30 days, higher than 8% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/labstack/echo/security/advisories/GHSA-23wf-92cp-8pcj referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/labstack/echo/v5 | <5.1.1 |
5.1.1 |
| go | github.com/labstack/echo/v4 | <4.15.2 |
4.15.2 |
Affected products
- labstack echo
Classification
- Weakness
-
- CWE-601 URL Redirection to Untrusted Site
References
-
github.com
/labstack/echo/commit/ca4f38a474302aabee93c66bdd0052359882e181
web, patch
-
github.com
/labstack/echo/commit/d1d8ad3f99dd9b80542cd0c357d56a8916c515df
web, patch
-
github.com
/labstack/echo/pull/2953
web, patch
-
github.com
/labstack/echo/security/advisories/GHSA-23wf-92cp-8pcj
exploit, web, advisory
-
github.com
/labstack/echo/releases/tag/v4.15.2
web
-
github.com
/labstack/echo/releases/tag/v5.1.1
web
-
github.com
/labstack/echo
package
Sources
- CVE List CVE-2026-118658
- GitHub Advisory GHSA-23wf-92cp-8pcj
- NVD CVE-2026-118658
- OSV GO-2026-6878
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.