Skip to main content

Echo CVE-2026-118656

| EUVDEUVD-2026-112463 MEDIUM
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2026-10-28 GitHub_M GHSA-v753-g4cw-jm48
6.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Craft trusted-domain URL with TAB-prefixed separator
  2. Delivery
    Deliver link via phishing or OAuth flow
  3. Exploit
    Victim follows redirect, guard bypassed
  4. Execution
    Location header emitted with control char
  5. Persist
    Browser normalizes to attacker host
  6. Impact
    Credential/token theft or phishing landing

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 the application to register the AddTrailingSlash or RemoveTrailingSlash middleware WITH a redirect status set (RedirectCode != 0, e.g. http.StatusMovedPermanently); without RedirectCode the middleware rewrites the path internally and is not vulnerable, and a default Echo deployment that does not use these middlewares is unaffected. The attack path must place a surviving control character (a literal TAB, delivered as %09) immediately before the separator pair, e.g. /%09/attacker.example/x/ or /%09%5Cattacker.example/x/; the newline (%0A) variant does NOT work because net/http rewrites CR/LF in header values, and a %09// (three-slash) form fails because it yields an empty authority. The decisive limiting factor is UI:R - the victim must actually click and follow the crafted link in a browser that strips tabs and normalizes backslashes; no authentication is required of the attacker (PR:N). Vulnerable versions are echo/v4 < 4.16.0 and echo/v5 < 5.4.0.

Impact

This is a medium-severity open redirect (CVSS 6.1, CWE-601) whose real-world priority is moderate rather than urgent. The CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N confirms a network-reachable, low-complexity, unauthenticated flaw (PR:N) that nonetheless requires user interaction (UI:R) - the victim must follow the crafted link - which is why the technical impact is capped at Low confidentiality/integrity and the issue is scored Medium, not High. It is NOT in CISA KEV and no EPSS score was supplied, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month', consistent with important-but-not-emergency handling. A detailed proof-of-concept is attached to the GHSA advisory and the reporter confirms the redirect end-to-end in headless Chromium, so the mechanism is well understood and reproducible, but note the distinction: a working PoC demonstration is not the same as observed in-the-wild exploitation. The key limiting factor that lowers real risk below the raw CVSS number is that exploitation requires a non-default configuration - the AddTrailingSlash or RemoveTrailingSlash middleware must be registered with a RedirectCode set; a default Echo deployment is not affected. EPSS is absent (not an error, simply not provided), so probabilistic exploitation likelihood cannot be quantified from this data.

Exploit ScenarioDerived

An attacker crafts a link on the trusted victim domain such as https://victim.example/%09/attacker.example/x/ and sends it via phishing or embeds it in an OAuth/SSO flow. When the victim clicks it, the vulnerable trailing-slash middleware emits a Location header containing a literal TAB before the separator pair, which the browser strips and normalizes, silently redirecting the user to attacker.example while the trusted domain appeared in the original link. A self-contained PoC Go module is attached to the GHSA advisory and the reporter confirmed the cross-origin redirect in a headless browser.

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

An open redirect in the Go web framework Echo lets an attacker craft a link on a trusted domain that sends victims to an arbitrary external site when the AddTrailingSlash or RemoveTrailingSlash middleware is configured with a redirect status set. The framework's sanitizeURI guard inspects only the first two bytes of the redirect target, so a literal TAB byte (delivered as %09) placed before the separator pair, for example /%09/attacker.example/x/, slips past the check and is written unmodified into the Location header, where browsers strip the TAB and resolve the value as an absolute URL on the attacker's host. All users of echo/v4 below 4.16.0 and echo/v5 below 5.4.0 are affected only if those middlewares are registered with a non-zero RedirectCode; a public PoC reference exists and the mechanism was confirmed end to end in a headless browser, but there is no CISA KEV entry and no EPSS data in the supplied sources. This is a medium-severity issue (CVSS 6.1, CWE-601) whose exploitability depends on user interaction: the victim has to click and follow the crafted link.

