CVE-2026-128361Unsanitized presence key crashes Presence tracker
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- phoenixframework phoenix: affected: 1.2.0 to before 1.5.16, 1.6.0-rc.0 to before 1.6.18, 1.7.0-rc.0 to before 1.7.25, 1.8.0-rc.0 to before 1.8.17; fixed in
1.5.16,1.6.18,1.7.25,1.8.17 - phoenixframework phoenix: affected: 44e7618370629df93711cd6169789fd0d8f3678e and later; fixed in
39c1c6bfd0c817f1223c121f61c60a25f66b76cb,6609595fb3e37f545c4ac636a369f14b0084bc3d,81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b
Workaround: 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.
Vendor advisories:
- https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr (vendor-advisory)
- https://github.com/phoenixframework/phoenix/commit/39c1c6bfd0c817f1223c121f61c60a25f66b76… (patch)
- https://github.com/phoenixframework/phoenix/commit/6609595fb3e37f545c4ac636a369f14b0084bc… (patch)
- https://github.com/phoenixframework/phoenix/commit/81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a… (patch)
- https://github.com/phoenixframework/phoenix/commit/edb702804aeab3a29543668a8be8ea61291c4b… (patch)
References
- https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr
- https://cna.erlef.org/cves/CVE-2026-128361.html
- https://osv.dev/vulnerability/EEF-CVE-2026-128361
- https://github.com/phoenixframework/phoenix/commit/44e7618370629df93711cd6169789fd0d8f3678e
- https://github.com/phoenixframework/phoenix/commit/39c1c6bfd0c817f1223c121f61c60a25f66b76cb
- https://github.com/phoenixframework/phoenix/commit/6609595fb3e37f545c4ac636a369f14b0084bc3d
- https://github.com/phoenixframework/phoenix/commit/81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b
- https://github.com/phoenixframework/phoenix/commit/edb702804aeab3a29543668a8be8ea61291c4b75
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.