{"affected":[{"defaultStatus":"unaffected","ecosystem":"hex","packageName":"phoenix_live_view","product":"phoenix_live_view","source":"CNA: EEF","vendor":"phoenixframework","versions":[{"lessThan":"1.2.7","status":"affected","version":"1.2.2","versionType":"semver"}]},{"defaultStatus":"unaffected","ecosystem":"github","packageName":"phoenixframework/phoenix_live_view","product":"phoenix_live_view","source":"CNA: EEF","vendor":"phoenixframework","versions":[{"lessThan":"86165533e311469a1b62093fd182d9d874de8106","status":"affected","version":"4b63216ae68886db99cf7772af23372d76c40e7e","versionType":"git"}]}],"cveId":"CVE-2026-58228","cwes":["CWE-79"],"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.\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.","epss":{"date":"2026-11-23","percentile":0.41864,"score":0.00475},"exploits":[{"kind":"exploit","source":"ADP: CISA-ADP","url":"https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq"}],"kev":null,"metrics":[{"score":5.1,"severity":"medium","source":"CNA: EEF","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","version":"4.0"}],"modifiedAt":1795497641604,"publishedAt":1783965870636,"references":[{"source":"CNA: EEF","tags":["vendor-advisory","related"],"url":"https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq"},{"source":"CNA: EEF","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-58228.html"},{"source":"CNA: EEF","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-58228"},{"source":"CNA: EEF","tags":["related"],"url":"https://github.com/phoenixframework/phoenix_live_view/commit/4b63216ae68886db99cf7772af23372d76c40e7e"},{"source":"CNA: EEF","tags":["patch"],"url":"https://github.com/phoenixframework/phoenix_live_view/commit/86165533e311469a1b62093fd182d9d874de8106"},{"source":"ADP: CISA-ADP","tags":["exploit"],"url":"https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq"}],"remediation":[{"kind":"workaround","source":"CNA: EEF","text":"Strip leading ASCII control and space bytes (code points 0x00 through 0x20) from any untrusted URL before passing it to <.link href={...}>, or reject such inputs outright. This aligns application-level validation with the WHATWG URL parser used by browsers and prevents the scheme-detection bypass."},{"kind":"fix","source":"CNA: EEF","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/phoenixframework/phoenix_live_view/commit/86165533e311469a1b62093fd182d9d874de8106"}],"revision":"8125a893cb91b8c810d4569767917fa07b4846bb414fbbd45c06fdc5976210bd","sources":[{"modifiedAt":1795497641604,"name":"CNA: EEF","retrievedAt":1795500543234,"url":"https://www.cve.org/CVERecord?id=CVE-2026-58228"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1795500556890,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-58228"}],"ssvc":{"assessedAt":1783969091563,"automatable":"no","exploitation":"poc","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via <.link>","updatedAt":1795500556890}