# CVE-2026-126334: Joining a LiveView without \`"url"\` skips its \`live\_session\` \`on\_mount\` hooks

- **Severity:** MEDIUM 6.0
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.50% (percentile 35, 2026-11-28)
- **CWE:** CWE-863
- **Published:** 2026-11-20T14:44:41.639Z
- **Modified:** 2026-11-24T04:39:41.520Z

## 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, \< \*

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

- 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)

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- vendor: <https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-v4p7-3pm2-wq6c>
- patch: <https://github.com/phoenixframework/phoenix_live_view/commit/3d1eb6752399060eebdaa7112f959ee81e7d630d>
- patch: <https://github.com/phoenixframework/phoenix_live_view/commit/049b2b10bb051467639c8cf6f3f7ee13df401a74>
- patch: <https://github.com/phoenixframework/phoenix_live_view/commit/5dc8459da3d5f7f1ba11d2fe351ea97e7a46c99f>
- patch: <https://github.com/phoenixframework/phoenix_live_view/commit/71b114d75e1ed615bbe8db7474a215536163eabb>
- patch: <https://github.com/phoenixframework/phoenix_live_view/commit/ec47eaac9e440ca7e8664ef64c8377cd2579c40c>
- other: <https://cna.erlef.org/cves/CVE-2026-126334.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-126334>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-126334>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-126334> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-126334>