RemediationAI

Upgrade to github.com/labstack/echo/v4 v4.16.0 or github.com/labstack/echo/v5 v5.4.0, which percent-encode control characters in the redirect path before collapsing leading slashes, as described in advisory GHSA-v753-g4cw-jm48 (https://github.com/labstack/echo/security/advisories/GHSA-v753-g4cw-jm48); the upstream commits are b838391e2eade87ae7e5a09d7bb5087bec271ec1 and fc410094b2f3415cf2bf5204082137b205bfd5af. If upgrading immediately is not possible, a viable workaround is to run the trailing-slash middlewares without a RedirectCode, since the default rewrites the path internally instead of redirecting - at the cost of serving the canonicalized path rather than a 301/308 response; alternatively, reject request paths containing control characters (a raw TAB or NUL has no legitimate use under RFC 3986) before the middlewares execute, understanding that this may break clients that send unusual encodings. The advisory also suggests normalizing the value once inside Context.Redirect and adding regression tests for the %09/, %09%5C and %0A/ variants against both middlewares, noting that no test currently asserts sanitizeURI behavior at all.

Affected VersionsENISA

Echo 5.0.0, < 5.4.0
Echo < 4.16.0

Affected Packages

go github.com/labstack/echo/v4 fix: 4.16.0
go github.com/labstack/echo/v5 fix: 5.4.0
euvd echo fix: 4.16.0, 5.4.0

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's dedicated open-redirect guard, sanitizeURI in middleware/slash.go (duplicated in echo.go), decides whether a redirect target is a local path by probing exactly two byte offsets: it only collapses leading slashes when uri[0] and uri[1] are both '/' or '\'. That anchoring is the root cause of this CWE-601 improper-neutralization deficiency: a control character inserted at index 0 shifts the separator pair to index 1, the first half of the condition fails, and the value passes through untouched. The data flow starts in the trailing-slash middlewares, which read the percent-decoded url.Path, strip or append a trailing slash, reattach the raw query string, and pass the result to sanitizeURI before Context.Redirect writes it to the Location header. Go's net/http strips CR and LF from header values but leaves TAB intact, which is sufficient because browsers remove tabs and newlines before URL parsing and treat backslashes as forward slashes for HTTP(S), so /\t/attacker.example resolves to an authority on attacker.example. The newline variant is neutralized by net/http rewriting LF, and a three-slash form produces an empty authority and is not exploitable. The fix in 4.16.0 and 5.4.0 percent-encodes control characters in the redirect path (trailing-slash middlewares and the static directory redirect) before collapsing leading slashes. The supplied resources include the GitHub Security Advisory, two upstream commits and the release tags for v4.16.0 and v5.4.0; the reviewed PoC archive includes deliberate negative cases plus a headless-Chromium confirmation, so a public PoC reference exists; it is not verified as working exploit code beyond that demonstration.

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 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

Network-reachable with no attacker auth (PR:N) and low complexity, but the victim must follow the redirect (UI:R); scope changes to the browser/other origin (S:C) with limited confidentiality/integrity impact.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
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.16.0 and 5.4.0, sanitizeURI checks only the first two bytes of a redirect target before deciding whether it begins with an absolute-path separator pair. When AddTrailingSlash or RemoveTrailingSlash is configured with a redirect status, a slash, TAB, separator path form can evade the guard, be emitted in the Location header, and be normalized by a browser into an attacker-controlled host. This issue is fixed in 4.16.0 and 5.4.0.

Threat Intelligence Overview

Prevalence
Medium
popular Go web framework, but vulnerable trailing-slash redirect config is non-default
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

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
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-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-2026-118658 MEDIUM
4.7 Oct 28

Echo's WWWRedirect() and NonWWWRedirect() middlewares build the Location header from Context.Scheme(), which returns the

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