CVEslabstackCVE-2026-118658Published Oct 28, 20:17 · Updated Oct 28, 20:17 UTC
4.7
MediumCVSS 3.1 · from GitHub_M
CVE-2026-118658

Echo: Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto

echo · Open redirect · CWE-601
Affectedecho
FixNo fix listed yet.
PublishedOct 28, 20:17 · GitHub_M
ScoredOct 28 · 4.7 · GitHub_M
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:09 UTC

What we know

No known exploitation. CISA KEV, checked 22:09 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker only needs network access to the target. No login needed. CVSS: network, no privileges.
It only works under certain conditions, which makes it harder to pull off. CVSS: high attack complexity.
Someone has to open, click or run something first. CVSS: user interaction required.

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.

From GitHub_M

Affected and fixed versions

ProductAffectedFixed inecho>= 5.0.0, < 5.1.1–echo< 4.15.2–

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

github.com/labstack/echo/security/advisories/GHSA-23wf-92cp-8pcj · github.comrefsource_CONFIRMgithub.com/labstack/echo/commit/ca4f38a474302aabee93c66bdd0052359882e181 · github.comrefsource_MISCgithub.com/labstack/echo/commit/d1d8ad3f99dd9b80542cd0c357d56a8916c515df · github.comrefsource_MISCgithub.com/labstack/echo/releases/tag/v4.15.2 · github.comrefsource_MISCgithub.com/labstack/echo/releases/tag/v5.1.1 · github.comrefsource_MISC

Other CVEs in echo

All 17 →
5.9Echo: HTTPS Redirect and HSTS Bypass via Unconditional Trust of Forwarded Scheme Headers · CVE-2026-118657Oct 286.1Echo: Open Redirect via Control-Character Prefix Defeating sanitizeURI · CVE-2026-118656Oct 285.9Echo: Static Middleware Double-Unescape Path Traversal · CVE-2026-118655Oct 28