CVE-2026-56812 Phoenix: Presence keys colliding with `Object.prototype` members break existence checks

Medium 6.3 Published Updated

An attacker can crash the Phoenix JavaScript presence client for all users by using keys that collide with Object.prototype members, causing persistent denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-56812?

CVE-2026-56812 is a medium-severity denial of service vulnerability in phoenixframework phoenix, published on 7 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-754

Which versions are affected by CVE-2026-56812?

18 open source packages ship an affected version, including phoenix. It affects 1 product.

PackageAffectedFixed in
phoenix HexFrom 1.2.0-rc.01.5.15, 1.6.17, 1.7.24, 1.8.9
phoenix HexFrom 1.2.0-rc.01.5.15
phoenix HexFrom 1.2.0-rc.01.5.15
phoenix HexFrom 1.6.0-rc.01.6.17
phoenix HexFrom 1.6.0-rc.01.6.17
phoenix HexFrom 1.7.0-rc.01.7.24
12 more packages
phoenix HexFrom 1.7.0-rc.01.7.24
phoenix HexFrom 1.8.0-rc.01.8.9
phoenix HexFrom 1.8.0-rc.01.8.9
phoenix npmFrom 1.2.0-rc.01.5.15, 1.6.17, 1.7.24, 1.8.9
phoenix npmFrom 1.2.0-rc.01.5.15
phoenix npmFrom 1.2.0-rc.01.5.15
phoenix npmFrom 1.6.0-rc.01.6.17
phoenix npmFrom 1.6.0-rc.01.6.17
phoenix npmFrom 1.7.0-rc.01.7.24
phoenix npmFrom 1.7.0-rc.01.7.24
phoenix npmFrom 1.8.0-rc.01.8.9
phoenix npmFrom 1.8.0-rc.01.8.9

Products include Phoenixframework Phoenix.

How do I fix CVE-2026-56812?

Upgrade phoenix to a fixed version for your release line: 1.5.15, 1.6.17, 1.7.24 or 1.8.9.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-56812 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-56812 exists.

Sources

Also known as EEF-CVE-2026-56812, GHSA-63mc-hw7g-86rr.

Is CVE-2026-56812 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free