CVE-2026-58228
Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via <.link>
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.475% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 5.1 · published by EEFCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N
Assessment source · checked 2026-11-19T12:58:55.582Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:58:55.582Z | CVE Program |
| epss | verified | 2026-11-19T16:04:53.106Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:54.226Z | OSV |
| affected | verified | 2026-11-19T12:58:55.582Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:55.582Z | CVE Program |
Affected versions and configuration
phoenixframework phoenix_live_view; modules: 'Elixir.Phoenix.LiveView.Utils'; default status: unaffected: 1.2.2 to < 1.2.7 [affected; scheme: semver] phoenixframework phoenix_live_view; modules: 'Elixir.Phoenix.LiveView.Utils'; default status: unaffected: 4b63216ae68886db99cf7772af23372d76c40e7e to < 86165533e311469a1b62093fd182d9d874de8106 [affected; scheme: git]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"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"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-58228",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-07-13T18:58:11.563760Z"
}
}
}
],
"references": [
{
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq",
"tags": [
"exploit"
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-07-13T18:58:51.407Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "EEF-CVE-2026-58228",
"aliases": [
"CVE-2026-58228",
"GHSA-5cgh-g58j-m9cq"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "1.2.2"
},
{
"fixed": "1.2.7"
}
]
}
],
"package": {
"name": "phoenix_live_view",
"purl": "pkg:hex/phoenix_live_view",
"ecosystem": "Hex"
},
"versions": [
"1.2.2",
"1.2.3",
"1.2.4",
"1.2.5",
"1.2.6"
],
"database_specific": {
"source": "https://cna.erlef.org/osv/EEF-CVE-2026-58228.json"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq",
"type": "ADVISORY"
},
{
"url": "https://cna.erlef.org/cves/CVE-2026-58228.html",
"type": "WEB"
},
{
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/86165533e311469a1b62093fd182d9d874de8106",
"type": "FIX"
},
{
"url": "https://hex.pm/packages/phoenix_live_view",
"type": "PACKAGE"
}
],
"relatedGitRanges": [
{
"ranges": [
{
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"type": "GIT",
"events": [
{
"introduced": "4b63216ae68886db99cf7772af23372d76c40e7e"
},
{
"fixed": "86165533e311469a1b62093fd182d9d874de8106"
}
]
}
],
"versions": [
"v1.2.6",
"v1.2.5",
"v1.2.4",
"v1.2.3",
"v1.2.2"
],
"database_specific": {
"source": "https://cna.erlef.org/osv/EEF-CVE-2026-58228.json"
}
}
],
"database_specific": {
"cpe_ids": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"cwe_ids": [
"CWE-79"
],
"capec_ids": [
"CAPEC-63"
]
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Hex / package | phoenix_live_view | Not a distribution channel | 1.2.7 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:54.226ZArchived source JSON
Source publication: 2026-07-13T18:04:30.636Z
Source modification: 2026-09-08T03:45:08.391ZDocument fingerprint
75cacb48e32edebe930346306689b7276a186c8f44bcccc4d9951d4771fc1df9 - CVE ProgramConsulted: 2026-11-19T12:58:55.582ZArchived source JSON
Source publication: 2026-07-13T18:04:30.636Z
Source modification: 2026-07-14T04:15:01.996ZDocument fingerprint
c503649f6a89d79b217eda13e3ffd3fa44dea8f39304ae56ec7474a3cb8079c0 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:53.106ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
ba064d37fdcff65c8d2137a8a84b754e2a9d47591973a041101c160af234b088
Official status history
- UNKNOWN → PUBLISHED · · evidence