{"id":"CVE-2026-56812","published":"2026-07-07T15:22:46Z","modified":"2026-09-24T21:29:18Z","title":"Phoenix JavaScript presence client crashes on presence keys colliding with Object.prototype members in…","vendor":"phoenixframework","product":"phoenix","tier":"tail","description":{"text":"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.\n\nThis vulnerability is associated with program files assets/js/phoenix/presence.js and program routines Presence.syncState and Presence.syncDiff.\n\nThe 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.\n\nThe 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).\n\nThis 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00796,"percentile":0.53077,"provenance":"source"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"}],"references":[{"url":"https://github.com/phoenixframework/phoenix/security/advisories/GHSA-63mc-hw7g-86rr","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-56812.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-56812","tags":["related"]},{"url":"https://github.com/phoenixframework/phoenix/commit/2270aaf21bd02c6a6a1022820564efb605a97655","tags":["related"]},{"url":"https://github.com/phoenixframework/phoenix/commit/7f7b971c1ea0994e3fbd1c11ddb05e780bd38ad8","tags":["patch"]},{"url":"https://github.com/phoenixframework/phoenix/commit/89a1c4be161e436241e12b2378a719904b9bd96f","tags":["patch"]},{"url":"https://github.com/phoenixframework/phoenix/commit/b90b22521465ece00eb5a19d5aa2b9465b209c85","tags":["patch"]},{"url":"https://github.com/phoenixframework/phoenix/commit/beffc4da1e787e572121f68902c63daf4fe7d9c2","tags":["patch"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":10.62},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"phoenixframework","affectedVersions":[{"vendor":"phoenixframework","product":"phoenix","versions":[">= 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"]},{"vendor":"phoenixframework","product":"phoenix","versions":[">= 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"]},{"vendor":"phoenixframework","product":"phoenix","versions":[">= 2270aaf21bd02c6a6a1022820564efb605a97655"]}],"fixedVersions":[{"vendor":"phoenixframework","product":"phoenix","versions":["7f7b971c1ea0994e3fbd1c11ddb05e780bd38ad8","89a1c4be161e436241e12b2378a719904b9bd96f","b90b22521465ece00eb5a19d5aa2b9465b209c85","beffc4da1e787e572121f68902c63daf4fe7d9c2"]}],"workarounds":{"items":["Reject or sanitize presence keys that collide with JavaScript Object.prototype member names (for example __proto__, constructor, prototype, toString, hasOwnProperty) before calling Phoenix.Presence.track, or namespace every presence key with a fixed prefix so that no key can equal a prototype member name. Alternatively, derive presence keys from server-controlled, validated values instead of raw user input."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-153","name":"Input Data Manipulation"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-07T16:11:03.353715Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"phoenix","vulnerableRanges":[">=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"],"patched":["1.5.15","1.6.17","1.7.24","1.8.9"],"from":["GHSA-63mc-hw7g-86rr","EEF-CVE-2026-56812"],"provenance":"source"},{"ecosystem":"npm","package":"phoenix","vulnerableRanges":[">=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"],"patched":["1.5.15","1.6.17","1.7.24","1.8.9"],"from":["GHSA-63mc-hw7g-86rr","EEF-CVE-2026-56812"],"provenance":"source"}],"summary":{"text":"The Phoenix JavaScript presence client (assets/js/phoenix/presence.js, in the syncState and syncDiff routines) uses a bare truthiness check on presence keys rather than an own-property check, so a key matching an Object.prototype member name such as __proto__ or constructor is mistaken for an existing presence and throws an uncaught TypeError. An attacker with ordinary channel access, requiring no user interaction, can choose such a key when joining a channel to break presence sync for every viewer of that channel topic until they leave.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:51Z"},"euvd":{"id":"EUVD-2026-42050","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-42975","published":"2022-10-17","fixed":"1.6.14","kev":false},{"cve":"CVE-2026-32689","published":"2026-05-05","fixed":"1.8.6","kev":false,"link":{"from":"CVE-2026-32689","to":"CVE-2026-56812","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Hex:phoenix","fromFixed":"1.7.22","toFixed":"1.7.24","daysApart":63}]}},{"cve":"CVE-2026-56811","published":"2026-07-07","fixed":"1.8.9","kev":false},{"cve":"CVE-2026-56812","published":"2026-07-07","fixed":"1.8.9","kev":false}],"package":"Hex:phoenix"}}