CVE-2026-118658: Echo: Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto
Vulnerability summary
CVE-2026-118658 is a medium (CVSS 4.7) URL Redirection to Untrusted Site vulnerability in labstack echo. EPSS estimates a 0.19% chance of exploitation in the next 30 days, higher than 8.3% of scored vulnerabilities.
Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 28-10-2026PublishedVulnerability first disclosed.
- 02-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- NVDNIST4.7MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · GoEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.19%
Chance of exploitation in the next 30 days
Percentile
8%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu3 products
- golang-github-labstack-echoAll versions (No fix recorded)
- golang-github-labstack-echo.v2All versions (No fix recorded)
- golang-github-labstack-echo.v3All versions (No fix recorded)
Github.com/labstack/echo2 products
- v4< 4.15.2
- v5< 5.1.1
Debian1 product
- golang-github-labstack-echoAll versions (No fix recorded)
Labstack1 product
- echo≥ 5.0.0, < 5.1.1 | < 4.15.2
4 vendors · 7 products
References
10 links- github.com/labstack/echo/security/advisories/GHSA-23wf-92cp-8pcjX Refsource CONFIRMWEBREPORTAdvisory
- github.com/labstack/echo/commit/ca4f38a474302aabee93c66bdd0052359882e181X Refsource MISCWEBREPORTFIX
- github.com/labstack/echo/commit/d1d8ad3f99dd9b80542cd0c357d56a8916c515dfX Refsource MISCWEBREPORTFIX
- github.com/labstack/echoPACKAGE