CVE-2026-64941

Open redirect in Phoenix.LiveView.validate_local_url!/2 via ASCII tab, LF and CR

Published Aug 10, 2026 CVSS 4.0 · 2.1 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Phoenix.LiveView uses validate_local_url!/2 to ensure redirection targets stay within the application, but it does not reject ASCII tab, line feed, or carriage return characters. When a victim’s browser receives a URL that contains one of these invisible characters in the :to argument, the browser strips the characters before parsing, turning a path such as /<TAB>/example.com into the scheme‑relative URL //example.com. This allows an attacker to redirect users to an arbitrary external site, enabling phishing or malicious malware delivery. The weakness is a classic open redirect flaw (CWE‑601).

Affected Systems

This vulnerability is present in Phoenix LiveView releases from 0.5.0 up to (but not including) 1.0.19, from the 1.1.0‑rc.0 series up to 1.1.33, and from the 1.2.0‑rc.0 series up to 1.2.9. Affected vendors include the Phoenix Framework; any application using these versions of the phoenix_live_view library is potentially impacted.

Risk and Exploitability

The CVSS score of 2.1 indicates a low severity impact. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog, which suggests it has not yet been widely exploited. Nevertheless, the flaw can be leveraged to send unsuspecting users to attacker‑controlled domains, so a moderate reputation or phishing risk exists. An attacker would need to craft a redirect or push_patch call with a :to value that includes an invisible tab, LF or CR; the victim must then click or otherwise trigger the redirect within the application.

Remediation

Vendor Workaround

Reject any untrusted value containing ASCII tab, LF or CR before passing it as :to to redirect/2, or to push_patch/2 before 0.7.0. Alternatively, map client-supplied navigation targets to a fixed set of known-good paths rather than forwarding the value.


OpenCVE Recommended Actions

  • Upgrade Phoenix LiveView to the latest released version (>= 1.2.9) where validate_local_url!/2 has been patched to reject the problematic characters, or to any version after the commits that addressed the flaw.
  • Validate that any :to value being passed to redirect/2 or push_patch/2 contains no ASCII tab, LF or CR. Reject or strip those characters before invoking the redirect.
  • Replace raw client‑supplied navigation targets with a whitelist of known‑good paths; map any user input to a limited set of internal routes instead of using the raw value.

Generated by OpenCVE AI on August 10, 2026 at 12:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Open redirect in Phoenix.LiveView.validate_local_url!/2 via ASCII tab, LF and CR
First Time appeared Phoenixframework
Phoenixframework phoenix Live View
Weaknesses CWE-601
CPEs cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*
Vendors & Products Phoenixframework
Phoenixframework phoenix Live View
References
Metrics cvssV4_0

{'score': 2.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 19, 2026, 8:44 AM
Reserved
Aug 9, 2026, 4:30 PM
Status
Awaiting Analysis
Published
Aug 10, 2026, 12:17 PM
Modified
Nov 19, 2026, 9:17 AM