Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft trusted-domain URL with TAB-prefixed separator
-
DeliveryDeliver link via phishing or OAuth flow
-
ExploitVictim follows redirect, guard bypassed
-
ExecutionLocation header emitted with control char
-
PersistBrowser normalizes to attacker host
-
ImpactCredential/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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Labstack Echo v4.8.0 was discovered to contain an open redirect vulnerability via the Static Handler component. Rated cr
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
Unauthenticated remote file read in Echo web framework versions 5.0.0-5.0.2 on Windows allows attackers to traverse outs
Path-based access control bypass in the LabStack Echo Go web framework (versions prior to 4.15.3 and 5.2.0) lets remote
An issue was discovered in Veal98 Echo Open-Source Community System 2.2 thru 2.3 allowing an unauthenticated attacker to
Spoofed forwarded-scheme headers let remote clients defeat Echo's HTTPS enforcement: Context.Scheme() in LabStack Echo b
CSRF protection in Labstack Echo can be skipped entirely when the MethodOverride middleware rewrites a POST to a safe me
Echo's WWWRedirect() and NonWWWRedirect() middlewares build the Location header from Context.Scheme(), which returns the
The Echo extension for MediWiki does not properly implement the hideuser functionality, which allows remote authenticate
Sensitive notification data is exposed to authenticated but unauthorized actors through the Echo extension's API layer i
EUVD-2026-112463
GHSA-v753-g4cw-jm48
NVD
CVE.org
Exploit-DB