CVE-2026-128361: Unsanitized presence key crashes Presence tracker
Published 2026-11-21 · Updated 2026-11-25 · Also known as EEF-CVE-2026-128361, GHSA-pvfx-rx4x-phrr
Summary
An improper input validation vulnerability in Phoenix.Presence allows unauthenticated attackers to cause a denial of service by supplying non-string presence keys. Engineering teams using Phoenix should upgrade to the fixed package versions.
Who is affected
Deployments using Phoenix.Presence where presence keys or fetch callbacks accept client-controlled input are affected. An attacker joining a channel with an unexpected key type can trigger a Protocol.UndefinedError or FunctionClauseError, crashing shard processes, wiping presence states, and potentially exhausting supervisor restart intensity to crash the entire application.
Exploitability
The vulnerability is remotely exploitable over a network with low attack complexity and requires partial privileges or private/public interaction depending on channel setup, carrying a high availability impact. The EPSS score is 0.006 and it is not present in the CISA KEV list.
Remediation
- Upgrade the Hex phoenix package to version 1.5.16, 1.6.18, 1.7.25, 1.8.17, or later depending on your branch.
- Validate every presence key before passing it to track/3,4, untrack/2,3 or update/3,4 to ensure only strings reach the tracker.
- Ensure fetch/2 callbacks do not raise exceptions on any tracked key.
How to check your project
- Check mix.exs and mix.lock for the phoenix dependency version to verify if it falls within the affected ranges: 1.2.0 up to 1.5.15, 1.6.0-rc.0 up to 1.6.17, 1.7.0-rc.0 up to 1.7.24, or 1.8.0-rc.0 up to 1.8.16.
- Review channel join implementations and Phoenix.Presence usage to identify if client-provided input is passed directly as presence keys without prior binary validation.
Automated analysis of the published advisory data, generated 2026-11-25. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Hex | phoenix |
>= 1.2.0, < 1.5.16 | 1.5.16 | mix deps.update phoenix |
| Hex | phoenix |
>= 1.6.0-rc.0, < 1.6.18 | 1.6.18 | mix deps.update phoenix |
| Hex | phoenix |
>= 1.7.0-rc.0, < 1.7.25 | 1.7.25 | mix deps.update phoenix |
| Hex | phoenix |
>= 1.8.0-rc.0, < 1.8.17 | 1.8.17 | mix deps.update phoenix |
CVSS 4.0 vector
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
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | None |
| Integrity (vulnerable system) | None |
| Availability (vulnerable system) | High |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
What causes the crash in Phoenix.Presence?
The track/3,4 function accepts any term as a presence key, which later causes a Protocol.UndefinedError or FunctionClauseError when converted or processed if it is a non-string object like a map.
Are all Phoenix applications affected by CVE-2026-128361?
No. Applications are only affected if they use Phoenix.Presence, track presences under keys influenced by client input, or define a fetch/2 callback that can raise an error on unexpected tracked keys.
What are the fixed versions for Phoenix?
The fixed versions are 1.5.16, 1.6.18, 1.7.25, and 1.8.17.
Original advisory description
References
- ADVISORY https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr
- WEB https://cna.erlef.org/cves/CVE-2026-128361.html
- WEB https://github.com/phoenixframework/phoenix/commit/44e7618370629df93711cd6169789fd0d8f3678e
- FIX https://github.com/phoenixframework/phoenix/commit/39c1c6bfd0c817f1223c121f61c60a25f66b76cb
- FIX https://github.com/phoenixframework/phoenix/commit/6609595fb3e37f545c4ac636a369f14b0084bc3d
- FIX https://github.com/phoenixframework/phoenix/commit/81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b
- FIX https://github.com/phoenixframework/phoenix/commit/edb702804aeab3a29543668a8be8ea61291c4b75
- PACKAGE https://hex.pm/packages/phoenix
Source records: EEF-CVE-2026-128361 (OSV.dev) · EPSS by FIRST, 2026-11-25.