{"affected":[{"defaultStatus":"unaffected","ecosystem":"hex","packageName":"phoenix_live_view","product":"phoenix_live_view","source":"CNA: EEF","vendor":"phoenixframework","versions":[{"lessThan":"1.0.20","status":"affected","version":"0.16.0","versionType":"semver"},{"lessThan":"1.1.34","status":"affected","version":"1.1.0-rc.0","versionType":"semver"},{"lessThan":"1.2.14","status":"affected","version":"1.2.0-rc.0","versionType":"semver"}]},{"defaultStatus":"unaffected","ecosystem":"github","packageName":"phoenixframework/phoenix_live_view","product":"phoenix_live_view","source":"CNA: EEF","vendor":"phoenixframework","versions":[{"changes":[{"at":"049b2b10bb051467639c8cf6f3f7ee13df401a74","status":"unaffected"},{"at":"5dc8459da3d5f7f1ba11d2fe351ea97e7a46c99f","status":"unaffected"},{"at":"71b114d75e1ed615bbe8db7474a215536163eabb","status":"unaffected"},{"at":"ec47eaac9e440ca7e8664ef64c8377cd2579c40c","status":"unaffected"}],"lessThan":"*","status":"affected","version":"3d1eb6752399060eebdaa7112f959ee81e7d630d","versionType":"git"}]}],"cveId":"CVE-2026-126334","cwes":["CWE-863"],"description":"Incorrect Authorization vulnerability in phoenixframework phoenix_live_view allows an authenticated user to mount a router-mounted LiveView without the on_mount hooks of its live_session via a phx_join message that carries neither a \"url\" nor a \"redirect\" key.\n\nThe catch-all clause of the private Phoenix.LiveView.Channel.authorize_session/3 in lib/phoenix_live_view/channel.ex accepts a join without a URL for any session, including a root LiveView mounted at the router. The channel then mounts the LiveView with no route, and only a route adds the live_session hooks to the mount lifecycle. Checks that those hooks perform on the connected mount do not run, and event checks that they attach through attach_hook/4 are never attached. The attacker needs a valid session token for the LiveView, which only the HTTP render issues, after the hooks pass there. on_mount hooks declared in the LiveView module still run.\n\nThis issue affects phoenix_live_view: from 0.16.0 before 1.0.20, from 1.1.0-rc.0 before 1.1.34, and from 1.2.0-rc.0 before 1.2.14.","epss":{"date":"2026-11-23","percentile":0.5065,"score":0.0062},"exploits":[],"kev":null,"metrics":[{"score":6,"severity":"medium","source":"CNA: EEF","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},{"score":6,"severity":"medium","source":"NVD: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/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","version":"4.0"}],"modifiedAt":1795495181520,"publishedAt":1795185881639,"references":[{"source":"CNA: EEF","tags":["vendor-advisory","related"],"url":"https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-v4p7-3pm2-wq6c"},{"source":"CNA: EEF","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-126334.html"},{"source":"CNA: EEF","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-126334"},{"source":"CNA: EEF","tags":["related"],"url":"https://github.com/phoenixframework/phoenix_live_view/commit/3d1eb6752399060eebdaa7112f959ee81e7d630d"},{"source":"CNA: EEF","tags":["patch"],"url":"https://github.com/phoenixframework/phoenix_live_view/commit/049b2b10bb051467639c8cf6f3f7ee13df401a74"},{"source":"CNA: EEF","tags":["patch"],"url":"https://github.com/phoenixframework/phoenix_live_view/commit/5dc8459da3d5f7f1ba11d2fe351ea97e7a46c99f"},{"source":"CNA: EEF","tags":["patch"],"url":"https://github.com/phoenixframework/phoenix_live_view/commit/71b114d75e1ed615bbe8db7474a215536163eabb"},{"source":"CNA: EEF","tags":["patch"],"url":"https://github.com/phoenixframework/phoenix_live_view/commit/ec47eaac9e440ca7e8664ef64c8377cd2579c40c"},{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","tags":[],"url":"https://cna.erlef.org/cves/CVE-2026-126334.html"},{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","tags":[],"url":"https://github.com/phoenixframework/phoenix_live_view/commit/049b2b10bb051467639c8cf6f3f7ee13df401a74"},{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","tags":[],"url":"https://github.com/phoenixframework/phoenix_live_view/commit/3d1eb6752399060eebdaa7112f959ee81e7d630d"},{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","tags":[],"url":"https://github.com/phoenixframework/phoenix_live_view/commit/5dc8459da3d5f7f1ba11d2fe351ea97e7a46c99f"},{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","tags":[],"url":"https://github.com/phoenixframework/phoenix_live_view/commit/71b114d75e1ed615bbe8db7474a215536163eabb"},{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","tags":[],"url":"https://github.com/phoenixframework/phoenix_live_view/commit/ec47eaac9e440ca7e8664ef64c8377cd2579c40c"},{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","tags":[],"url":"https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-v4p7-3pm2-wq6c"},{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","tags":[],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-126334"}],"remediation":[{"kind":"workaround","source":"CNA: EEF","text":"Move the security-relevant on_mount hooks from the live_session to the LiveView module with Phoenix.LiveView.on_mount/1, for example in the live_view definition that use MyAppWeb, :live_view expands. Hooks declared in the module run on every mount.\n\nAlternatively, make mount/3 match its first argument as a map (%{} = params), or define handle_params/3 in the LiveView. In both cases a mount without a route raises, and the join fails."},{"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/049b2b10bb051467639c8cf6f3f7ee13df401a74"},{"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/5dc8459da3d5f7f1ba11d2fe351ea97e7a46c99f"},{"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/71b114d75e1ed615bbe8db7474a215536163eabb"},{"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/ec47eaac9e440ca7e8664ef64c8377cd2579c40c"}],"revision":"340b0ce98768305cb0b7297af17608f41409c5f7c4dc8585e01b6a9dc824e737","sources":[{"modifiedAt":1795495181520,"name":"CNA: EEF","retrievedAt":1795496955802,"url":"https://www.cve.org/CVERecord?id=CVE-2026-126334"},{"modifiedAt":1795446536100,"name":"NVD","retrievedAt":1795479427333,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126334"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1795496984033,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-126334"}],"ssvc":{"assessedAt":1795199870986,"automatable":"no","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"Joining a LiveView without `\"url\"` skips its `live_session` `on_mount` hooks","updatedAt":1795496984033}