CVE-2026-56812
Phoenix JavaScript presence client crashes on presence keys colliding with Object.prototype members in Presence.syncState/syncDiff
Check your servers for CVE-2026-56812
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-56812 affects phoenix, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Improper Check for Unusual or Exceptional Conditions vulnerability in phoenixframework phoenix (Presence JavaScript client) allows an attacker with ordinary channel access to cause a persistent client-side denial of service against every viewer of a presence channel topic.
This vulnerability is associated with program files assets/js/phoenix/presence.js and program routines Presence.syncState and Presence.syncDiff.
The Phoenix JavaScript presence client checks whether a presence already exists with a bare truthiness test (state[key]) instead of an own-property check. Presence keys can be attacker-controlled, because applications track presences under a username or id supplied by the client. A user who joins a channel choosing a key that is an Object.prototype member name (__proto__, constructor, toString, hasOwnProperty, and similar) makes that lookup return JavaScript's built-in Object.prototype instead of undefined. Because the prototype is truthy, the code treats it as an existing presence and reads .metas.map(...) off it, which throws an uncaught TypeError.
The exception propagates out of the presence message handler, so the local state is never updated and onSync() never fires. Because the malicious key is tracked on the server, it is re-pushed on every presence update and keeps re-throwing, so presence sync stays broken for every viewer of that channel topic until the attacker leaves. Both syncState and syncDiff use the same unsafe existence-check pattern. The impact is limited to the affected topic and is a read-time confusion of the prototype object, not a mutation of Object.prototype (it is not prototype pollution).
This issue affects phoenix: from 1.2.0-rc.0 before 1.5.15, from 1.6.0-rc.0 before 1.6.17, from 1.7.0-rc.0 before 1.7.24, and from 1.8.0-rc.0 before 1.8.9; phoenix: from 1.2.0-rc.0 before 1.5.15, from 1.6.0-rc.0 before 1.6.17, from 1.7.0-rc.0 before 1.7.24, and from 1.8.0-rc.0 before 1.8.9.
Severity (CVSS)
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity none, availability low: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.52%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 45.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 7 Jul 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-754 Improper Check for Unusual or Exceptional Conditions
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
phoenix
package
phoenix |
affected from 1.2.0-rc.0, before 1.5.15 affected from 1.6.0-rc.0, before 1.6.17 affected from 1.7.0-rc.0, before 1.7.24 affected from 1.8.0-rc.0, before 1.8.9
Other versions: unaffected
|
|
phoenix
package
phoenix |
affected from 1.2.0-rc.0, before 1.5.15 affected from 1.6.0-rc.0, before 1.6.17 affected from 1.7.0-rc.0, before 1.7.24 affected from 1.8.0-rc.0, before 1.8.9
Other versions: unaffected
|
|
phoenix
package
phoenixframework/phoenix |
affected 2270aaf21bd02c6a6a1022820564efb605a97655 and later (unaffected from 7f7b971c1ea0994e3fbd1c11ddb05e780bd38ad8, unaffected from 89a1c4be161e436241e12b2378a719904b9bd96f, unaffected from b90b22521465ece00eb5a19d5aa2b9465b209c85, unaffected from beffc4da1e787e572121f68902c63daf4fe7d9c2)
Other versions: unaffected
|
Is my server affected?
Find the installed version of phoenix and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i phoenix
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-56812 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-56812RHEL, Rocky, Alma, Fedora
rpm -q phoenix
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-56812Alpine
apk list --installed | grep -i phoenixWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-56812
trivy image --scanners vuln IMAGE | grep CVE-2026-56812
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- Fix commit 7f7b971 in phoenixframework/phoenix github.com · patch
- Fix commit 89a1c4b in phoenixframework/phoenix github.com · patch
- Fix commit b90b225 in phoenixframework/phoenix github.com · patch
- Fix commit beffc4d in phoenixframework/phoenix github.com · patch
Exploits and proof of concept
- https://github.com/phoenixframework/phoenix/security/advisories/GHSA-63mc-hw7g-86rr github.com · vendor advisory, related, exploit
Other references
- EEF CNA record for CVE-2026-56812 cna.erlef.org · related
- OSV record EEF-CVE-2026-56812 osv.dev · related
- Introducing commit 2270aaf in phoenixframework/phoenix github.com · related
Source: the record CVE-2026-56812 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse