CVE-2026-64941: CWE-601 URL Redirection to Untrusted Site ('Open Redirect') in phoenixframework phoenix_live_view
URL Redirection to Untrusted Site ('Open Redirect') vulnerability in phoenixframework phoenix_live_view 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 validate_local_url!/2 in lib/phoenix_live_view.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. push_patch/2 is also affected before 0.7.0, which is when that expansion was added. This issue affects phoenix_live_view: 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.
AI Analysis
Technical Summary
The vulnerability arises because redirect/2 validates the :to parameter using validate_local_url!/2, which rejects leading // and backslashes but does not reject ASCII tab, line feed (LF), or carriage return (CR) characters. Browsers strip these characters before parsing URLs, allowing a crafted :to value such as /<TAB>/example.com to be interpreted as a scheme-relative URL (//example.com), redirecting users to an external site controlled by an attacker. The live navigation functions are not affected due to client-side URL expansion, but push_patch/2 is affected in versions before 0.7.0. The affected phoenix_live_view versions are 0.5.0 up to but not including 1.0.19, 1.1.0-rc.0 up to but not including 1.1.33, and 1.2.0-rc.0 up to but not including 1.2.9.
Potential Impact
An attacker can exploit this vulnerability to redirect users to arbitrary external URLs by crafting malicious :to values containing ASCII tab, LF, or CR characters. This can facilitate phishing or other social engineering attacks by making malicious URLs appear as local paths. The impact is limited to user redirection and does not include code execution or data exposure. The CVSS score of 2.1 (low) reflects the limited severity and the requirement for user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should upgrade phoenix_live_view to versions 1.0.19 or later, 1.1.33 or later, or 1.2.9 or later once official fixes are released. Until then, carefully validate and sanitize any user-controllable :to parameters to prevent injection of ASCII tab, LF, or CR characters. Avoid relying solely on validate_local_url!/2 for URL validation.
CVE-2026-64941: CWE-601 URL Redirection to Untrusted Site ('Open Redirect') in phoenixframework phoenix_live_view
Description
URL Redirection to Untrusted Site ('Open Redirect') vulnerability in phoenixframework phoenix_live_view 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 validate_local_url!/2 in lib/phoenix_live_view.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. push_patch/2 is also affected before 0.7.0, which is when that expansion was added. This issue affects phoenix_live_view: 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.
CVSS v4.0
Score 2.1low
Affected software
pkg:github/phoenixframework/phoenix_live_viewcpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because redirect/2 validates the :to parameter using validate_local_url!/2, which rejects leading // and backslashes but does not reject ASCII tab, line feed (LF), or carriage return (CR) characters. Browsers strip these characters before parsing URLs, allowing a crafted :to value such as /<TAB>/example.com to be interpreted as a scheme-relative URL (//example.com), redirecting users to an external site controlled by an attacker. The live navigation functions are not affected due to client-side URL expansion, but push_patch/2 is affected in versions before 0.7.0. The affected phoenix_live_view versions are 0.5.0 up to but not including 1.0.19, 1.1.0-rc.0 up to but not including 1.1.33, and 1.2.0-rc.0 up to but not including 1.2.9.
Potential Impact
An attacker can exploit this vulnerability to redirect users to arbitrary external URLs by crafting malicious :to values containing ASCII tab, LF, or CR characters. This can facilitate phishing or other social engineering attacks by making malicious URLs appear as local paths. The impact is limited to user redirection and does not include code execution or data exposure. The CVSS score of 2.1 (low) reflects the limited severity and the requirement for user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should upgrade phoenix_live_view to versions 1.0.19 or later, 1.1.33 or later, or 1.2.9 or later once official fixes are released. Until then, carefully validate and sanitize any user-controllable :to parameters to prevent injection of ASCII tab, LF, or CR characters. Avoid relying solely on validate_local_url!/2 for URL validation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-08-09T16:30:01.572Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a79b58bbf8831d5399544f3
Added to database: 08/10/2026, 11:27:07 UTC
Last enriched: 08/10/2026, 11:46:23 UTC
Last updated: 08/10/2026, 15:02:47 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.