CVE-2026-126334
Joining a LiveView without `"url"` skips its `live_session` `on_mount` hooks
Mitigation
- Upgrade phoenix_live_view to 1.2.14 or later.
- Vendor workaround: 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.
- Alternatively, 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.
Who should check
- Anyone running phoenixframework phoenix_live_view >= 0.16.0, < 1.0.20; >= 1.1.0-rc.0, < 1.1.34; >= 1.2.0-rc.0, < 1.2.14
- Anyone running phoenixframework phoenix_live_view >= 3d1eb6752399060eebdaa7112f959ee81e7d630d, < *
Vulnerability facts
- Affected
- phoenixframework phoenix_live_view >= 0.16.0, < 1.0.20; >= 1.1.0-rc.0, < 1.1.34; >= 1.2.0-rc.0, < 1.2.14; phoenixframework phoenix_live_view >= 3d1eb6752399060eebdaa7112f959ee81e7d630d, < *
- Fixed in
- phoenixframework phoenix_live_view 1.0.20, phoenixframework phoenix_live_view 1.1.34, phoenixframework phoenix_live_view 1.2.14
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 6.0 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: Low
- User interaction: None
- Confidentiality impact: Low
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.50% chance of exploitation in 30 days (percentile 35, 2026-11-28)
- CWE
- CWE-863
- Modified
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. 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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| phoenixframework phoenix_live_view | >= 0.16.0, < 1.0.20; >= 1.1.0-rc.0, < 1.1.34; >= 1.2.0-rc.0, < 1.2.14 | — | cvelist |
| phoenixframework phoenix_live_view | >= 3d1eb6752399060eebdaa7112f959ee81e7d630d, < * | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-126334. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-126334.md Affected: phoenixframework phoenix_live_view >= 0.16.0, < 1.0.20; >= 1.1.0-rc.0, < 1.1.34; >= 1.2.0-rc.0, < 1.2.14; phoenixframework phoenix_live_view >= 3d1eb6752399060eebdaa7112f959ee81e7d630d, < * Fixed in: phoenixframework phoenix_live_view 1.0.20, phoenixframework phoenix_live_view 1.1.34, phoenixframework phoenix_live_view 1.2.14 Steps: 1. Search this machine and project for phoenixframework phoenix_live_view: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/phoenixframework/phoenix_live_view/commit/3d1eb6752399060eebdaa7112f959ee81e7d630d
- https://github.com/phoenixframework/phoenix_live_view/commit/049b2b10bb051467639c8cf6f3f7ee13df401a74
- https://github.com/phoenixframework/phoenix_live_view/commit/5dc8459da3d5f7f1ba11d2fe351ea97e7a46c99f
- https://github.com/phoenixframework/phoenix_live_view/commit/71b114d75e1ed615bbe8db7474a215536163eabb
- https://github.com/phoenixframework/phoenix_live_view/commit/ec47eaac9e440ca7e8664ef64c8377cd2579c40c
FAQ
Is CVE-2026-126334 being exploited?
There is no confirmed exploitation: CVE-2026-126334 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.50% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2026-126334?
Medium: CVSS 6.0 (v4.0, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-126334?
phoenixframework phoenix_live_view >= 0.16.0, < 1.0.20; >= 1.1.0-rc.0, < 1.1.34; >= 1.2.0-rc.0, < 1.2.14; phoenixframework phoenix_live_view >= 3d1eb6752399060eebdaa7112f959ee81e7d630d, < *.
Is there a fix for CVE-2026-126334?
Yes. Fixed in phoenixframework phoenix_live_view 1.0.20, phoenixframework phoenix_live_view 1.1.34, phoenixframework phoenix_live_view 1.2.14. Upgrade phoenix_live_view to 1.2.14 or later. Vendor workaround: 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. Alternatively, 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.
How do I check if I'm affected by CVE-2026-126334?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More phoenixframework vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| HIGH 8.2 | CVE-2026-128361 Unsanitized presence key crashes Presence tracker | phoenixframework | EPSS 43% | |
| HIGH 8.2 | CVE-2026-129344 Client-selected V1 serializer crashes shared broadcast dispatch on binary payloads | phoenixframework | EPSS 50% |