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

Status: published. Published: 2026-11-21. Updated: 2026-11-23.

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.

## Remediation

- 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. (source: CNA: EEF)
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/phoenixframework/phoenix/commit/39c1c6bfd0c817f1223c121f61c60a25f66b76cb
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/phoenixframework/phoenix/commit/6609595fb3e37f545c4ac636a369f14b0084bc3d
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/phoenixframework/phoenix/commit/81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/phoenixframework/phoenix/commit/edb702804aeab3a29543668a8be8ea61291c4b75
- fix: phoenix (erlang): GitHub reports patched versions 1.5.16. Check the advisory for the affected release branch. (source: GitHub GHSA-pvfx-rx4x-phrr) — https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr
- fix: phoenix (erlang): GitHub reports patched versions 1.6.18. Check the advisory for the affected release branch. (source: GitHub GHSA-pvfx-rx4x-phrr) — https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr
- fix: phoenix (erlang): GitHub reports patched versions 1.7.25. Check the advisory for the affected release branch. (source: GitHub GHSA-pvfx-rx4x-phrr) — https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr
- fix: phoenix (erlang): GitHub reports patched versions 1.8.17. Check the advisory for the affected release branch. (source: GitHub GHSA-pvfx-rx4x-phrr) — https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr

## Affected products and versions

- phoenixframework / phoenix (phoenix): ≥ 1.2.0; < 1.5.16 (affected, semver); ≥ 1.6.0-rc.0; < 1.6.18 (affected, semver); ≥ 1.7.0-rc.0; < 1.7.25 (affected, semver); ≥ 1.8.0-rc.0; < 1.8.17 (affected, semver). Source: CNA: EEF
- phoenixframework / phoenix (phoenixframework/phoenix): ≥ 44e7618370629df93711cd6169789fd0d8f3678e; < * (affected, git); unaffected at 39c1c6bfd0c817f1223c121f61c60a25f66b76cb; unaffected at 6609595fb3e37f545c4ac636a369f14b0084bc3d; unaffected at 81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b; unaffected at edb702804aeab3a29543668a8be8ea61291c4b75. Source: CNA: EEF
-  / phoenix (phoenix): >= 1.2.0, < 1.5.16 (affected, GitHub advisory range). Source: GitHub GHSA-pvfx-rx4x-phrr
-  / phoenix (phoenix): >= 1.6.0-rc.0, < 1.6.18 (affected, GitHub advisory range). Source: GitHub GHSA-pvfx-rx4x-phrr
-  / phoenix (phoenix): >= 1.7.0-rc.0, < 1.7.25 (affected, GitHub advisory range). Source: GitHub GHSA-pvfx-rx4x-phrr
-  / phoenix (phoenix): >= 1.8.0-rc.0, < 1.8.17 (affected, GitHub advisory range). Source: GitHub GHSA-pvfx-rx4x-phrr

## Severity and prioritization

- CVSS 4.0: 8.2 (high); 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; source: CNA: EEF

- CVSS 4.0: 8.2 (high); 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X; source: NVD: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

- CISA KEV: No listing in collected sources

- EPSS: 0.60% as of 2026-11-23; percentile 49.84%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-20

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr (CNA: EEF; vendor-advisory, related)

- https://cna.erlef.org/cves/CVE-2026-128361.html (CNA: EEF; related)

- https://osv.dev/vulnerability/EEF-CVE-2026-128361 (CNA: EEF; related)

- https://github.com/phoenixframework/phoenix/commit/44e7618370629df93711cd6169789fd0d8f3678e (CNA: EEF; related)

- https://github.com/phoenixframework/phoenix/commit/39c1c6bfd0c817f1223c121f61c60a25f66b76cb (CNA: EEF; patch)

- https://github.com/phoenixframework/phoenix/commit/6609595fb3e37f545c4ac636a369f14b0084bc3d (CNA: EEF; patch)

- https://github.com/phoenixframework/phoenix/commit/81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b (CNA: EEF; patch)

- https://github.com/phoenixframework/phoenix/commit/edb702804aeab3a29543668a8be8ea61291c4b75 (CNA: EEF; patch)

- https://cna.erlef.org/cves/CVE-2026-128361.html (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)

- https://github.com/phoenixframework/phoenix/commit/39c1c6bfd0c817f1223c121f61c60a25f66b76cb (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)

- https://github.com/phoenixframework/phoenix/commit/44e7618370629df93711cd6169789fd0d8f3678e (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)

- https://github.com/phoenixframework/phoenix/commit/6609595fb3e37f545c4ac636a369f14b0084bc3d (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)

- https://github.com/phoenixframework/phoenix/commit/81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)

- https://github.com/phoenixframework/phoenix/commit/edb702804aeab3a29543668a8be8ea61291c4b75 (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)

- https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)

- https://osv.dev/vulnerability/EEF-CVE-2026-128361 (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)

- https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr (GitHub Security Advisories; advisory)

## Provenance

- CNA: EEF: https://www.cve.org/CVERecord?id=CVE-2026-128361; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-128361; retrieved 2026-11-21; source updated 2026-11-21

- GitHub Security Advisories: https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr; retrieved 2026-11-23; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-128361; retrieved 2026-11-23; source updated Not reported

Revision: 72d2bbd4a8ff4cb159722b5a63d6fdb460bea3347fb53ed11b206dfc69e2db9f

Canonical: https://y2.dev/cve/CVE-2026-128361

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.