Vulnerability EEF-CVE-2026-128361

Unknown
UNKNOWN RISK
Vulnerabilities without an assigned CVSS score. Severity is not determinable from available data.
1 day ago
November 21, 2026 at 11:09 AM UTC
Unsanitized presence key crashes Presence tracker
1.2.0 - 1.5.15 and 1.6.0-rc.0 - 1.6.17 and 1.7.0-rc.0 - 1.7.24 and 1.8.0-rc.0 - 1.8.16
1.2.0 - 1.5.15 and 1.6.0-rc.0 - 1.6.17 and 1.7.0-rc.0 - 1.7.24 and 1.8.0-rc.0 - 1.8.16

Summary

Unsanitized presence key crashes Presence tracker

Details

Summary

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.

Details

1. Key accepted. The track/3,4 injected by use Phoenix.Presence passes any term to Phoenix.Tracker.track, which returns {:ok, ref}. The documented pattern Presence.track(socket, name, meta) with name from the join payload lets a client choose a map as the key.

2. Deferred conversion. Phoenix.Presence.group/1 converts each key with to_string/1. It runs in Phoenix.Presence.list/2, in the calling process, and in handle_diff/2 before the application's fetch/2. A map key raises Protocol.UndefinedError there, as does a fetch/2 such as the moduledoc's String.to_integer(key) on a non-numeric key.

3. Topic crash. While the key stays tracked, every list on the topic raises. The documented after_join that pushes Presence.list(socket) therefore crashes each later joiner's channel. Before 1.7.0, handle_diff/2 runs in an unlinked Task.Supervisor.start_child task, so a failing diff only loses that batch of joins and leaves.

4. Shard crash (1.7.0 and later). handle_diff/2 runs the diff in a Task.Supervisor.async task linked to the tracker shard, and Phoenix.Presence.handle_info/2 matches only the task's success reply. The failure terminates the shard (FunctionClauseError), every tracked process linked to it dies, and presence state is wiped. Repeated joins exhaust the supervisor's restart intensity.

Proof of concept

  1. Run a Phoenix endpoint with a channel whose join reads name from the join payload and then calls MyPresence.track(socket, name, %{online_at: 1}).
  2. Join the topic with 15 clients using string names, and confirm MyPresence.list(topic) returns 15 entries.
  3. Join once more with the payload {"name": {"x": 1}}.
  4. The log shows Protocol.UndefinedError from Phoenix.Presence.group/1, then the shard terminating. All 15 clients receive phx_error, and MyPresence.list(topic) returns 0 entries.

Impact

With one channel join an attacker makes the topic's presence unusable: every later join that lists presences crashes, and presence updates stop. From 1.7.0 the same join terminates every channel and LiveView process tracked on the Presence shard and erases presence state for all its topics, and repeating it brings down the application.

Workarounds

Validate every presence key before passing it to track/3,4, untrack/2,3 or update/3,4, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:

def join("room:" <> _, %{"name" => name}, socket) when is_binary(name) do
  send(self(), {:after_join, name})
  {:ok, socket}
end

A fetch/2 callback must also not raise on any tracked key.

Configurations

The application must use Phoenix.Presence and either track presences under a key influenced by client input (such as a name taken from the channel join payload), or define a fetch/2 callback that can raise on a tracked key. Applications that track only server-controlled string keys and whose fetch/2 cannot raise are not affected.

Related Vulnerabilities

Other vulnerabilities affecting the same packages

Unknown
1 day ago
Client-selected V1 serializer crashes shared broadcast dispatch on binary payloads
1.5.7 - 1.5.15 and 1.6.0-rc.0 - 1.6.17 and 1.7.0-rc.0 - 1.7.24 and 1.8.0-rc.0 - 1.8.16 EEF-CVE-2026-129344
1.5.7 - 1.5.15 and 1.6.0-rc.0 - 1.6.17 and 1.7.0-rc.0 - 1.7.24 and 1.8.0-rc.0 - 1.8.16 EEF-CVE-2026-129344
High Risk
2 months ago
Phoenix: Unbounded channel joins per transport enables DoS over few connections
0.11.0 - 1.5.14 and 1.6.0-rc.0 - 1.6.16 and 1.7.0-rc.0 - 1.7.23 and 1.8.0-rc.0 - 1.8.8 GHSA-6983-jfq8-485w
0.11.0 - 1.5.14 and 1.6.0-rc.0 - 1.6.16 and 1.7.0-rc.0 - 1.7.23 and 1.8.0-rc.0 - 1.8.8 GHSA-6983-jfq8-485w
Medium Risk
2 months ago
Phoenix: Presence keys colliding with `Object.prototype` members break existence checks
1.2.0-rc.0 - 1.5.14 and 1.6.0-rc.0 - 1.6.16 and 1.7.0-rc.0 - 1.7.23 and 1.8.0-rc.0 - 1.8.8 GHSA-63mc-hw7g-86rr
1.2.0-rc.0 - 1.5.14 and 1.6.0-rc.0 - 1.6.16 and 1.7.0-rc.0 - 1.7.23 and 1.8.0-rc.0 - 1.8.8 GHSA-63mc-hw7g-86rr
Unknown
4 months ago
Phoenix JavaScript presence client crashes on presence keys colliding with Object.prototype members in Presence.syncState/syncDiff
1.2.0-rc.0 - 1.5.14 and 1.6.0-rc.0 - 1.6.16 and 1.7.0-rc.0 - 1.7.23 and 1.8.0-rc.0 - 1.8.8 EEF-CVE-2026-56812
1.2.0-rc.0 - 1.5.14 and 1.6.0-rc.0 - 1.6.16 and 1.7.0-rc.0 - 1.7.23 and 1.8.0-rc.0 - 1.8.8 EEF-CVE-2026-56812
Unknown
4 months ago
Phoenix transports do not limit channel joins per connection, enabling process-exhaustion denial of service
0.11.0 - 1.5.14 and 1.6.0-rc.0 - 1.6.16 and 1.7.0-rc.0 - 1.7.23 and 1.8.0-rc.0 - 1.8.8 EEF-CVE-2026-56811
0.11.0 - 1.5.14 and 1.6.0-rc.0 - 1.6.16 and 1.7.0-rc.0 - 1.7.23 and 1.8.0-rc.0 - 1.8.8 EEF-CVE-2026-56811
View all vulnerabilities for these packages

Impacted packages

Timeline

Published
1 day ago
November 21, 2026 at 11:09 AM UTC
Fixed (1.7.25)
1 day ago
November 20, 2026 at 03:41 PM UTC
Fixed (1.8.17)
1 day ago
November 20, 2026 at 03:44 PM UTC
Fixed (1.6.18)
1 day ago
November 20, 2026 at 04:08 PM UTC
Fixed (1.5.16)
1 day ago
November 20, 2026 at 04:13 PM UTC
Last Modified
1 day ago
November 21, 2026 at 11:26 AM UTC