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

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v4.0, 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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.60% (percentile 43, 2026-11-28)
- **CWE:** CWE-20
- **Published:** 2026-11-21T11:09:51.800Z
- **Modified:** 2026-11-24T04:38:01.753Z

## Who should check

- Anyone running phoenixframework phoenix \>= 1.2.0, \< 1.5.16; \>= 1.6.0-rc.0, \< 1.6.18; \>= 1.7.0-rc.0, \< 1.7.25; \>= 1.8.0-rc.0, \< 1.8.17
- Anyone running phoenixframework phoenix \>= 44e7618370629df93711cd6169789fd0d8f3678e, \< \*

## 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.

## Affected and fixed versions

- phoenixframework phoenix: \>= 1.2.0, \< 1.5.16; \>= 1.6.0-rc.0, \< 1.6.18; \>= 1.7.0-rc.0, \< 1.7.25; \>= 1.8.0-rc.0, \< 1.8.17 (cvelist)
- phoenixframework phoenix: \>= 44e7618370629df93711cd6169789fd0d8f3678e, \< \* (cvelist)

## Mitigation

- Upgrade phoenix to 1.8.17 or later.
- Vendor workaround: Validate every presence key before passing it to track/3,4, untrack/2,3 or update/3,4, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:
- 
- def join("room:" \<\> \_, %{"name" =\> name}, socket) when is\_binary(name) do
-   send(self(), {:after\_join, name})
-   {:ok, socket}
- end
- 
- A fetch/2 callback must also not raise on any tracked key.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-128361. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-128361.md
Affected: phoenixframework phoenix >= 1.2.0, < 1.5.16; >= 1.6.0-rc.0, < 1.6.18; >= 1.7.0-rc.0, < 1.7.25; >= 1.8.0-rc.0, < 1.8.17; phoenixframework phoenix >= 44e7618370629df93711cd6169789fd0d8f3678e, < *
Fixed in: phoenixframework phoenix 1.5.16, phoenixframework phoenix 1.6.18, phoenixframework phoenix 1.7.25, phoenixframework phoenix 1.8.17

Steps:
1. Search this machine and project for phoenixframework phoenix: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-128361 being exploited?

There is no confirmed exploitation: CVE-2026-128361 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.60% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-128361?

High: CVSS 8.2 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-128361?

phoenixframework phoenix \>= 1.2.0, \< 1.5.16; \>= 1.6.0-rc.0, \< 1.6.18; \>= 1.7.0-rc.0, \< 1.7.25; \>= 1.8.0-rc.0, \< 1.8.17; phoenixframework phoenix \>= 44e7618370629df93711cd6169789fd0d8f3678e, \< \*.

### Is there a fix for CVE-2026-128361?

Yes. Fixed in phoenixframework phoenix 1.5.16, phoenixframework phoenix 1.6.18, phoenixframework phoenix 1.7.25, phoenixframework phoenix 1.8.17. Upgrade phoenix to 1.8.17 or later. Vendor workaround: Validate every presence key before passing it to track/3,4, untrack/2,3 or update/3,4, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:  def join("room:" \<\> \_, %{"name" =\> name}, socket) when is\_binary(name) do   send(self(), {:after\_join, name})   {:ok, socket} end  A fetch/2 callback must also not raise on any tracked key.

### How do I check if I'm affected by CVE-2026-128361?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr>
- patch: <https://github.com/phoenixframework/phoenix/commit/44e7618370629df93711cd6169789fd0d8f3678e>
- patch: <https://github.com/phoenixframework/phoenix/commit/39c1c6bfd0c817f1223c121f61c60a25f66b76cb>
- patch: <https://github.com/phoenixframework/phoenix/commit/6609595fb3e37f545c4ac636a369f14b0084bc3d>
- patch: <https://github.com/phoenixframework/phoenix/commit/81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b>
- patch: <https://github.com/phoenixframework/phoenix/commit/edb702804aeab3a29543668a8be8ea61291c4b75>
- other: <https://cna.erlef.org/cves/CVE-2026-128361.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-128361>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-128361>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-128361> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-128361>
