Unsanitized presence key crashes Presence tracker
- CVE-2026-128361
- EUVD-2026-132106
Description
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.
Text from the CVE.org record.
Recommendation
phoenixframework phoenix
- If you run 1.8.xupdate to 1.8.17 or laterPatch update: breaking changes are unlikely
- If you run 1.7.xupdate to 1.7.25 or laterPatch update: breaking changes are unlikely
- If you run 1.6.xupdate to 1.6.18 or laterPatch update: breaking changes are unlikely
- If you run a version from 1.2.0 to before 1.5.16update to 1.5.16 or laterMinor version change: check the release notes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
phoenixframework phoenix
Affected versions Fixed in from 1.8.0-rc.0 to before 1.8.17 1.8.17 from 1.7.0-rc.0 to before 1.7.25 1.7.25 from 1.6.0-rc.0 to before 1.6.18 1.6.18 from 1.2.0 to before 1.5.16 1.5.16
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.