Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. phoenix
  4. ›
  5. CVE-2026-56812

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

September 3, 2026

The Phoenix JavaScript presence client (assets/js/phoenix/presence.js) tests whether a presence already exists using a bare truthiness check (state[key]) rather than an own-property check. Because applications commonly track presences under a client-supplied username or id, the presence key can be attacker-controlled. A user who joins a channel and picks a key that names an Object.prototype member (__proto__, constructor, toString, hasOwnProperty, and similar) makes the lookup return the inherited Object.prototype object instead of undefined, which is truthy. The code then reads .metas.map(...) off it and throws an uncaught TypeError, breaking presence sync for every viewer of that channel topic. Any authenticated channel participant can trigger it.

References

  • cna.erlef.org/cves/CVE-2026-56812.html
  • github.com/advisories/GHSA-63mc-hw7g-86rr
  • github.com/phoenixframework/phoenix/commit/7f7b971c1ea0994e3fbd1c11ddb05e780bd38ad8
  • github.com/phoenixframework/phoenix/commit/89a1c4be161e436241e12b2378a719904b9bd96f
  • github.com/phoenixframework/phoenix/commit/b90b22521465ece00eb5a19d5aa2b9465b209c85
  • github.com/phoenixframework/phoenix/commit/beffc4da1e787e572121f68902c63daf4fe7d9c2
  • github.com/phoenixframework/phoenix/security/advisories/GHSA-63mc-hw7g-86rr
  • nvd.nist.gov/vuln/detail/CVE-2026-56812
  • osv.dev/vulnerability/EEF-CVE-2026-56812

Code Behaviors & Features

Detect and mitigate CVE-2026-56812 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.2.0-rc.0 before 1.5.15, all versions starting from 1.6.0-rc.0 before 1.6.17, all versions starting from 1.7.0-rc.0 before 1.7.24, all versions starting from 1.8.0-rc.0 before 1.8.9

Fixed versions

  • 1.5.15
  • 1.6.17
  • 1.7.24
  • 1.8.9

Solution

Upgrade to versions 1.5.15, 1.6.17, 1.7.24, 1.8.9 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-754: Improper Check for Unusual or Exceptional Conditions

Source file

npm/phoenix/CVE-2026-56812.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:20:38 +0000.