Phoenixframework vulnerabilities
In the last 30 days, 4 Phoenixframework vulnerabilities were published: 0 critical, 0 actively exploited. Most common weakness: improper input validation (CWE-20).
CVSS score: 8.2 Severity: High Identifier: CVE-2026-128361 Unsanitized presence key crashes Presence tracker Package: phoenix fixed in * (+1 branch) Published Published
Improper Input Validation vulnerability in phoenixframework phoenix (Phoenix.Presence) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.
track/3,4 accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with to_string/1 only later, in Phoenix.Presence.group/1, which raises Protocol.UndefinedError on a map. group/1 runs whenever presences are listed and when each presence diff is broadcast, together with the application's fetch/2, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.
From 1.7.0 the diff runs in a Task.Supervisor.async task linked to the tracker shard, and Phoenix.Presence.handle_info/2 has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.
This issue affects phoenix: from 1.2.0 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17.
- Exploitation
- No known exploitation
- EPSS
- 0.60% chance of exploitation in the next 30 days, higher than 43.0% of CVEs
- CVSS
- 8.2 out of 10 · source NVD (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Versions
- 44e7618370629df93711cd6169789fd0d8f3678e → <* · fixed in * (and 1 older branch)
- Weakness
- CWE-20
- Sources
- CVE.org · NVD · EPSS
- Dates
- published Nov 21, 2026 · first seen here 3 h ago
CVSS score: 8.2 Severity: High Identifier: CVE-2026-129344 Client-selected V1 serializer crashes shared broadcast dispatch on binary payloads Package: phoenix fixed in * (+1 branch) Published Published
Uncaught Exception vulnerability in phoenixframework phoenix allows an unauthenticated attacker to cause a denial of service via a client-selected legacy serializer on binary channel broadcasts.
When an application broadcasts {:binary, data} payloads on a channel topic, any client that connects without a vsn parameter, or with vsn=1.0.0, and joins that topic makes those broadcasts fail. Phoenix.Channel.Server.send/4 encodes each broadcast with every subscriber's own serializer inside the PubSub dispatch loop, calling fastlane!/1 with no rescue, and the negotiated Phoenix.Socket.V1.JSONSerializer raises Protocol.UndefinedError on a binary payload. Every binary broadcast on the topic then crashes the broadcasting process and skips every subscriber dispatched after the attacker. For broadcasts arriving from other nodes the loop runs in the PubSub adapter worker, whose repeated crashes restart the PubSub supervisor and empty the node's subscription registry while sockets stay connected.
This issue affects phoenix: from 1.5.7 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17.
- Exploitation
- No known exploitation
- EPSS
- 0.72% chance of exploitation in the next 30 days, higher than 49.6% of CVEs
- CVSS
- 8.2 out of 10 · source NVD (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Versions
- 07b401901fc1d649f126eee6315b5eb01fa5c85c → <c255d983e03893ae46abf01d13c3ec3bd20f029c; cf098e9cf7a44ee6479d31d911a97d3c7430c6fe → <* · fixed in * (and 1 older branch)
- Weakness
- CWE-248
- Sources
- CVE.org · NVD · EPSS
- Dates
- published Nov 21, 2026 · first seen here 3 h ago
CVSS score: 6.0
Severity: Medium
Identifier: CVE-2026-126334
Joining a LiveView without "url" skips its live_session on_mount hooks
Package: phoenix live view fixed in * (+1 branch)
Published Published
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.
- Exploitation
- No known exploitation
- EPSS
- 0.50% chance of exploitation in the next 30 days, higher than 35.3% of CVEs
- CVSS
- 6.0 out of 10 · source NVD (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Versions
- 3d1eb6752399060eebdaa7112f959ee81e7d630d → <* · fixed in * (and 1 older branch)
- Weakness
- CWE-863
- Sources
- CVE.org · NVD · EPSS
- Dates
- published Nov 20, 2026 · first seen here 3 h ago
CVSS score: 5.3 Severity: Medium Identifier: CVE-2026-117645 Phoenix.HTML vulnerable to attribute injection via unvalidated attribute names in attributes_escape/1 Package: phoenix html fixed in * (+1 branch) Published Published
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in phoenixframework phoenix_html allows an attacker who controls attribute names to inject attributes and script into rendered HTML via Phoenix.HTML.attributes_escape/1.
attributes_escape/1 in lib/phoenix_html.ex escapes attribute values but not attribute names. key_escape/1 passes a binary key through html_escape, which neutralizes quotes and angle brackets but not whitespace, so a key such as x onmouseover ends the attribute and starts a new one. An atom key is only dasherized, so any character passes, including quotes and >. Nested data, aria and phx keys take the same paths. An application is affected when it builds attribute keys from untrusted input and renders them through HEEx <tag {@attrs}>, content_tag/3, or a direct call. Before 3.0.0 the same code lived in Phoenix.HTML.Tag.
This issue affects phoenix_html: from 1.0.0 before 3.3.5 and from 4.0.0 before 4.4.0.
- Exploitation
- No known exploitation
- EPSS
- 0.55% chance of exploitation in the next 30 days, higher than 39.4% of CVEs
- CVSS
- 5.3 out of 10 · source NVD (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Versions
- 6ad3a1d7960891a468d54636054a98e11dfb5111 → <* · fixed in * (and 1 older branch)
- Weakness
- CWE-79
- Sources
- CVE.org · NVD · EPSS
- Dates
- published Oct 30, 2026 · first seen here 4 h ago