CVE-2026-56812 Phoenix JavaScript presence client crashes on presence keys colliding with Object.prototype members in Presence.syncState/syncDiff
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
4 packages: 4 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| hex phoenix(Hex) | = 1.2.0; = 1.2.0-rc.0; = 1.2.0-rc.1; = 1.2.1 +118 more | 1.5.15, 1.6.17, 1.7.24, 1.8.9 | Fixed |
| npm phoenix(npm) | >= 1.2.0-rc.0, < 1.5.15; >= 1.6.0-rc.0, < 1.6.17; >= 1.7.0-rc.0, < 1.7.24; >= 1.8.0-rc.0, < 1.8.9 | 1.5.15, 1.6.17, 1.7.24, 1.8.9 | Fixed |
| phoenixframework phoenix | >= 1.2.0, < 1.5.15; >= 1.2.0-rc.0, < 1.5.15; >= 1.6.0, < 1.6.17; >= 1.6.0-rc.0, < 1.6.17 +5 more | 1.5.15, 1.6.17, 1.7.24, 1.8.9, 7f7b971c1ea0994e3fbd1c11ddb05e780bd38ad8 | Fixed |
| phoenixframework phoenix(npm) | >= 1.2.0-rc.0, < 1.5.15; >= 1.6.0-rc.0, < 1.6.17; >= 1.7.0-rc.0, < 1.7.24; >= 1.8.0-rc.0, < 1.8.9 | 1.5.15, 1.6.17, 1.7.24, 1.8.9 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| phoenixframework phoenix | >= 1.2.0-rc.0, < 1.5.15 | 1.5.15 |
| phoenixframework phoenix | >= 1.6.0-rc.0, < 1.6.17 | 1.6.17 |
| phoenixframework phoenix | >= 1.7.0-rc.0, < 1.7.24 | 1.7.24 |
| phoenixframework phoenix | >= 1.8.0-rc.0, < 1.8.9 | 1.8.9 |
| phoenixframework phoenix(npm) | >= 1.2.0-rc.0, < 1.5.15 | 1.5.15 |
| phoenixframework phoenix(npm) | >= 1.6.0-rc.0, < 1.6.17 | 1.6.17 |
| phoenixframework phoenix(npm) | >= 1.7.0-rc.0, < 1.7.24 | 1.7.24 |
| phoenixframework phoenix(npm) | >= 1.8.0-rc.0, < 1.8.9 | 1.8.9 |
| phoenixframework phoenix | >= 2270aaf21bd02c6a6a1022820564efb605a97655, < 7f7b971c1ea0994e3fbd1c11ddb05e780bd38ad8 | 7f7b971c1ea0994e3fbd1c11ddb05e780bd38ad8 |
| hex phoenix(Hex) | >= 1.2.0-rc.0, < 1.5.15 | 1.5.15 |
| hex phoenix(Hex) | >= 1.6.0-rc.0, < 1.6.17 | 1.6.17 |
| hex phoenix(Hex) | >= 1.7.0-rc.0, < 1.7.24 | 1.7.24 |
| hex phoenix(Hex) | >= 1.8.0-rc.0, < 1.8.9 | 1.8.9 |
| npm phoenix(npm) | >= 1.2.0-rc.0, < 1.5.15 | 1.5.15 |
| npm phoenix(npm) | >= 1.6.0-rc.0, < 1.6.17 | 1.6.17 |
| npm phoenix(npm) | >= 1.7.0-rc.0, < 1.7.24 | 1.7.24 |
| npm phoenix(npm) | >= 1.8.0-rc.0, < 1.8.9 | 1.8.9 |
| phoenixframework phoenix | >= 1.2.0, < 1.5.15 | 1.5.15 |
| phoenixframework phoenix | >= 1.6.0, < 1.6.17 | 1.6.17 |
| phoenixframework phoenix | >= 1.7.0, < 1.7.24 | 1.7.24 |
| phoenixframework phoenix | >= 1.8.0, < 1.8.9 | 1.8.9 |
| hex phoenix(Hex) | = 1.2.0 | No fix listed |
| hex phoenix(Hex) | = 1.2.0-rc.0 | No fix listed |
| hex phoenix(Hex) | = 1.2.0-rc.1 | No fix listed |
| hex phoenix(Hex) | = 1.2.1 | No fix listed |
Show 114 more
| Product | Affected versions | Fixed in |
|---|---|---|
| hex phoenix(Hex) | = 1.2.2 | No fix listed |
| hex phoenix(Hex) | = 1.2.3 | No fix listed |
| hex phoenix(Hex) | = 1.2.4 | No fix listed |
| hex phoenix(Hex) | = 1.2.5 | No fix listed |
| hex phoenix(Hex) | = 1.3.0 | No fix listed |
| hex phoenix(Hex) | = 1.3.0-rc.0 | No fix listed |
| hex phoenix(Hex) | = 1.3.0-rc.1 | No fix listed |
| hex phoenix(Hex) | = 1.3.0-rc.2 | No fix listed |
| hex phoenix(Hex) | = 1.3.0-rc.3 | No fix listed |
| hex phoenix(Hex) | = 1.3.1 | No fix listed |
| hex phoenix(Hex) | = 1.3.2 | No fix listed |
| hex phoenix(Hex) | = 1.3.3 | No fix listed |
| hex phoenix(Hex) | = 1.3.4 | No fix listed |
| hex phoenix(Hex) | = 1.3.5 | No fix listed |
| hex phoenix(Hex) | = 1.4.0 | No fix listed |
| hex phoenix(Hex) | = 1.4.0-rc.0 | No fix listed |
| hex phoenix(Hex) | = 1.4.0-rc.1 | No fix listed |
| hex phoenix(Hex) | = 1.4.0-rc.2 | No fix listed |
| hex phoenix(Hex) | = 1.4.0-rc.3 | No fix listed |
| hex phoenix(Hex) | = 1.4.1 | No fix listed |
| hex phoenix(Hex) | = 1.4.10 | No fix listed |
| hex phoenix(Hex) | = 1.4.11 | No fix listed |
| hex phoenix(Hex) | = 1.4.12 | No fix listed |
| hex phoenix(Hex) | = 1.4.13 | No fix listed |
| hex phoenix(Hex) | = 1.4.14 | No fix listed |
| hex phoenix(Hex) | = 1.4.15 | No fix listed |
| hex phoenix(Hex) | = 1.4.16 | No fix listed |
| hex phoenix(Hex) | = 1.4.17 | No fix listed |
| hex phoenix(Hex) | = 1.4.18 | No fix listed |
| hex phoenix(Hex) | = 1.4.2 | No fix listed |
| hex phoenix(Hex) | = 1.4.3 | No fix listed |
| hex phoenix(Hex) | = 1.4.4 | No fix listed |
| hex phoenix(Hex) | = 1.4.5 | No fix listed |
| hex phoenix(Hex) | = 1.4.6 | No fix listed |
| hex phoenix(Hex) | = 1.4.7 | No fix listed |
| hex phoenix(Hex) | = 1.4.8 | No fix listed |
| hex phoenix(Hex) | = 1.4.9 | No fix listed |
| hex phoenix(Hex) | = 1.5.0 | No fix listed |
| hex phoenix(Hex) | = 1.5.0-rc.0 | No fix listed |
| hex phoenix(Hex) | = 1.5.1 | No fix listed |
| hex phoenix(Hex) | = 1.5.10 | No fix listed |
| hex phoenix(Hex) | = 1.5.11 | No fix listed |
| hex phoenix(Hex) | = 1.5.12 | No fix listed |
| hex phoenix(Hex) | = 1.5.13 | No fix listed |
| hex phoenix(Hex) | = 1.5.14 | No fix listed |
| hex phoenix(Hex) | = 1.5.2 | No fix listed |
| hex phoenix(Hex) | = 1.5.3 | No fix listed |
| hex phoenix(Hex) | = 1.5.4 | No fix listed |
| hex phoenix(Hex) | = 1.5.5 | No fix listed |
| hex phoenix(Hex) | = 1.5.6 | No fix listed |
| hex phoenix(Hex) | = 1.5.7 | No fix listed |
| hex phoenix(Hex) | = 1.5.8 | No fix listed |
| hex phoenix(Hex) | = 1.5.9 | No fix listed |
| hex phoenix(Hex) | = 1.6.0 | No fix listed |
| hex phoenix(Hex) | = 1.6.0-rc.0 | No fix listed |
| hex phoenix(Hex) | = 1.6.0-rc.1 | No fix listed |
| hex phoenix(Hex) | = 1.6.1 | No fix listed |
| hex phoenix(Hex) | = 1.6.10 | No fix listed |
| hex phoenix(Hex) | = 1.6.11 | No fix listed |
| hex phoenix(Hex) | = 1.6.12 | No fix listed |
| hex phoenix(Hex) | = 1.6.13 | No fix listed |
| hex phoenix(Hex) | = 1.6.14 | No fix listed |
| hex phoenix(Hex) | = 1.6.15 | No fix listed |
| hex phoenix(Hex) | = 1.6.16 | No fix listed |
| hex phoenix(Hex) | = 1.6.2 | No fix listed |
| hex phoenix(Hex) | = 1.6.3 | No fix listed |
| hex phoenix(Hex) | = 1.6.4 | No fix listed |
| hex phoenix(Hex) | = 1.6.5 | No fix listed |
| hex phoenix(Hex) | = 1.6.6 | No fix listed |
| hex phoenix(Hex) | = 1.6.7 | No fix listed |
| hex phoenix(Hex) | = 1.6.8 | No fix listed |
| hex phoenix(Hex) | = 1.6.9 | No fix listed |
| hex phoenix(Hex) | = 1.7.0 | No fix listed |
| hex phoenix(Hex) | = 1.7.0-rc.0 | No fix listed |
| hex phoenix(Hex) | = 1.7.0-rc.1 | No fix listed |
| hex phoenix(Hex) | = 1.7.0-rc.2 | No fix listed |
| hex phoenix(Hex) | = 1.7.0-rc.3 | No fix listed |
| hex phoenix(Hex) | = 1.7.1 | No fix listed |
| hex phoenix(Hex) | = 1.7.10 | No fix listed |
| hex phoenix(Hex) | = 1.7.11 | No fix listed |
| hex phoenix(Hex) | = 1.7.12 | No fix listed |
| hex phoenix(Hex) | = 1.7.13 | No fix listed |
| hex phoenix(Hex) | = 1.7.14 | No fix listed |
| hex phoenix(Hex) | = 1.7.15 | No fix listed |
| hex phoenix(Hex) | = 1.7.16 | No fix listed |
| hex phoenix(Hex) | = 1.7.17 | No fix listed |
| hex phoenix(Hex) | = 1.7.18 | No fix listed |
| hex phoenix(Hex) | = 1.7.19 | No fix listed |
| hex phoenix(Hex) | = 1.7.2 | No fix listed |
| hex phoenix(Hex) | = 1.7.20 | No fix listed |
| hex phoenix(Hex) | = 1.7.21 | No fix listed |
| hex phoenix(Hex) | = 1.7.22 | No fix listed |
| hex phoenix(Hex) | = 1.7.23 | No fix listed |
| hex phoenix(Hex) | = 1.7.3 | No fix listed |
| hex phoenix(Hex) | = 1.7.4 | No fix listed |
| hex phoenix(Hex) | = 1.7.5 | No fix listed |
| hex phoenix(Hex) | = 1.7.6 | No fix listed |
| hex phoenix(Hex) | = 1.7.7 | No fix listed |
| hex phoenix(Hex) | = 1.7.8 | No fix listed |
| hex phoenix(Hex) | = 1.7.9 | No fix listed |
| hex phoenix(Hex) | = 1.8.0 | No fix listed |
| hex phoenix(Hex) | = 1.8.0-rc.0 | No fix listed |
| hex phoenix(Hex) | = 1.8.0-rc.1 | No fix listed |
| hex phoenix(Hex) | = 1.8.0-rc.2 | No fix listed |
| hex phoenix(Hex) | = 1.8.0-rc.3 | No fix listed |
| hex phoenix(Hex) | = 1.8.0-rc.4 | No fix listed |
| hex phoenix(Hex) | = 1.8.1 | No fix listed |
| hex phoenix(Hex) | = 1.8.2 | No fix listed |
| hex phoenix(Hex) | = 1.8.3 | No fix listed |
| hex phoenix(Hex) | = 1.8.4 | No fix listed |
| hex phoenix(Hex) | = 1.8.5 | No fix listed |
| hex phoenix(Hex) | = 1.8.6 | No fix listed |
| hex phoenix(Hex) | = 1.8.7 | No fix listed |
| hex phoenix(Hex) | = 1.8.8 | No fix listed |
References
- github.com exploit patch related vendor-advisory
- EEF CNA record for CVE-2026-56812 mitigation patch related third-party-advisory
- OSV record EEF-CVE-2026-56812 mitigation related third-party-advisory
- Introducing commit 2270aaf in phoenixframework/phoenix related
- Fix commit 7f7b971 in phoenixframework/phoenix patch
- Fix commit 89a1c4b in phoenixframework/phoenix patch
- Fix commit b90b225 in phoenixframework/phoenix patch
- Fix commit beffc4d in phoenixframework/phoenix patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- hex.pm product
- www.npmjs.com product
- github.com product
- ENISA EUVD EUVD-2026-42050 third-party-advisory