Home › Vulnerabilities

Phoenix framework presence and channel broadcast denial of service Flaw CVE-2026-128361: Update Now

Published November 21, 2026 · Last updated November 21, 2026

CVE Patch

On November 20, 2026, the maintainers of Phoenix, the most popular web framework for the Elixir programming language, released security updates for two flaws that let an outsider knock parts of a Phoenix application offline. Both are tracked as CVEs: CVE-2026-128361 affects Phoenix.Presence, and CVE-2026-129344 affects how channel broadcasts are encoded. Each carries a score of 8.2 out of 10, High. The fix is to upgrade to Phoenix 1.8.17, 1.7.25, 1.6.18 or 1.5.16, depending on the release line you use.

Neither flaw lets an attacker read data or run code. Both are denial-of-service issues, meaning they disrupt service for other users. Neither is in the U.S. Cybersecurity and Infrastructure Security Agency's (CISA) Known Exploited Vulnerabilities catalog, and the advisories do not report any attacks.

Why Phoenix matters

Phoenix powers real-time web applications, including chat, dashboards and collaborative tools, through features called channels and LiveView. The Hex package registry shows more than 160 million total downloads of the phoenix package. That figure comes from Hex; the description of typical uses is general background.

CVE-2026-128361: a bad presence key crashes the Presence tracker

Phoenix.Presence keeps track of who is connected to a topic, for example which users are in a chat room. The CVE record's title sums it up: "Unsanitized presence key crashes Presence tracker." According to the GitHub advisory, a join that supplies something other than text as the key, such as a JSON object, crashes the tracker, killing every tracked channel and LiveView process and wiping presence data.

The CVE record explains why. The tracking functions accept any value as the key, but the key is only converted to text later, when presences are grouped for listing or for broadcasting changes. A map at that point raises an error. From release 1.7.0, that step runs in a task linked to the tracker shard, so the shard itself stops. The advisory adds: "Repeated joins take down the application supervisor."

The record classifies the weakness as CWE-20, improper input validation. It affects applications that use Presence with keys taken directly from client input, or with a fetch callback that can fail on an unexpected key. The attacker only needs to be able to join a channel. Affected versions run from 1.2.0 up to the fixed releases.

CVE-2026-129344: an old serializer breaks binary broadcasts

Phoenix lets each client pick a message format, called a serializer, when it connects. The record says that if an application broadcasts binary payloads on a topic, any client that connects without a version parameter, or with version 1.0.0, and joins that topic "makes those broadcasts fail." The older format cannot encode binary data, and the error is not caught inside the loop that delivers messages.

As a result, each binary broadcast on that topic crashes the sending process and skips every subscriber after the attacker. On clusters, broadcasts from other servers run inside a shared worker. Its repeated crashes restart the messaging supervisor and empty that server's list of subscriptions, while sockets stay connected. In the advisory's words, "in clustered deployments the effect spreads node-wide." The record classifies it as CWE-248, an uncaught exception, in the Phoenix.Channel.Server and Phoenix.Socket.V1.JSONSerializer modules. The release notes describe it this way: "Sending a channel message that cannot be serialized can lead to a denial of service for all clients on a shared topic." Affected versions start at 1.5.7.

Scores and credits

Both scores come from the Erlang Ecosystem Foundation, the CNA (the organization that assigns these CVE numbers), using CVSS 4.0 with the vector AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N. That means a network attack with low complexity, no privileges and no user interaction, but only under certain conditions, and with a high impact on availability alone. The National Vulnerability Database has not yet published its own score. The records credit Peter Ullrich with finding and reporting both flaws, Steffen Deusch with the fixes, and José Valim with reviewing them.

How to fix it

Who should act: developers and operators of Phoenix applications, and software vendors that ship products built on Phoenix. For the broadcast flaw, the advisory says: "Users are recommended to upgrade immediately."

Release lineFixed version
1.8.x1.8.17
1.7.x1.7.25
1.6.x1.6.18
1.5.x1.5.16
  • Upgrade Phoenix in your project's dependencies to the fixed version for your line, then rebuild and redeploy. The 1.8.17 release notes list both CVEs under security fixes.
  • If you cannot upgrade yet, validate presence keys. The official workaround is to make sure only strings reach the presence tracking, untracking and update functions, rejecting a join whose key is not text, and to make sure the fetch callback never fails on a tracked key.
  • Refuse the old serializer. The second workaround is to list only the version 2 JSON serializer for both websocket and long-polling transports on each socket. Clients that connect without a version parameter, or with version 1.0.0, are then refused.
  • Check your build. General advice: after deploying, confirm in your lock file that the phoenix package resolved to the fixed version.
  • Find exposed features. Also general advice: search your code for places that track presence with values from join parameters, and for binary broadcasts on topics that untrusted visitors can join. Those are the configurations the advisories describe as exposed.
  • Watch for crash loops. As a further general step, alert on repeated restarts of channel, presence or PubSub processes in your logs, since that pattern matches what an attack would produce.

Timeline

  • November 20, 2026, 10:39 AM ET: Phoenix 1.8.17 is published on GitHub.
  • November 20, 2026, 11:03 AM ET: The Phoenix maintainers publish both GitHub security advisories.
  • November 21, 2026: The two CVE records are published.

Sources

Sources

General education only, not security advice. Facts checked against the sources above on the date shown.