Skip to content
DayZeroHub
High Not yet writtenCVSS 8.2CVE-2026-128361

CVE-2026-128361: Unsanitized presence key crashes Presence tracker

phoenixframework phoenix

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-128361: high-severity vulnerability (CVSS 8.2) in phoenixframework phoenix.

What happened

Original description from the source: 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.

Why it matters

High severity, CVSS 8.2.

Affected products and versions

phoenixframework phoenix >= 1.2.0, < 1.5.16; phoenixframework phoenix >= 1.6.0-rc.0, < 1.6.18; phoenixframework phoenix >= 1.7.0-rc.0, < 1.7.25; phoenixframework phoenix >= 1.8.0-rc.0, < 1.8.17; phoenixframework phoenix 44e7618370629df93711cd6169789fd0d8f3678e (fixed in 39c1c6bfd0c817f1223c121f61c60a25f66b76cb); phoenixframework phoenix 44e7618370629df93711cd6169789fd0d8f3678e (fixed in 6609595fb3e37f545c4ac636a369f14b0084bc3d); phoenixframework phoenix 44e7618370629df93711cd6169789fd0d8f3678e (fixed in 81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b); phoenixframework phoenix 44e7618370629df93711cd6169789fd0d8f3678e (fixed in edb702804aeab3a29543668a8be8ea61291c4b75)

ProductVersionsFixed in
phoenixframework phoenix>= 1.2.0, < 1.5.16—
phoenixframework phoenix>= 1.6.0-rc.0, < 1.6.18—
phoenixframework phoenix>= 1.7.0-rc.0, < 1.7.25—
phoenixframework phoenix>= 1.8.0-rc.0, < 1.8.17—
phoenixframework phoenix44e7618370629df93711cd6169789fd0d8f3678e39c1c6bfd0c817f1223c121f61c60a25f66b76cb
phoenixframework phoenix44e7618370629df93711cd6169789fd0d8f3678e6609595fb3e37f545c4ac636a369f14b0084bc3d
phoenixframework phoenix44e7618370629df93711cd6169789fd0d8f3678e81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b
phoenixframework phoenix44e7618370629df93711cd6169789fd0d8f3678eedb702804aeab3a29543668a8be8ea61291c4b75

Action recommended by the source

Upgrade to a fixed version: 39c1c6bfd0c817f1223c121f61c60a25f66b76cb, 6609595fb3e37f545c4ac636a369f14b0084bc3d, 81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b, edb702804aeab3a29543668a8be8ea61291c4b75.

Fixed in: 39c1c6bfd0c817f1223c121f61c60a25f66b76cb, 6609595fb3e37f545c4ac636a369f14b0084bc3d, 81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b, edb702804aeab3a29543668a8be8ea61291c4b75

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-20

Relevant change history

  1. Published

    Preliminary advisory published.