Non-string presence key crashes Phoenix Presence tracker
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Phoenix versions 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 accept any term as a presence key in Phoenix.Presence.track/3,4 without validating it. The key is converted to a string only later, so a non-string key such as a JSON object from a join payload raises an error when presences are listed or diffs are broadcast. An attacker who can join a channel can crash the tracker shard and every channel and LiveView process tracked on it, causing a denial of service (CWE-20).
Written with Claude Haiku 5.5 from the sources below · 2026-11-21
Description from the CNA
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 now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| phoenixframework | phoenix | 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 | 1.5.16, 1.6.18, 1.7.25, 1.8.17 | Patch available | CNA |
- phoenix Vendorphoenixframework 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 Patch available CNA
CPE names CNA · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* | — | — | phoenixframework |
- cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* Versions — — ·phoenixframework
Remediation
Upgrade phoenix to 1.5.16, 1.6.18, 1.7.25, or 1.8.17, depending on the release line in use. CVSS 4.0 base score 8.2 (HIGH).
Written with Claude Haiku 5.5 from the sources below · 2026-11-21
- Fix · CNA phoenix (phoenixframework) Fixed in 1.5.16, 1.6.18, 1.7.25, 1.8.17
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
phoenixframework phoenix 1.5.16, 1.6.18 and 2 more versions
2 records Highest priority Priority LOW 2 LOW
Other records, highest priority first
- TI-2026-96205 Uncaught exception in Phoenix lets clients crash binary broadcastsPriority LOW 37
Timeline
- 2026-11-21 Threatist record created from CVE-2026-128361
- 2026-11-23 CISA SSVC decision points changed
References
Patch 4
More phoenixframework vulnerabilities
- TI-2026-40965 Improper check for unusual conditions in phoenixframework phoenix CVSS 4.0MEDIUM 6.3
- TI-2026-41931 Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via <.link> CVSS 4.0MEDIUM 5.1
- TI-2026-40964 Phoenix transports do not limit channel joins per connection, enabling process-exhaustion denial of service CVSS 4.0HIGH 8.7
- TI-2026-46420 Open redirect in Phoenix.LiveView.validate_local_url!/2 via ASCII tab, LF and CR CVSS 4.0LOW 2.1
- TI-2026-25181 Long-poll NDJSON body splitting causes unbounded memory allocation in Phoenix CVSS 4.0HIGH 8.7
- TI-2022-20955 socket/transport.ex in Phoenix before 1.6.14 mishandles check_origin wildcarding. CVSS 3.1HIGH 7.5
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences