{"id":81936,"date":"2026-07-13T22:47:30","date_gmt":"2026-07-13T19:17:30","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-58228-scheme-validation-bypass-in-phoenix-liveview-utils-leads-to-xss-via\/"},"modified":"2026-07-13T22:47:30","modified_gmt":"2026-07-13T19:17:30","slug":"cve-2026-58228-scheme-validation-bypass-in-phoenix-liveview-utils-leads-to-xss-via","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-58228-scheme-validation-bypass-in-phoenix-liveview-utils-leads-to-xss-via\/","title":{"rendered":"CVE-2026-58228 &#8211; Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via"},"content":{"rendered":"<p>CVE ID :CVE-2026-58228<\/p>\n<p>  Published : July 13, 2026, 7:17 p.m. | 12\u00a0minutes ago<\/p>\n<p>  Description :Cross-site scripting vulnerability in phoenixframework phoenix_live_view allows an attacker to bypass URL scheme validation and execute JavaScript in a victim&#8217;s browser session.<\/p>\n<p>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&#8217;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.<\/p>\n<p>Standard browsers implement the WHATWG URL parser, which strips leading C0 control and space characters before parsing. As a result, an input such as &#8221; javascript:alert(1)&#8221; is passed unchanged into  and, when clicked, is parsed by the browser as a javascript: URL that executes attacker-controlled script in the victim&#8217;s session.<\/p>\n<p>Applications that render user-supplied URLs (for example profile links, redirect targets, or external references) via  are affected.<\/p>\n<p>This issue affects phoenix_live_view: from 1.2.2 before 1.2.7.<\/p>\n<p>  Severity: 5.1 | MEDIUM<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-58228 Published : July 13, 2026, 7:17 p.m. | 12\u00a0minutes ago Description :Cross-site scripting vulnerability in phoenixframework phoenix_live_view allows an attacker to bypass URL scheme validation and execute JavaScript in a victim&#8217;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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-81936","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=81936"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81936\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=81936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=81936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=81936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}