CVE-2026-58228
Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via <.link>
Description
Cross-site scripting vulnerability in phoenixframework phoenix_live_view allows an attacker to bypass URL scheme validation and execute JavaScript in a victim's browser session. The Phoenix.LiveView.Utils.valid_destination!/2 and Phoenix.LiveView.Utils.valid_live_navigation_destination!/2 functions in lib/phoenix_live_view/utils.ex rely on an internal uri_scheme/1 helper that only detects a scheme when the input's first byte is an ASCII letter. Inputs beginning with an ASCII control character or space fall through to a nil-returning clause, causing the URL to be treated as a safe relative path. Standard browsers implement the WHATWG URL parser, which strips leading C0 control and space characters before parsing. As a result, an input such as " javascript:alert(1)" is passed unchanged into <.link href={...}> and, when clicked, is parsed by the browser as a javascript: URL that executes attacker-controlled script in the victim's session. Applications that render user-supplied URLs (for example profile links, redirect targets, or external references) via <.link href={...}> are affected. This issue affects phoenix_live_view: from 1.2.2 before 1.2.7.
INFO
Published Date :
July 13, 2026, 7:17 p.m.
Last Modified :
July 13, 2026, 8:37 p.m.
Remotely Exploit :
Yes !
Source :
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Affected Products
The following products are affected by CVE-2026-58228
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 4.0 | MEDIUM | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | ||||
| CVSS 4.0 | MEDIUM | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db |
Solution
- Update phoenix_live_view to version 1.2.7 or later.
- Validate user-supplied URLs for malicious schemes.
- Implement strict URL validation logic.
- Sanitize all user inputs before rendering.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-58228.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-58228 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-58228
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-58228 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-58228 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jul. 13, 2026
Action Type Old Value New Value Added Reference https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq Added SSVC {'id': 'CVE-2026-58228', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-07-13T18:58:11.563760Z'} -
New CVE Received by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Jul. 13, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/phoenixframework/phoenix_live_view', 'vendor': 'phoenixframework', 'modules': ["'Elixir.Phoenix.LiveView.Utils'"], 'product': 'phoenix_live_view', 'versions': [{'status': 'affected', 'version': '1.2.2', 'lessThan': '1.2.7', 'versionType': 'semver'}], 'packageURL': 'pkg:hex/phoenix_live_view', 'packageName': 'phoenix_live_view', 'programFiles': ['lib/phoenix_live_view/utils.ex'], 'collectionURL': 'https://repo.hex.pm', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Phoenix.LiveView.Utils':valid_destination!/2"}, {'name': "'Elixir.Phoenix.LiveView.Utils':valid_live_navigation_destination!/2"}]}, {'cpes': ['cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/phoenixframework/phoenix_live_view', 'vendor': 'phoenixframework', 'modules': ["'Elixir.Phoenix.LiveView.Utils'"], 'product': 'phoenix_live_view', 'versions': [{'status': 'affected', 'version': '4b63216ae68886db99cf7772af23372d76c40e7e', 'lessThan': '86165533e311469a1b62093fd182d9d874de8106', 'versionType': 'git'}], 'packageURL': 'pkg:github/phoenixframework/phoenix_live_view', 'packageName': 'phoenixframework/phoenix_live_view', 'programFiles': ['lib/phoenix_live_view/utils.ex'], 'collectionURL': 'https://github.com', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Phoenix.LiveView.Utils':valid_destination!/2"}, {'name': "'Elixir.Phoenix.LiveView.Utils':valid_live_navigation_destination!/2"}]}] Added Description Cross-site scripting vulnerability in phoenixframework phoenix_live_view allows an attacker to bypass URL scheme validation and execute JavaScript in a victim's browser session. The Phoenix.LiveView.Utils.valid_destination!/2 and Phoenix.LiveView.Utils.valid_live_navigation_destination!/2 functions in lib/phoenix_live_view/utils.ex rely on an internal uri_scheme/1 helper that only detects a scheme when the input's first byte is an ASCII letter. Inputs beginning with an ASCII control character or space fall through to a nil-returning clause, causing the URL to be treated as a safe relative path. Standard browsers implement the WHATWG URL parser, which strips leading C0 control and space characters before parsing. As a result, an input such as " javascript:alert(1)" is passed unchanged into <.link href={...}> and, when clicked, is parsed by the browser as a javascript: URL that executes attacker-controlled script in the victim's session. Applications that render user-supplied URLs (for example profile links, redirect targets, or external references) via <.link href={...}> are affected. This issue affects phoenix_live_view: from 1.2.2 before 1.2.7. Added CVSS V4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-79 Added Reference https://cna.erlef.org/cves/CVE-2026-58228.html Added Reference https://github.com/phoenixframework/phoenix_live_view/commit/86165533e311469a1b62093fd182d9d874de8106 Added Reference https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-58228