Skip to main content

Labstack Echo CVE-2026-118658

| EUVDEUVD-2026-112465 MEDIUM
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2026-10-28 GitHub_M GHSA-23wf-92cp-8pcj
4.7
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Echo app using WWW/NonWWW redirect middleware
  2. Delivery
    Send request with crafted X-Forwarded-Proto header
  3. Exploit
    Scheme() returns unvalidated scheme into Location
  4. Execution
    Victim browser follows arbitrary-scheme redirect
  5. Impact
    Open redirect / scheme-based client-side impact

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three concrete conditions, all stated in the advisory: (1) the application must use Echo's WWWRedirect() or NonWWWRedirect() middleware (including their WithConfig variants) - the HTTPSRedirect, HTTPSWWWRedirect, and HTTPSNonWWWRedirect variants hardcode https:// and are NOT affected; (2) the deployment must allow the attacker-controlled X-Forwarded-Proto, X-Forwarded-Protocol, or X-Url-Scheme header to reach the app, i.e. there is no edge proxy that overwrites or strips these headers; and (3) per CVSS UI:R, a victim must act on the manipulated redirect response for impact to materialize. Confirmed injectable schemes include javascript, data, vbscript, file, ftp, ssh, telnet, and gopher. These limiting factors (specific middleware, proxy header handling, and required user interaction) substantially narrow realistic exposure below what AV:N alone suggests.

Impact

This is a genuinely low-to-moderate priority issue despite the network attack vector, and the signals are internally consistent rather than conflicting. The CVSS 3.1 base score is 4.7 (Medium), driven down by AC:H and UI:R: the vector is AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N, meaning no authentication is required (PR:N) but exploitation depends on conditions outside the attacker's sole control and on a victim acting on the manipulated redirect response. The vuln.today decision label is 'this_month', signaling a scheduled-remediation rather than emergency posture. No EPSS probability, no CISA KEV listing, and no SSVC automatable/technical-impact breakdown were supplied, so widespread or automated exploitation cannot be inferred - absence of these is not evidence of safety, only of unmeasured likelihood. A concrete proof-of-concept (a crafted GET with X-Forwarded-Proto: javascript yielding Location: javascript://www.example.com/path) is published in the GHSA advisory and was manually verified against a live server by the reporter, so the mechanism is real and demonstrated, but this is CWE-601 open redirect, not direct code execution on the server. Real risk is bounded by the limiting conditions below (specific middleware in use, app not behind a header-stripping proxy, and a user following the redirect), which is why this is a 'patch on normal cadence' item, not a drop-everything one.

Exploit ScenarioDerived

An attacker sends a request to an Echo app that uses the WWWRedirect or NonWWWRedirect middleware and is deployed where the X-Forwarded-Proto header is not stripped by an edge proxy, setting that header to an attacker-chosen scheme such as javascript, data, or file. Echo's Context.Scheme() returns the value verbatim and the middleware builds a Location header like 'javascript://www.example.com/path'. A public PoC demonstrating this is published in the GHSA advisory; actual harm (e.g. script execution, cache poisoning behind a caching CDN) requires a victim's browser to act on the returned redirect, consistent with the AC:H/UI:R metrics.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 28, 2026

Echo's WWWRedirect() and NonWWWRedirect() middlewares build the Location header from Context.Scheme(), which returns the raw value of the X-Forwarded-Proto, X-Forwarded-Protocol or X-Url-Scheme request header without checking it is a web scheme, so an attacker who controls that header can make the redirect point at an arbitrary URI scheme such as javascript, data, file or gopher. Applications built on github.com/labstack/echo/v4 before 4.15.2 or /v5 before 5.1.1 are affected only if they mount one of those two redirect middlewares and run without an edge proxy that overwrites or strips the forwarded-scheme headers; the HTTPSRedirect, HTTPSWWWRedirect and HTTPSNonWWWRedirect variants hardcode https:// and are unaffected. The advisory documents a public proof-of-concept request verified against a live server, and per the CVSS vector (AC:H, UI:R) a victim must also interact with the manipulated redirect for impact, which keeps realistic exposure narrow; KEV status was not provided.

RemediationAI

