Summary
CVE-2026-128361 is an improper input validation vulnerability (CWE-20) in the Phoenix web framework for Elixir, in the Phoenix.Presence module. An attacker who can join a channel can cause a denial of service by supplying a non-string presence key. The CNA rates it High (CVSS 8.2).
Technical details
- Root cause: the
track/3,4function accepts any term as a presence key. The key is converted to a string only later, inPhoenix.Presence.group/1, which raisesProtocol.UndefinedErrorfor non-string values such as maps. - Trigger conditions: the application passes a client-influenced value as the presence key to
Presence.track, and an attacker joins a channel with a non-string value. Applications whose presence keys are not client-controlled are not reachable this way. - Attack vector: network, through a channel join. The advisory describes the attacker as authenticated, meaning one who can join a channel.
- Impact: denial of service. Public reporting indicates the crash can take down the Presence tracker shard and discard its state, and repeated joins can take down the application supervisor.
Affected software
- Phoenix 1.2.0 up to, but not including, 1.5.16
- Phoenix 1.6.0-rc.0 up to, but not including, 1.6.18
- Phoenix 1.7.0-rc.0 up to, but not including, 1.7.25
- Phoenix 1.8.0-rc.0 up to, but not including, 1.8.17
Severity
CVSS v4.0 base score 8.2 (High), as published by the CNA: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N. No CVSS v3.1 vector was found in the primary record.
Mitigation and recommended actions
- Immediate: upgrade Phoenix to 1.5.16, 1.6.18, 1.7.25 or 1.8.17 (or later, depending on your release line). Phoenix 1.8.17 also contains a fix for a separate issue, CVE-2026-129344.
- If you cannot patch immediately: validate presence keys before calling the tracking functions. For example, reject a join whose value is not a binary (such as with an
is_binary/1guard), or convert the value to a string explicitly. Also make surefetch/2callbacks handle every tracked key type without raising.

