OAuth Redirect URI Validation Bypass in Ech0
Ech0 versions 4.5.6 and earlier contain an OAuth redirect URI validation flaw that permits attackers to intercept authorization codes, enabling full account compromise.
CVE search metadata
CVE search record: CVE-2026-79662. Severity: high. CVSS: 8.0. KEV: no. Product: Ech0 (<= 4.5.6), Ech0 (4.3.4). Brief: OAuth Redirect URI Validation Bypass in Ech0. Brief link: https://feed.craftedsignal.io/briefs/2026-08-ech0-oauth-bypass/
What's new
- 1. added coverage for Ech0 (4.3.4) Aug 25, 14:08 via nvd
Ech0 versions up to 4.5.6 contain a critical OAuth redirect URI validation vulnerability located in the parseAndValidateClientRedirect function within internal/service/auth/auth.go. The vulnerability arises because the application only performs allowlist validation on the scheme and host components of a user-supplied redirect_uri, failing to account for path, query, and fragment parameters.
This logic error allows an attacker to craft a redirect_uri that points to a legitimate, allowlisted domain while embedding malicious paths or query strings. When a victim initiates an authentication flow, the application embeds this attacker-controlled URI into the signed state JWT. Following the OAuth exchange, the victim is redirected to the attacker-influenced URI, inadvertently leaking the one-time authorization code. If this code is captured through mechanisms such as Referer headers, analytics logs, or secondary open redirects, the attacker can leverage the /api/auth/exchange endpoint to gain unauthorized access to the victim's account. This flaw is resolved in version 4.7.3.
Impact
Successful exploitation of this vulnerability results in full account takeover for affected users. By intercepting a valid one-time authorization code, an attacker can exchange it for legitimate access and refresh tokens, effectively bypassing authentication. This risk extends to all users of the affected Ech0 instances, including administrative accounts if they perform authentication in environments where URI leakage is possible.
Recommendation
- Upgrade all Ech0 instances to version 4.7.3 or later to patch the redirect validation logic in the authentication service.
- Audit web server and application logs for suspicious requests to /api/auth/exchange that deviate from normal client-side authentication patterns, such as multiple exchanges originating from anomalous user-agents or unexpected network segments.
- Implement stricter URI validation policies in all OAuth-enabled services, ensuring that entire URI structures (not just scheme and host) are validated against defined allowlists.
Immediate actions
Upgrade Ech0 instances to version 4.7.3
Mitigations
Monitor logs for /api/auth/exchange requests
CVE-2026-79662