Upgrade to the vendor-released patch: github.com/labstack/echo/v4 v4.15.2 or github.com/labstack/echo/v5 v5.1.1, which add an isValidProto() allowlist so Context.Scheme() only accepts http, https, ws or wss from the forwarded-scheme headers and defaults to http otherwise, as described in advisory GHSA-23wf-92cp-8pcj and the release tags linked above. If an immediate upgrade is not possible, the vendor's stated workaround is to have the edge proxy overwrite or remove the X-Forwarded-Proto, X-Forwarded-Protocol and X-Url-Scheme request headers on inbound traffic, with the trade-off that applications relying on those headers for correct absolute-URL generation behind TLS termination will then construct http:// links unless the proxy sets a trusted value itself. Applications that only need to force HTTPS can additionally avoid the vulnerable pattern by using HTTPSRedirect, HTTPSWWWRedirect or HTTPSNonWWWRedirect, which hardcode https:// and are unaffected; CDNs caching redirect responses keyed by path should also be reviewed for cache poisoning potential.

Affected VersionsENISA

Echo 5.0.0, < 5.1.1
Echo < 4.15.2

Affected Packages

go github.com/labstack/echo/v4 fix: 4.15.2
go github.com/labstack/echo/v5 fix: 5.1.1
euvd echo fix: 4.15.2, 5.1.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Echo is a Go HTTP web framework, and the flaw lives in the interaction between its context helper and its redirect middleware. Context.Scheme() (context.go) prefers the TLS state, then falls back to reading the X-Forwarded-Proto, X-Forwarded-Protocol and X-Url-Scheme headers so that applications behind a TLS-terminating proxy still generate correct absolute URLs; the pre-fix code returned whatever string those headers contained verbatim. WWWRedirect()/NonWWWRedirect() (middleware/redirect.go) use that returned scheme to construct an absolute redirect target and write it into the Location response header, so header-controlled scheme text is reflected into a redirect. This is CWE-601 (URL Redirection to Untrusted Site / open redirect), with the added wrinkle that non-HTTP schemes are reachable: the advisory confirms javascript, data, vbscript, file, ftp, ssh, telnet and gopher can be injected. The fix introduces an isValidProto() helper that accepts only http, https, ws and wss (case-insensitive) from those three headers and otherwise falls back to http, plus a reworked test suite covering TLS precedence, case handling and invalid-value fallback to the next header. The bug class is a trust-boundary violation: proxy-supplied metadata is treated as authoritative without a server-side allowlist.

Know when Echo gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 4.7 MEDIUM
AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 4.7 MEDIUM

No auth needed (PR:N) but exploitation depends on affected middleware and a non-stripping proxy (AC:H) plus the victim following the redirect (UI:R); scope changes into the client (S:C) with limited C/I impact.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Oct 28, 2026 - 21:19 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

Prevalence
Medium
popular Go web framework, but only a subset of web deployments
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Echo

View all
CVE-2022-40083 CRITICAL POC
9.6 Sep 28

Labstack Echo v4.8.0 was discovered to contain an open redirect vulnerability via the Static Handler component. Rated cr

CVE-2023-38817 HIGH POC
7.8 Oct 11

An issue in Inspect Element Ltd Echo.ac v.5.2.1.0 allows a local attacker to gain privileges via a crafted command to th

CVE-2026-25766 MEDIUM POC
5.3 Feb 19

Unauthenticated remote file read in Echo web framework versions 5.0.0-5.0.2 on Windows allows attackers to traverse outs

CVE-2026-55677 HIGH
7.5 Jun 26

Path-based access control bypass in the LabStack Echo Go web framework (versions prior to 4.15.3 and 5.2.0) lets remote

CVE-2025-51741 HIGH
7.5 Nov 25

An issue was discovered in Veal98 Echo Open-Source Community System 2.2 thru 2.3 allowing an unauthenticated attacker to

CVE-2026-118656 MEDIUM
6.1 Oct 28

An open redirect in the Go web framework Echo lets an attacker craft a link on a trusted domain that sends victims to an

CVE-2026-118657 MEDIUM
5.9 Oct 28

Spoofed forwarded-scheme headers let remote clients defeat Echo's HTTPS enforcement: Context.Scheme() in LabStack Echo b

CVE-2026-118266 MEDIUM
5.3 Oct 28

CSRF protection in Labstack Echo can be skipped entirely when the MethodOverride middleware rewrites a POST to a safe me

CVE-2015-8007 MEDIUM
4.0 Nov 09

The Echo extension for MediWiki does not properly implement the hideuser functionality, which allows remote authenticate

CVE-2026-5266 LOW
2.3 May 11

Sensitive notification data is exposed to authenticated but unauthorized actors through the Echo extension's API layer i

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy