{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-58228","published":"2026-07-13T19:17:30.317000Z","last_modified":"2026-11-24T06:17:08.643000Z","status":"Deferred","cvss":{"version":"4.0","score":5.1,"severity":"MEDIUM","vector":"CVSS:4.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","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","primary":false},"auth":false,"cwes":["CWE-79"],"cpes":[],"cpes_truncated":false,"vendors":["phoenixframework"],"products":["phoenixframework/phoenix_live_view"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"EEF-CVE-2026-58228","ecosystem":"Hex","name":"phoenix_live_view","purl":"pkg:hex/phoenix_live_view","ranges":[{"introduced":"1.2.2","fixed":"1.2.7"}],"versions":["1.2.2","1.2.3","1.2.4","1.2.5","1.2.6"],"versions_truncated":false}],"severity":"medium","priority_score":46,"links":{"html_es":"/es/cve/CVE-2026-58228/","html_en":"/en/cve/CVE-2026-58228/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-58228","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-58228"},"untrusted":{"vendor_name":"phoenixframework","product_name":"phoenix_live_view","desc_en":"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.\n\nThe 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.\n\nStandard 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.\n\nApplications that render user-supplied URLs (for example profile links, redirect targets, or external references) via <.link href={...}> are affected.\n\nThis issue affects phoenix_live_view: from 1.2.2 before 1.2.7.","affected":[{"untrusted_vendor":"phoenixframework","untrusted_product":"phoenix_live_view","versions":[]}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-58228.html","tags":[]},{"url":"https://github.com/phoenixframework/phoenix_live_view/commit/4b63216ae68886db99cf7772af23372d76c40e7e","tags":[]},{"url":"https://github.com/phoenixframework/phoenix_live_view/commit/86165533e311469a1b62093fd182d9d874de8106","tags":[]},{"url":"https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq","tags":[]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-58228","tags":[]}]}}