{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-58228", "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db", "state": "PUBLISHED", "assignerShortName": "EEF", "dateReserved": "2026-06-29T18:54:08.633Z", "datePublished": "2026-07-13T18:04:30.636Z", "dateUpdated": "2026-11-24T05:20:41.604Z" }, "containers": { "cna": { "affected": [ { "collectionURL": "https://repo.hex.pm", "cpes": [ "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*" ], "defaultStatus": "unaffected", "modules": [ "'Elixir.Phoenix.LiveView.Utils'" ], "packageName": "phoenix_live_view", "packageURL": "pkg:hex/phoenix_live_view", "product": "phoenix_live_view", "programFiles": [ "lib/phoenix_live_view/utils.ex" ], "programRoutines": [ { "name": "'Elixir.Phoenix.LiveView.Utils':valid_destination!/2" }, { "name": "'Elixir.Phoenix.LiveView.Utils':valid_live_navigation_destination!/2" } ], "repo": "https://github.com/phoenixframework/phoenix_live_view", "vendor": "phoenixframework", "versions": [ { "lessThan": "1.2.7", "status": "affected", "version": "1.2.2", "versionType": "semver" } ] }, { "collectionURL": "https://github.com", "cpes": [ "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*" ], "defaultStatus": "unaffected", "modules": [ "'Elixir.Phoenix.LiveView.Utils'" ], "packageName": "phoenixframework/phoenix_live_view", "packageURL": "pkg:github/phoenixframework/phoenix_live_view", "product": "phoenix_live_view", "programFiles": [ "lib/phoenix_live_view/utils.ex" ], "programRoutines": [ { "name": "'Elixir.Phoenix.LiveView.Utils':valid_destination!/2" }, { "name": "'Elixir.Phoenix.LiveView.Utils':valid_live_navigation_destination!/2" } ], "repo": "https://github.com/phoenixframework/phoenix_live_view", "vendor": "phoenixframework", "versions": [ { "lessThan": "86165533e311469a1b62093fd182d9d874de8106", "status": "affected", "version": "4b63216ae68886db99cf7772af23372d76c40e7e", "versionType": "git" } ] } ], "cpeApplicability": [ { "nodes": [ { "cpeMatch": [ { "criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.2.7", "versionStartIncluding": "1.2.2", "vulnerable": true } ], "negate": false, "operator": "OR" } ], "operator": "AND" } ], "credits": [ { "lang": "en", "type": "finder", "value": "Barna Kovacs" }, { "lang": "en", "type": "analyst", "value": "Jonatan Männchen / EEF" }, { "lang": "en", "type": "analyst", "value": "José Valim" }, { "lang": "en", "type": "remediation developer", "value": "Steffen Deusch" } ], "datePublic": "2026-07-13T18:04:30.000Z", "descriptions": [ { "lang": "en", "supportingMedia": [ { "base64": false, "type": "text/html", "value": "
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.
\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.
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.
" }, { "base64": false, "type": "text/markdown", "value": "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." } ], "value": "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." } ], "impacts": [ { "capecId": "CAPEC-63", "descriptions": [ { "lang": "en", "value": "CAPEC-63 Cross-Site Scripting (XSS)" } ] } ], "metrics": [ { "cvssV4_0": { "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "Safety": "NOT_DEFINED", "attackComplexity": "LOW", "attackRequirements": "PRESENT", "attackVector": "NETWORK", "baseScore": 5.1, "baseSeverity": "MEDIUM", "privilegesRequired": "NONE", "providerUrgency": "NOT_DEFINED", "subAvailabilityImpact": "NONE", "subConfidentialityImpact": "HIGH", "subIntegrityImpact": "HIGH", "userInteraction": "ACTIVE", "valueDensity": "NOT_DEFINED", "vectorString": "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", "vulnAvailabilityImpact": "NONE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "LOW", "vulnerabilityResponseEffort": "NOT_DEFINED" }, "format": "CVSS", "scenarios": [ { "lang": "en", "value": "GENERAL" } ] } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-79", "description": "CWE-79 Improper Neutralization of Input During Web Page Generation", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db", "shortName": "EEF", "dateUpdated": "2026-11-24T05:20:41.604Z" }, "references": [ { "name": "Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via <.link>", "tags": [ "vendor-advisory", "related" ], "url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq" }, { "name": "EEF CNA record for CVE-2026-58228", "tags": [ "related" ], "url": "https://cna.erlef.org/cves/CVE-2026-58228.html" }, { "name": "OSV record EEF-CVE-2026-58228", "tags": [ "related" ], "url": "https://osv.dev/vulnerability/EEF-CVE-2026-58228" }, { "name": "Introducing commit 4b63216 in phoenixframework/phoenix_live_view", "tags": [ "related" ], "url": "https://github.com/phoenixframework/phoenix_live_view/commit/4b63216ae68886db99cf7772af23372d76c40e7e" }, { "name": "Fix commit 8616553 in phoenixframework/phoenix_live_view", "tags": [ "patch" ], "url": "https://github.com/phoenixframework/phoenix_live_view/commit/86165533e311469a1b62093fd182d9d874de8106" } ], "source": { "discovery": "EXTERNAL" }, "title": "Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via <.link>", "workarounds": [ { "lang": "en", "supportingMedia": [ { "base64": false, "type": "text/html", "value": "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.