CVE-2026-64941: Open redirect in Phoenix.LiveView.validate_local_url!/2 via ASCII tab, LF and CR
URL Redirection to Untrusted Site ('Open Redirect') vulnerability in phoenixframework phoenixliveview allows an attacker to send a victim's browser to an origin of the attacker's choosing via a :to value containing ASCII tab, LF or CR.
redirect/2 validates :to through the private validatelocalurl!/2 in lib/phoenixliveview.ex, which is intended to guarantee the target is a path within the application. It rejects a leading // and any backslash, but not ASCII tab, LF or CR. Browsers strip those three characters before parsing a URL, so a value such as /<TAB>/example.com passes validation as a path and is then resolved as the scheme-relative URL //example.com. The live navigation functions share the guard but are not affected, because the client expands their target against the current origin. pushpatch/2 is also affected before 0.7.0, which is when that expansion was added.
This issue affects phoenixliveview: from 0.5.0 before 1.0.19, from 1.1.0-rc.0 before 1.1.33, and from 1.2.0-rc.0 before 1.2.9.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
phoenix_live_viewto a version that resolves this vulnerability.Fixed in 1.0.19 - Upgrade
Upgrade
phoenix_live_viewto a version that resolves this vulnerability.Fixed in 1.1.33 - Upgrade
Upgrade
phoenix_live_viewto a version that resolves this vulnerability.Fixed in 1.2.9 - Upgrade
Upgrade
phoenix_live_viewto a version that resolves this vulnerability.Fixed in 0.7.0
Event History
Frequently Asked Questions
What is the severity of CVE-2026-64941?
CVE-2026-64941 has a risk score of 35, indicating a moderate severity level.
How does CVE-2026-64941 impact users of Phoenix Framework?
CVE-2026-64941 allows attackers to redirect users to untrusted sites using specially crafted URLs.
How do I fix CVE-2026-64941 in my application?
To mitigate CVE-2026-64941, ensure you validate URL inputs properly and sanitize them against unwanted characters.
What versions of Phoenix LiveView are affected by CVE-2026-64941?
CVE-2026-64941 affects versions of the Phoenix Framework that include the vulnerable validate_local_url!/2 function.
Can CVE-2026-64941 lead to phishing attacks?
Yes, CVE-2026-64941 can be exploited to facilitate phishing attacks by redirecting users to malicious websites.