Incorrect Authorization Issue in Phoenix Framework LiveView
CVE-2026-126334
What is CVE-2026-126334?
An incorrect authorization vulnerability exists in the Phoenix Framework's LiveView component. This flaw allows an authenticated user to join a router-mounted LiveView without proper on_mount hooks through a phx_join message that omits essential parameters such as 'url' or 'redirect'. The underlying issue lies in how connections to the LiveView are authorized. The catch-all clause of the private session authorization function can accept joins without URLs for any session, inadvertently mounting LiveViews without executing the necessary lifecycle hooks. This oversight can lead to a refusal of crucial security checks during the initial connection. The attacker, possessing a valid session token, can exploit this flaw to bypass security measures that the on_mount hooks implement, thus gaining unauthorized access to LiveView functionalities.
Affected Version(s)
phoenix_live_view 0.16.0 < 1.0.20
phoenix_live_view 1.1.0-rc.0 < 1.1.34
phoenix_live_view 1.2.0-rc.0 < 1.2.14
References
CVSS V4
Timeline
Vulnerability published
Vulnerability Reserved
