Hex
CVE-2026-126334
Joining a LiveView without `"url"` skips its `live_session` `on_mount` hooks
- Severity
- Medium 6.0
- Published
- 20 Nov 2026
- Last changed
- 24 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.0.20, 1.1.34, 1.2.14
- Exploit chance
- 0.6% in the next 30 daysHigher than 50% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Only under certain conditions · Needs a user account · No user action needed
- Attacker can
- Read some data · Change data
- CVSS 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- Sources
- CVE Program
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.
Affected software
| Software | Affected versions |
|---|---|
phoenix_live_viewHex · osv:Hex:phoenix_live_view |
|
About phoenix_live_view
Vulnerabilities in phoenix_live_view
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-58228Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via <.link>Medium 5.1 13 Jul 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-126334