Technical impact
Echo is a popular Go web framework that performs URI sanitization to guard against open redirects. Prior to version 4.16.0 and 5.4.0, the sanitizeURI function examines only the first two bytes of a redirect target. A malicious redirect target that begins with a slash followed by a tab or separator character can bypass this check, be emitted as a Location header, and be resolved by the browser into an attacker‑controlled host. This flaw allows an attacker to redirect authenticated users to arbitrary URLs, facilitating phishing or credential‑stealing attacks.
Affected Systems
The vulnerability affects all installations of the Labstack Echo framework with versions earlier than 4.16.0 or 5.4.0 when the AddTrailingSlash or RemoveTrailingSlash features are configured to issue redirects with a status code. Systems that have upgraded to Echo 4.16.0 or 5.4.0 and later are not affected.
Risk and Exploitability
The CVSS score of 6.1 indicates moderate severity; the EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog. Attacks can be carried out by any user capable of triggering a route that uses the affected redirection logic. Successful exploitation results in the victim’s browser navigating to an attacker‑chosen host, potentially enabling phishing or credential harvesting. No privileged execution is required. The most likely attack vector is a crafted HTTP request to a route that performs a redirect using the vulnerable helper functions.
Github GHSA