CVE-2026-126334 (GCVE-0-2026-126334)
Vulnerability from cvelistv5 – Published: 2026-11-20 14:44 – Updated: 2026-11-20 18:38
VLAI
EPSS
VEX
Title
Joining a LiveView without `"url"` skips its `live_session` `on_mount` hooks
Summary
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.
The 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.
This 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.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 18:37 UTC
CWE
- CWE-863 - Incorrect Authorization
Assigner
References
8 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix_live_view |
Affected:
0.16.0 , < 1.0.20
(semver)
Affected: 1.1.0-rc.0 , < 1.1.34 (semver) Affected: 1.2.0-rc.0 , < 1.2.14 (semver) cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix_live_view |
Affected:
3d1eb6752399060eebdaa7112f959ee81e7d630d , < *
(git)
cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:* |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-126334",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T18:37:50.986670Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T18:38:03.643Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView.Channel\u0027"
],
"packageName": "phoenix_live_view",
"packageURL": "pkg:hex/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view/channel.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView.Channel\u0027:authorize_session/3"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"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"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView.Channel\u0027"
],
"packageName": "phoenixframework/phoenix_live_view",
"packageURL": "pkg:github/phoenixframework/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view/channel.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView.Channel\u0027:authorize_session/3"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"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"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application enforces authentication or authorization in \u003ccode\u003eon_mount\u003c/code\u003e hooks of a \u003ccode\u003elive_session\u003c/code\u003e, and the LiveView does not do the same check itself. The LiveView must also mount without a route: it does not define \u003ccode\u003ehandle_params/3\u003c/code\u003e, its \u003ccode\u003emount/3\u003c/code\u003e accepts \u003ccode\u003e:not_mounted_at_router\u003c/code\u003e as its params, and it does not read assigns that the skipped hooks set.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application enforces authentication or authorization in `on_mount` hooks of a `live_session`, and the LiveView does not do the same check itself. The LiveView must also mount without a route: it does not define `handle_params/3`, its `mount/3` accepts `:not_mounted_at_router` as its params, and it does not read assigns that the skipped hooks set."
}
],
"value": "The application enforces authentication or authorization in on_mount hooks of a live_session, and the LiveView does not do the same check itself. The LiveView must also mount without a route: it does not define handle_params/3, its mount/3 accepts :not_mounted_at_router as its params, and it does not read assigns that the skipped hooks set."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.0.20",
"versionStartIncluding": "0.16.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.1.34",
"versionStartIncluding": "1.1.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.2.14",
"versionStartIncluding": "1.2.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Alexander Koutmos"
},
{
"lang": "en",
"type": "reporter",
"value": "Alexander Koutmos"
},
{
"lang": "en",
"type": "coordinator",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
},
{
"lang": "en",
"type": "remediation reviewer",
"value": "Jos\u00e9 Valim"
}
],
"dateAssigned": "2026-11-17T03:32:27.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eIncorrect Authorization vulnerability in phoenixframework phoenix_live_view allows an authenticated user to mount a router-mounted LiveView without the \u003ccode\u003eon_mount\u003c/code\u003e hooks of its \u003ccode\u003elive_session\u003c/code\u003e via a \u003ccode\u003ephx_join\u003c/code\u003e message that carries neither a \u003ccode\u003e\"url\"\u003c/code\u003e nor a \u003ccode\u003e\"redirect\"\u003c/code\u003e key.\u003c/p\u003e\n\u003cp\u003eThe catch-all clause of the private \u003ccode\u003ePhoenix.LiveView.Channel.authorize_session/3\u003c/code\u003e in \u003ccode\u003elib/phoenix_live_view/channel.ex\u003c/code\u003e 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 \u003ccode\u003elive_session\u003c/code\u003e hooks to the mount lifecycle. Checks that those hooks perform on the connected mount do not run, and event checks that they attach through \u003ccode\u003eattach_hook/4\u003c/code\u003e are never attached. The attacker needs a valid session token for the LiveView, which only the HTTP render issues, after the hooks pass there. \u003ccode\u003eon_mount\u003c/code\u003e hooks declared in the LiveView module still run.\u003c/p\u003e\n\u003cp\u003eThis 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.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "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."
}
],
"value": "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."
}
],
"impacts": [
{
"capecId": "CAPEC-1",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn authenticated user can send events that the \u003ccode\u003elive_session\u003c/code\u003e hooks would deny. A user whose access was revoked after the page loaded can still mount the LiveView and send events while the LiveView session token is valid.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An authenticated user can send events that the `live_session` hooks would deny. A user whose access was revoked after the page loaded can still mount the LiveView and send events while the LiveView session token is valid."
}
],
"value": "An authenticated user can send events that the live_session hooks would deny. A user whose access was revoked after the page loaded can still mount the LiveView and send events while the LiveView session token is valid."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 6,
"baseSeverity": "MEDIUM",
"privilegesRequired": "LOW",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-863",
"description": "CWE-863 Incorrect Authorization",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T14:44:41.639Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Joining a LiveView without `\"url\"` skips its `live_session` `on_mount` hooks",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-v4p7-3pm2-wq6c"
},
{
"name": "EEF CNA record for CVE-2026-126334",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-126334.html"
},
{
"name": "OSV record EEF-CVE-2026-126334",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-126334"
},
{
"name": "Introducing commit 3d1eb67 in phoenixframework/phoenix_live_view",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/3d1eb6752399060eebdaa7112f959ee81e7d630d"
},
{
"name": "Fix commit 049b2b1 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/049b2b10bb051467639c8cf6f3f7ee13df401a74"
},
{
"name": "Fix commit 5dc8459 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/5dc8459da3d5f7f1ba11d2fe351ea97e7a46c99f"
},
{
"name": "Fix commit 71b114d in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/71b114d75e1ed615bbe8db7474a215536163eabb"
},
{
"name": "Fix commit ec47eaa in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/ec47eaac9e440ca7e8664ef64c8377cd2579c40c"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Joining a LiveView without `\"url\"` skips its `live_session` `on_mount` hooks",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eMove the security-relevant \u003ccode\u003eon_mount\u003c/code\u003e hooks from the \u003ccode\u003elive_session\u003c/code\u003e to the LiveView module with \u003ccode\u003ePhoenix.LiveView.on_mount/1\u003c/code\u003e, for example in the \u003ccode\u003elive_view\u003c/code\u003e definition that \u003ccode\u003euse MyAppWeb, :live_view\u003c/code\u003e expands. Hooks declared in the module run on every mount.\u003c/p\u003e\n\u003cp\u003eAlternatively, make \u003ccode\u003emount/3\u003c/code\u003e match its first argument as a map (\u003ccode\u003e%{} = params\u003c/code\u003e), or define \u003ccode\u003ehandle_params/3\u003c/code\u003e in the LiveView. In both cases a mount without a route raises, and the join fails.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "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."
}
],
"value": "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."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe target application has a \u003ccode\u003elive_session\u003c/code\u003e whose \u003ccode\u003eon_mount\u003c/code\u003e hook halts the mount for a suspended account and attaches a \u003ccode\u003e:handle_event\u003c/code\u003e hook with \u003ccode\u003eattach_hook/4\u003c/code\u003e that denies the \u003ccode\u003edelete_post\u003c/code\u003e event to users who are not admins. The LiveView at \u003ccode\u003e/posts\u003c/code\u003e does not define \u003ccode\u003ehandle_params/3\u003c/code\u003e.\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eSign in as a user without the admin role and load \u003ccode\u003e/posts\u003c/code\u003e over HTTP. Keep the session cookie, the CSRF token from the page, and the \u003ccode\u003eid\u003c/code\u003e, \u003ccode\u003edata-phx-session\u003c/code\u003e, and \u003ccode\u003edata-phx-static\u003c/code\u003e attributes of the element that has \u003ccode\u003edata-phx-main\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eOpen the LiveView websocket at \u003ccode\u003e/live/websocket\u003c/code\u003e with the session cookie and the CSRF token.\u003c/li\u003e\n\u003cli\u003eSend a \u003ccode\u003ephx_join\u003c/code\u003e message on the topic \u003ccode\u003elv:\u0026lt;id\u0026gt;\u003c/code\u003e. The payload has \u003ccode\u003e\"params\"\u003c/code\u003e (with \u003ccode\u003e\"_csrf_token\"\u003c/code\u003e and \u003ccode\u003e\"_mounts\": 0\u003c/code\u003e), \u003ccode\u003e\"session\"\u003c/code\u003e, and \u003ccode\u003e\"static\"\u003c/code\u003e. It has no \u003ccode\u003e\"url\"\u003c/code\u003e key and no \u003ccode\u003e\"redirect\"\u003c/code\u003e key.\u003c/li\u003e\n\u003cli\u003eThe server replies with status \u003ccode\u003eok\u003c/code\u003e. The LiveView is mounted without the \u003ccode\u003elive_session\u003c/code\u003e hooks.\u003c/li\u003e\n\u003cli\u003eSend an \u003ccode\u003eevent\u003c/code\u003e message of type \u003ccode\u003eclick\u003c/code\u003e for the event \u003ccode\u003edelete_post\u003c/code\u003e. The LiveView handles the event, and the post is deleted.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eThe same join with the \u003ccode\u003e\"url\"\u003c/code\u003e key set to the page URL runs the hooks, and the \u003ccode\u003edelete_post\u003c/code\u003e event is denied. If the account is suspended after step 1, the join with \u003ccode\u003e\"url\"\u003c/code\u003e is refused, and the join without \u003ccode\u003e\"url\"\u003c/code\u003e still succeeds.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The target application has a `live_session` whose `on_mount` hook halts the mount for a suspended account and attaches a `:handle_event` hook with `attach_hook/4` that denies the `delete_post` event to users who are not admins. The LiveView at `/posts` does not define `handle_params/3`.\n\n1. Sign in as a user without the admin role and load `/posts` over HTTP. Keep the session cookie, the CSRF token from the page, and the `id`, `data-phx-session`, and `data-phx-static` attributes of the element that has `data-phx-main`.\n2. Open the LiveView websocket at `/live/websocket` with the session cookie and the CSRF token.\n3. Send a `phx_join` message on the topic `lv:\u003cid\u003e`. The payload has `\"params\"` (with `\"_csrf_token\"` and `\"_mounts\": 0`), `\"session\"`, and `\"static\"`. It has no `\"url\"` key and no `\"redirect\"` key.\n4. The server replies with status `ok`. The LiveView is mounted without the `live_session` hooks.\n5. Send an `event` message of type `click` for the event `delete_post`. The LiveView handles the event, and the post is deleted.\n\nThe same join with the `\"url\"` key set to the page URL runs the hooks, and the `delete_post` event is denied. If the account is suspended after step 1, the join with `\"url\"` is refused, and the join without `\"url\"` still succeeds."
}
],
"value": "The target application has a live_session whose on_mount hook halts the mount for a suspended account and attaches a :handle_event hook with attach_hook/4 that denies the delete_post event to users who are not admins. The LiveView at /posts does not define handle_params/3.\n\n* Sign in as a user without the admin role and load /posts over HTTP. Keep the session cookie, the CSRF token from the page, and the id, data-phx-session, and data-phx-static attributes of the element that has data-phx-main.\n* Open the LiveView websocket at /live/websocket with the session cookie and the CSRF token.\n* Send a phx_join message on the topic lv:\u003cid\u003e. The payload has \"params\" (with \"_csrf_token\" and \"_mounts\": 0), \"session\", and \"static\". It has no \"url\" key and no \"redirect\" key.\n* The server replies with status ok. The LiveView is mounted without the live_session hooks.\n* Send an event message of type click for the event delete_post. The LiveView handles the event, and the post is deleted.\n\nThe same join with the \"url\" key set to the page URL runs the hooks, and the delete_post event is denied. If the account is suspended after step 1, the join with \"url\" is refused, and the join without \"url\" still succeeds."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Join authorization.\u003c/strong\u003e The private \u003ccode\u003ePhoenix.LiveView.Channel.authorize_session/3\u003c/code\u003e in \u003ccode\u003elib/phoenix_live_view/channel.ex\u003c/code\u003e has three clauses. The \u003ccode\u003e\"redirect\"\u003c/code\u003e clause resolves the route and checks that it stays in the same \u003ccode\u003elive_session\u003c/code\u003e. The \u003ccode\u003e\"url\"\u003c/code\u003e clause requires, for a session where \u003ccode\u003ePhoenix.LiveView.Session.main?/1\u003c/code\u003e is true, that the route for the URL matches the view and the \u003ccode\u003elive_session\u003c/code\u003e of the session. The third clause matches any other join parameters and returns the session with no route and no URL. Nested LiveViews need this clause because they have no URL. The clause does not call \u003ccode\u003ePhoenix.LiveView.Session.main?/1\u003c/code\u003e, so it also accepts a root LiveView that was mounted at the router.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Mount with no route.\u003c/strong\u003e With no route, \u003ccode\u003emount/3\u003c/code\u003e receives \u003ccode\u003e:not_mounted_at_router\u003c/code\u003e as its params. The private \u003ccode\u003eload_lifecycle/2\u003c/code\u003e adds the \u003ccode\u003eon_mount\u003c/code\u003e hooks of the \u003ccode\u003elive_session\u003c/code\u003e only when it receives a \u003ccode\u003e%Phoenix.LiveView.Route{}\u003c/code\u003e. Without a route it returns the lifecycle of the LiveView module alone. The \u003ccode\u003elive_session\u003c/code\u003e layout is skipped in the same way.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Result.\u003c/strong\u003e The signed session token, the static token, the CSRF token, and the session cookie are all valid, so the join succeeds. The LiveView runs without the \u003ccode\u003elive_session\u003c/code\u003e hooks. Hooks that halt the mount do not run, and hooks attached with \u003ccode\u003eattach_hook/4\u003c/code\u003e for \u003ccode\u003e:handle_event\u003c/code\u003e or \u003ccode\u003e:handle_info\u003c/code\u003e are never attached.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eConditions that stop the mount.\u003c/strong\u003e A LiveView that defines \u003ccode\u003ehandle_params/3\u003c/code\u003e raises on a mount without a route. A LiveView whose \u003ccode\u003emount/3\u003c/code\u003e matches its params as a map raises. A LiveView that reads an assign that a skipped hook sets raises. In these cases the join fails.\u003c/p\u003e\n\u003cp\u003eThe official JavaScript client always sends \u003ccode\u003e\"url\"\u003c/code\u003e or \u003ccode\u003e\"redirect\"\u003c/code\u003e for a root LiveView. Only nested views join without either key.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Join authorization.** The private `Phoenix.LiveView.Channel.authorize_session/3` in `lib/phoenix_live_view/channel.ex` has three clauses. The `\"redirect\"` clause resolves the route and checks that it stays in the same `live_session`. The `\"url\"` clause requires, for a session where `Phoenix.LiveView.Session.main?/1` is true, that the route for the URL matches the view and the `live_session` of the session. The third clause matches any other join parameters and returns the session with no route and no URL. Nested LiveViews need this clause because they have no URL. The clause does not call `Phoenix.LiveView.Session.main?/1`, so it also accepts a root LiveView that was mounted at the router.\n\n**2. Mount with no route.** With no route, `mount/3` receives `:not_mounted_at_router` as its params. The private `load_lifecycle/2` adds the `on_mount` hooks of the `live_session` only when it receives a `%Phoenix.LiveView.Route{}`. Without a route it returns the lifecycle of the LiveView module alone. The `live_session` layout is skipped in the same way.\n\n**3. Result.** The signed session token, the static token, the CSRF token, and the session cookie are all valid, so the join succeeds. The LiveView runs without the `live_session` hooks. Hooks that halt the mount do not run, and hooks attached with `attach_hook/4` for `:handle_event` or `:handle_info` are never attached.\n\n**Conditions that stop the mount.** A LiveView that defines `handle_params/3` raises on a mount without a route. A LiveView whose `mount/3` matches its params as a map raises. A LiveView that reads an assign that a skipped hook sets raises. In these cases the join fails.\n\nThe official JavaScript client always sends `\"url\"` or `\"redirect\"` for a root LiveView. Only nested views join without either key."
}
],
"value": "1. Join authorization. The private Phoenix.LiveView.Channel.authorize_session/3 in lib/phoenix_live_view/channel.ex has three clauses. The \"redirect\" clause resolves the route and checks that it stays in the same live_session. The \"url\" clause requires, for a session where Phoenix.LiveView.Session.main?/1 is true, that the route for the URL matches the view and the live_session of the session. The third clause matches any other join parameters and returns the session with no route and no URL. Nested LiveViews need this clause because they have no URL. The clause does not call Phoenix.LiveView.Session.main?/1, so it also accepts a root LiveView that was mounted at the router.\n\n2. Mount with no route. With no route, mount/3 receives :not_mounted_at_router as its params. The private load_lifecycle/2 adds the on_mount hooks of the live_session only when it receives a %Phoenix.LiveView.Route{}. Without a route it returns the lifecycle of the LiveView module alone. The live_session layout is skipped in the same way.\n\n3. Result. The signed session token, the static token, the CSRF token, and the session cookie are all valid, so the join succeeds. The LiveView runs without the live_session hooks. Hooks that halt the mount do not run, and hooks attached with attach_hook/4 for :handle_event or :handle_info are never attached.\n\nConditions that stop the mount. A LiveView that defines handle_params/3 raises on a mount without a route. A LiveView whose mount/3 matches its params as a map raises. A LiveView that reads an assign that a skipped hook sets raises. In these cases the join fails.\n\nThe official JavaScript client always sends \"url\" or \"redirect\" for a root LiveView. Only nested views join without either key."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-126334",
"datePublished": "2026-11-20T14:44:41.639Z",
"dateReserved": "2026-11-13T11:19:46.893Z",
"dateUpdated": "2026-11-20T18:38:03.643Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-126334",
"date": "2026-11-22",
"epss": "0.0062",
"percentile": "0.50653"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView.Channel\u0027"
],
"packageName": "phoenix_live_view",
"packageURL": "pkg:hex/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view/channel.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView.Channel\u0027:authorize_session/3"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"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"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView.Channel\u0027"
],
"packageName": "phoenixframework/phoenix_live_view",
"packageURL": "pkg:github/phoenixframework/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view/channel.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView.Channel\u0027:authorize_session/3"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"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"
}
]
}
],
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"id": "CVE-2026-126334",
"lastModified": "2026-11-20T19:18:39.777",
"metrics": {
"cvssMetricV40": [
{
"cvssData": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"availabilityRequirement": "NOT_DEFINED",
"baseScore": 6.0,
"baseSeverity": "MEDIUM",
"confidentialityRequirement": "NOT_DEFINED",
"exploitMaturity": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"privilegesRequired": "LOW",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary"
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2026-126334",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T18:37:50.986670Z",
"version": "2.0.3"
}
}
]
},
"published": "2026-11-20T15:17:40.110",
"references": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://cna.erlef.org/cves/CVE-2026-126334.html"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/049b2b10bb051467639c8cf6f3f7ee13df401a74"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/3d1eb6752399060eebdaa7112f959ee81e7d630d"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/5dc8459da3d5f7f1ba11d2fe351ea97e7a46c99f"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/71b114d75e1ed615bbe8db7474a215536163eabb"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/ec47eaac9e440ca7e8664ef64c8377cd2579c40c"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-v4p7-3pm2-wq6c"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-126334"
}
],
"sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"vulnStatus": "Received",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-863"
}
],
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary"
}
]
}
},
"vulnrichment": {
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-126334",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T18:37:50.986670Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T18:37:57.979Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView.Channel\u0027"
],
"packageName": "phoenix_live_view",
"packageURL": "pkg:hex/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view/channel.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView.Channel\u0027:authorize_session/3"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"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"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView.Channel\u0027"
],
"packageName": "phoenixframework/phoenix_live_view",
"packageURL": "pkg:github/phoenixframework/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view/channel.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView.Channel\u0027:authorize_session/3"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"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"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application enforces authentication or authorization in \u003ccode\u003eon_mount\u003c/code\u003e hooks of a \u003ccode\u003elive_session\u003c/code\u003e, and the LiveView does not do the same check itself. The LiveView must also mount without a route: it does not define \u003ccode\u003ehandle_params/3\u003c/code\u003e, its \u003ccode\u003emount/3\u003c/code\u003e accepts \u003ccode\u003e:not_mounted_at_router\u003c/code\u003e as its params, and it does not read assigns that the skipped hooks set.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application enforces authentication or authorization in `on_mount` hooks of a `live_session`, and the LiveView does not do the same check itself. The LiveView must also mount without a route: it does not define `handle_params/3`, its `mount/3` accepts `:not_mounted_at_router` as its params, and it does not read assigns that the skipped hooks set."
}
],
"value": "The application enforces authentication or authorization in on_mount hooks of a live_session, and the LiveView does not do the same check itself. The LiveView must also mount without a route: it does not define handle_params/3, its mount/3 accepts :not_mounted_at_router as its params, and it does not read assigns that the skipped hooks set."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.0.20",
"versionStartIncluding": "0.16.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.1.34",
"versionStartIncluding": "1.1.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.2.14",
"versionStartIncluding": "1.2.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Alexander Koutmos"
},
{
"lang": "en",
"type": "reporter",
"value": "Alexander Koutmos"
},
{
"lang": "en",
"type": "coordinator",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
},
{
"lang": "en",
"type": "remediation reviewer",
"value": "Jos\u00e9 Valim"
}
],
"dateAssigned": "2026-11-17T03:32:27.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eIncorrect Authorization vulnerability in phoenixframework phoenix_live_view allows an authenticated user to mount a router-mounted LiveView without the \u003ccode\u003eon_mount\u003c/code\u003e hooks of its \u003ccode\u003elive_session\u003c/code\u003e via a \u003ccode\u003ephx_join\u003c/code\u003e message that carries neither a \u003ccode\u003e\"url\"\u003c/code\u003e nor a \u003ccode\u003e\"redirect\"\u003c/code\u003e key.\u003c/p\u003e\n\u003cp\u003eThe catch-all clause of the private \u003ccode\u003ePhoenix.LiveView.Channel.authorize_session/3\u003c/code\u003e in \u003ccode\u003elib/phoenix_live_view/channel.ex\u003c/code\u003e 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 \u003ccode\u003elive_session\u003c/code\u003e hooks to the mount lifecycle. Checks that those hooks perform on the connected mount do not run, and event checks that they attach through \u003ccode\u003eattach_hook/4\u003c/code\u003e are never attached. The attacker needs a valid session token for the LiveView, which only the HTTP render issues, after the hooks pass there. \u003ccode\u003eon_mount\u003c/code\u003e hooks declared in the LiveView module still run.\u003c/p\u003e\n\u003cp\u003eThis 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.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "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."
}
],
"value": "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."
}
],
"impacts": [
{
"capecId": "CAPEC-1",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn authenticated user can send events that the \u003ccode\u003elive_session\u003c/code\u003e hooks would deny. A user whose access was revoked after the page loaded can still mount the LiveView and send events while the LiveView session token is valid.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An authenticated user can send events that the `live_session` hooks would deny. A user whose access was revoked after the page loaded can still mount the LiveView and send events while the LiveView session token is valid."
}
],
"value": "An authenticated user can send events that the live_session hooks would deny. A user whose access was revoked after the page loaded can still mount the LiveView and send events while the LiveView session token is valid."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 6,
"baseSeverity": "MEDIUM",
"privilegesRequired": "LOW",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-863",
"description": "CWE-863 Incorrect Authorization",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T14:44:41.639Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Joining a LiveView without `\"url\"` skips its `live_session` `on_mount` hooks",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-v4p7-3pm2-wq6c"
},
{
"name": "EEF CNA record for CVE-2026-126334",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-126334.html"
},
{
"name": "OSV record EEF-CVE-2026-126334",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-126334"
},
{
"name": "Introducing commit 3d1eb67 in phoenixframework/phoenix_live_view",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/3d1eb6752399060eebdaa7112f959ee81e7d630d"
},
{
"name": "Fix commit 049b2b1 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/049b2b10bb051467639c8cf6f3f7ee13df401a74"
},
{
"name": "Fix commit 5dc8459 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/5dc8459da3d5f7f1ba11d2fe351ea97e7a46c99f"
},
{
"name": "Fix commit 71b114d in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/71b114d75e1ed615bbe8db7474a215536163eabb"
},
{
"name": "Fix commit ec47eaa in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/ec47eaac9e440ca7e8664ef64c8377cd2579c40c"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Joining a LiveView without `\"url\"` skips its `live_session` `on_mount` hooks",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eMove the security-relevant \u003ccode\u003eon_mount\u003c/code\u003e hooks from the \u003ccode\u003elive_session\u003c/code\u003e to the LiveView module with \u003ccode\u003ePhoenix.LiveView.on_mount/1\u003c/code\u003e, for example in the \u003ccode\u003elive_view\u003c/code\u003e definition that \u003ccode\u003euse MyAppWeb, :live_view\u003c/code\u003e expands. Hooks declared in the module run on every mount.\u003c/p\u003e\n\u003cp\u003eAlternatively, make \u003ccode\u003emount/3\u003c/code\u003e match its first argument as a map (\u003ccode\u003e%{} = params\u003c/code\u003e), or define \u003ccode\u003ehandle_params/3\u003c/code\u003e in the LiveView. In both cases a mount without a route raises, and the join fails.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "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."
}
],
"value": "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."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe target application has a \u003ccode\u003elive_session\u003c/code\u003e whose \u003ccode\u003eon_mount\u003c/code\u003e hook halts the mount for a suspended account and attaches a \u003ccode\u003e:handle_event\u003c/code\u003e hook with \u003ccode\u003eattach_hook/4\u003c/code\u003e that denies the \u003ccode\u003edelete_post\u003c/code\u003e event to users who are not admins. The LiveView at \u003ccode\u003e/posts\u003c/code\u003e does not define \u003ccode\u003ehandle_params/3\u003c/code\u003e.\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eSign in as a user without the admin role and load \u003ccode\u003e/posts\u003c/code\u003e over HTTP. Keep the session cookie, the CSRF token from the page, and the \u003ccode\u003eid\u003c/code\u003e, \u003ccode\u003edata-phx-session\u003c/code\u003e, and \u003ccode\u003edata-phx-static\u003c/code\u003e attributes of the element that has \u003ccode\u003edata-phx-main\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eOpen the LiveView websocket at \u003ccode\u003e/live/websocket\u003c/code\u003e with the session cookie and the CSRF token.\u003c/li\u003e\n\u003cli\u003eSend a \u003ccode\u003ephx_join\u003c/code\u003e message on the topic \u003ccode\u003elv:\u0026lt;id\u0026gt;\u003c/code\u003e. The payload has \u003ccode\u003e\"params\"\u003c/code\u003e (with \u003ccode\u003e\"_csrf_token\"\u003c/code\u003e and \u003ccode\u003e\"_mounts\": 0\u003c/code\u003e), \u003ccode\u003e\"session\"\u003c/code\u003e, and \u003ccode\u003e\"static\"\u003c/code\u003e. It has no \u003ccode\u003e\"url\"\u003c/code\u003e key and no \u003ccode\u003e\"redirect\"\u003c/code\u003e key.\u003c/li\u003e\n\u003cli\u003eThe server replies with status \u003ccode\u003eok\u003c/code\u003e. The LiveView is mounted without the \u003ccode\u003elive_session\u003c/code\u003e hooks.\u003c/li\u003e\n\u003cli\u003eSend an \u003ccode\u003eevent\u003c/code\u003e message of type \u003ccode\u003eclick\u003c/code\u003e for the event \u003ccode\u003edelete_post\u003c/code\u003e. The LiveView handles the event, and the post is deleted.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eThe same join with the \u003ccode\u003e\"url\"\u003c/code\u003e key set to the page URL runs the hooks, and the \u003ccode\u003edelete_post\u003c/code\u003e event is denied. If the account is suspended after step 1, the join with \u003ccode\u003e\"url\"\u003c/code\u003e is refused, and the join without \u003ccode\u003e\"url\"\u003c/code\u003e still succeeds.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The target application has a `live_session` whose `on_mount` hook halts the mount for a suspended account and attaches a `:handle_event` hook with `attach_hook/4` that denies the `delete_post` event to users who are not admins. The LiveView at `/posts` does not define `handle_params/3`.\n\n1. Sign in as a user without the admin role and load `/posts` over HTTP. Keep the session cookie, the CSRF token from the page, and the `id`, `data-phx-session`, and `data-phx-static` attributes of the element that has `data-phx-main`.\n2. Open the LiveView websocket at `/live/websocket` with the session cookie and the CSRF token.\n3. Send a `phx_join` message on the topic `lv:\u003cid\u003e`. The payload has `\"params\"` (with `\"_csrf_token\"` and `\"_mounts\": 0`), `\"session\"`, and `\"static\"`. It has no `\"url\"` key and no `\"redirect\"` key.\n4. The server replies with status `ok`. The LiveView is mounted without the `live_session` hooks.\n5. Send an `event` message of type `click` for the event `delete_post`. The LiveView handles the event, and the post is deleted.\n\nThe same join with the `\"url\"` key set to the page URL runs the hooks, and the `delete_post` event is denied. If the account is suspended after step 1, the join with `\"url\"` is refused, and the join without `\"url\"` still succeeds."
}
],
"value": "The target application has a live_session whose on_mount hook halts the mount for a suspended account and attaches a :handle_event hook with attach_hook/4 that denies the delete_post event to users who are not admins. The LiveView at /posts does not define handle_params/3.\n\n* Sign in as a user without the admin role and load /posts over HTTP. Keep the session cookie, the CSRF token from the page, and the id, data-phx-session, and data-phx-static attributes of the element that has data-phx-main.\n* Open the LiveView websocket at /live/websocket with the session cookie and the CSRF token.\n* Send a phx_join message on the topic lv:\u003cid\u003e. The payload has \"params\" (with \"_csrf_token\" and \"_mounts\": 0), \"session\", and \"static\". It has no \"url\" key and no \"redirect\" key.\n* The server replies with status ok. The LiveView is mounted without the live_session hooks.\n* Send an event message of type click for the event delete_post. The LiveView handles the event, and the post is deleted.\n\nThe same join with the \"url\" key set to the page URL runs the hooks, and the delete_post event is denied. If the account is suspended after step 1, the join with \"url\" is refused, and the join without \"url\" still succeeds."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Join authorization.\u003c/strong\u003e The private \u003ccode\u003ePhoenix.LiveView.Channel.authorize_session/3\u003c/code\u003e in \u003ccode\u003elib/phoenix_live_view/channel.ex\u003c/code\u003e has three clauses. The \u003ccode\u003e\"redirect\"\u003c/code\u003e clause resolves the route and checks that it stays in the same \u003ccode\u003elive_session\u003c/code\u003e. The \u003ccode\u003e\"url\"\u003c/code\u003e clause requires, for a session where \u003ccode\u003ePhoenix.LiveView.Session.main?/1\u003c/code\u003e is true, that the route for the URL matches the view and the \u003ccode\u003elive_session\u003c/code\u003e of the session. The third clause matches any other join parameters and returns the session with no route and no URL. Nested LiveViews need this clause because they have no URL. The clause does not call \u003ccode\u003ePhoenix.LiveView.Session.main?/1\u003c/code\u003e, so it also accepts a root LiveView that was mounted at the router.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Mount with no route.\u003c/strong\u003e With no route, \u003ccode\u003emount/3\u003c/code\u003e receives \u003ccode\u003e:not_mounted_at_router\u003c/code\u003e as its params. The private \u003ccode\u003eload_lifecycle/2\u003c/code\u003e adds the \u003ccode\u003eon_mount\u003c/code\u003e hooks of the \u003ccode\u003elive_session\u003c/code\u003e only when it receives a \u003ccode\u003e%Phoenix.LiveView.Route{}\u003c/code\u003e. Without a route it returns the lifecycle of the LiveView module alone. The \u003ccode\u003elive_session\u003c/code\u003e layout is skipped in the same way.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Result.\u003c/strong\u003e The signed session token, the static token, the CSRF token, and the session cookie are all valid, so the join succeeds. The LiveView runs without the \u003ccode\u003elive_session\u003c/code\u003e hooks. Hooks that halt the mount do not run, and hooks attached with \u003ccode\u003eattach_hook/4\u003c/code\u003e for \u003ccode\u003e:handle_event\u003c/code\u003e or \u003ccode\u003e:handle_info\u003c/code\u003e are never attached.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eConditions that stop the mount.\u003c/strong\u003e A LiveView that defines \u003ccode\u003ehandle_params/3\u003c/code\u003e raises on a mount without a route. A LiveView whose \u003ccode\u003emount/3\u003c/code\u003e matches its params as a map raises. A LiveView that reads an assign that a skipped hook sets raises. In these cases the join fails.\u003c/p\u003e\n\u003cp\u003eThe official JavaScript client always sends \u003ccode\u003e\"url\"\u003c/code\u003e or \u003ccode\u003e\"redirect\"\u003c/code\u003e for a root LiveView. Only nested views join without either key.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Join authorization.** The private `Phoenix.LiveView.Channel.authorize_session/3` in `lib/phoenix_live_view/channel.ex` has three clauses. The `\"redirect\"` clause resolves the route and checks that it stays in the same `live_session`. The `\"url\"` clause requires, for a session where `Phoenix.LiveView.Session.main?/1` is true, that the route for the URL matches the view and the `live_session` of the session. The third clause matches any other join parameters and returns the session with no route and no URL. Nested LiveViews need this clause because they have no URL. The clause does not call `Phoenix.LiveView.Session.main?/1`, so it also accepts a root LiveView that was mounted at the router.\n\n**2. Mount with no route.** With no route, `mount/3` receives `:not_mounted_at_router` as its params. The private `load_lifecycle/2` adds the `on_mount` hooks of the `live_session` only when it receives a `%Phoenix.LiveView.Route{}`. Without a route it returns the lifecycle of the LiveView module alone. The `live_session` layout is skipped in the same way.\n\n**3. Result.** The signed session token, the static token, the CSRF token, and the session cookie are all valid, so the join succeeds. The LiveView runs without the `live_session` hooks. Hooks that halt the mount do not run, and hooks attached with `attach_hook/4` for `:handle_event` or `:handle_info` are never attached.\n\n**Conditions that stop the mount.** A LiveView that defines `handle_params/3` raises on a mount without a route. A LiveView whose `mount/3` matches its params as a map raises. A LiveView that reads an assign that a skipped hook sets raises. In these cases the join fails.\n\nThe official JavaScript client always sends `\"url\"` or `\"redirect\"` for a root LiveView. Only nested views join without either key."
}
],
"value": "1. Join authorization. The private Phoenix.LiveView.Channel.authorize_session/3 in lib/phoenix_live_view/channel.ex has three clauses. The \"redirect\" clause resolves the route and checks that it stays in the same live_session. The \"url\" clause requires, for a session where Phoenix.LiveView.Session.main?/1 is true, that the route for the URL matches the view and the live_session of the session. The third clause matches any other join parameters and returns the session with no route and no URL. Nested LiveViews need this clause because they have no URL. The clause does not call Phoenix.LiveView.Session.main?/1, so it also accepts a root LiveView that was mounted at the router.\n\n2. Mount with no route. With no route, mount/3 receives :not_mounted_at_router as its params. The private load_lifecycle/2 adds the on_mount hooks of the live_session only when it receives a %Phoenix.LiveView.Route{}. Without a route it returns the lifecycle of the LiveView module alone. The live_session layout is skipped in the same way.\n\n3. Result. The signed session token, the static token, the CSRF token, and the session cookie are all valid, so the join succeeds. The LiveView runs without the live_session hooks. Hooks that halt the mount do not run, and hooks attached with attach_hook/4 for :handle_event or :handle_info are never attached.\n\nConditions that stop the mount. A LiveView that defines handle_params/3 raises on a mount without a route. A LiveView whose mount/3 matches its params as a map raises. A LiveView that reads an assign that a skipped hook sets raises. In these cases the join fails.\n\nThe official JavaScript client always sends \"url\" or \"redirect\" for a root LiveView. Only nested views join without either key."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-126334",
"datePublished": "2026-11-20T14:44:41.639Z",
"dateReserved": "2026-11-13T11:19:46.893Z",
"dateUpdated": "2026-11-20T18:38:03.643Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…