CVE-2026-128361: Phoenix Presence DoS Flaw
High CVSS (8.2) vulnerability; prioritize internet-facing assets.
TL;DR - CVE-2026-128361 is an improper input-validation flaw in
Phoenix.Presencethat can crash tracker processes. - Applications are at risk when an attacker can join a channel and supply a non-string presence key. - Upgrade to Phoenix 1.5.16, 1.6.18, 1.7.25, or 1.8.17, and validate keys before tracking them.
CVE-2026-128361 is a high-severity Phoenix Framework vulnerability affecting the Phoenix.Presence component. Malformed, non-string presence keys can trigger exceptions, disrupt presence tracking, and cause denial of service in vulnerable applications.
The practical impact depends on application design. A Phoenix deployment is not automatically exploitable merely because it uses Presence. An attacker must reach a channel whose join handling invokes the vulnerable tracking path and influence the presence key or the data mapped to it.
Analyst’s Take: Treat channel authorization and client-controlled presence data as the first exposure questions, not as substitutes for patching. Applications that permit the vulnerable path should upgrade and add strict key validation.
Vulnerability at a Glance
| Field | Details |
|---|---|
| CVE ID | CVE-2026-128361 |
| Component | Phoenix Framework, Phoenix.Presence |
| CWE | CWE-20, Improper Input Validation |
| CVSS | 8.2 |
| CVSS vector | Not included in the supplied NVD record; confirm the CNA or complete NVD JSON before publication |
| Attack vector | Remote, through an application channel join and Presence tracking path |
| Authentication required | Application-dependent; an attacker must be authorized to join a relevant channel |
| Patch available | Yes |
| Fixed versions | 1.5.16, 1.6.18, 1.7.25, 1.8.17 |
| CISA KEV | No |
The affected open-source package is phoenix, maintained by phoenixframework. The vulnerable component accepts arbitrary Erlang terms as presence keys and later assumes that those values can be converted to strings.
The attack requires an application path that passes attacker-influenced data into Presence tracking without validating its type. Applications using server-generated string keys may not be exposed to the same attack path, but they should still upgrade to a fixed release.
What Is CVE-2026-128361?
The root cause is insufficient type validation at the boundary of Phoenix.Presence.track/3 and track/4. These functions accept values that are not guaranteed to be string-compatible. A malicious client can provide a JSON object or another non-string value in a channel join payload if the application passes that value into Presence tracking without validation.
The invalid value is not rejected when it enters the tracking operation. It is converted later by Phoenix.Presence.group/1 through to_string/1. For unsupported terms such as maps, that conversion raises Protocol.UndefinedError.
The deferred failure means the original input may appear harmless until Presence lists tracked users, broadcasts a presence difference, or invokes the application’s fetch/2 callback.
The failure can affect more than a single client connection. The advisory describes crashes involving channels associated with the affected topic, loss of presence-diff broadcasts, termination of the Presence tracker shard, and erasure of presence state for topics handled by that shard. Tracked LiveView and channel processes may also terminate.
In Phoenix versions beginning with 1.7.0, the presence-diff operation runs in a Task.Supervisor.async task linked to the tracker shard. The supplied advisory states that Phoenix.Presence.handle_info/2 does not handle the task failure, allowing the exception to propagate and terminate the shard. Repeated failures may exhaust supervisor restart intensity and potentially bring down the application supervisor.
Who Is Affected?
The affected package is the Hex package phoenix, from the phoenixframework/phoenix project. The affected ranges are:
| Phoenix branch | Affected versions | Fixed version |
|---|---|---|
| 1.2.x | 1.2.0 through versions before 1.5.16 |
1.5.16 |
| 1.6.x | 1.6.0-rc.0 through versions before 1.6.18 |
1.6.18 |
| 1.7.x | 1.7.0-rc.0 through versions before 1.7.25 |
1.7.25 |
| 1.8.x | 1.8.0-rc.0 through versions before 1.8.17 |
1.8.17 |
Interpret these ranges in the context of the application’s resolved Phoenix dependency, not only the version declared in a high-level project manifest. Applications can inherit Phoenix through a lockfile, umbrella project, or deployment build process. Inspect the resolved dependency set in every production release.
Use mix deps.tree and the lockfile to identify the deployed version:
mix deps.tree | grep -E '(^| )phoenix '
grep -n '^ phoenix:' mix.lock
An affected version does not by itself prove exposure. Risk is highest where the application:
- Uses
Phoenix.Presence - Exposes WebSocket or channel joins to untrusted users
- Maps client-controlled join data to a Presence key
- Does not enforce a string type or stricter identifier format
Strong channel authorization and server-generated keys can reduce exposure, but upgrading remains the required remediation.
For broader application security context, review the cloud security basics glossary.
CVSS Score Breakdown
CVE-2026-128361 has a reported CVSS base score of 8.2, placing it in the high-severity category. The supplied NVD response does not include a CVSS vector string, so the precise metric values cannot be stated reliably.
The exact values for attack complexity, privileges required, user interaction, scope, confidentiality, integrity, and availability must be confirmed from the complete NVD JSON or the Erlang Ecosystem Foundation CNA record.
The technical impact described by the advisory is concentrated on availability. A malformed Presence key can trigger exceptions during normal Presence operations, crash tracker or channel processes, interrupt presence-diff broadcasts, and potentially cause supervisor failure after repeated restarts. The supplied material does not describe confidentiality or integrity compromise.
The authentication or privilege requirement is application-dependent. An attacker needs to join a channel that reaches the vulnerable Presence path, but the CVE data supplied here does not provide a definitive CVSS privileges-required value. Assess exposure using actual channel authorization rules rather than assuming that an authenticated account is always required or that an unauthenticated connection is always possible.
Exploitation Status
CVE-2026-128361 is not listed in CISA’s Known Exploited Vulnerabilities catalog as of the supplied assessment. There is no CISA date-added entry, due date, required action, or ransomware campaign flag for this CVE.
No verified in-the-wild exploitation was identified in the supplied NVD, CNA, or CISA results. No standalone public exploit repository was identified in the searched material. However, the vulnerability description provides enough information for a technically capable attacker or defender to construct a denial-of-service test by submitting a non-string presence key through an exposed channel join.
Treat the issue as remotely triggerable where the application allows attacker-controlled Presence keys. Do not interpret the absence of a public proof of concept or KEV listing as evidence that the issue is low risk.
How to Detect CVE-2026-128361
Detection should combine dependency inventory, application code review, and runtime telemetry. Search for uses of Phoenix.Presence.track/3 and track/4, then determine whether the key originates from a client-controlled join payload. Review custom fetch/2 callbacks and channel join handlers as well.
The malformed value can fail during Presence listing, difference broadcasting, or fetch processing rather than immediately at the join.
Technical Notes
Search structured logs for exception and tracker-related indicators:
grep -E \
'Protocol\\.UndefinedError|Phoenix\\.Presence\\.group|Presence.*(restart|crash)|restart intensity|LiveView|channel' \\
log/*.log
For JSON logs processed by jq, adapt the field names to the deployment’s schema:
jq -r '
select(
(.message // "" | test(
"Protocol\\.UndefinedError|Phoenix\\.Presence\\.group|restart intensity|Presence";
"i"
))
)
| [.timestamp, .level, .message] | @tsv
' production.log
A useful network-side detection approach is to correlate channel join requests with JSON objects in fields used as Presence identifiers. There is no supplied Suricata or vendor-specific signature for this CVE, and a generic payload signature can produce false positives.
Monitor WebSocket or channel join events where an expected scalar presence key is instead an object, array, or other structured value. Correlate those events with a subsequent Protocol.UndefinedError or Presence process restart.
Dependency checks should be part of CI and release validation:
mix deps.tree --all | grep -E 'phoenix '
mix hex.outdated phoenix
These commands identify installed or available dependency versions; they do not replace review of the production artifact or lockfile.
Mitigation and Patching
Upgrade to the fixed release for the application’s supported Phoenix branch:
- Phoenix 1.5.x: upgrade to 1.5.16
- Phoenix 1.6.x: upgrade to 1.6.18
- Phoenix 1.7.x: upgrade to 1.7.25
- Phoenix 1.8.x: upgrade to 1.8.17
Update the dependency constraint and regenerate the lockfile using the project’s normal release process. For an application already on a compatible branch, a representative command is:
mix deps.update phoenix
mix deps.compile phoenix
mix test
Review the resulting mix.lock, run the application’s complete test suite, and deploy the rebuilt release. Do not blindly force a major-version upgrade in production. Select the fixed release appropriate for the maintained branch and test compatibility with channels, LiveView, Presence callbacks, and deployment tooling.
As an immediate application-level safeguard, validate the key before invoking Presence tracking. The exact implementation depends on the application’s expected identifier format, but a strict string check is preferable to coercing arbitrary input:
def track_presence(socket, key, meta) when is_binary(key) do
Phoenix.Presence.track(socket, key, meta)
end
def track_presence(_socket, _key, _meta) do
{:error, :invalid_presence_key}
end
If the application expects only a narrower format, enforce that format as well, such as a bounded UTF-8 identifier or an allowlisted pattern. Reject maps, lists, atoms, tuples, and other unexpected Erlang terms before they reach Phoenix.Presence.track/3 or track/4.
Prefer server-generated presence keys where possible. Where patching is temporarily delayed, restrict channel authorization and prevent untrusted users from joining affected topics. This is a compensating control, not a complete fix.
Monitor supervisor restart intensity and presence-state loss after deploying the workaround. Be prepared to restart affected services in a controlled manner if tracker processes repeatedly fail.
Incident Response Checklist
If you suspect active exploitation:
- Identify the Phoenix version in each production artifact.
- Review channel join logs for structured or non-string Presence keys.
- Correlate suspicious joins with
Protocol.UndefinedErrorevents. - Check Presence tracker and supervisor restart history.
- Preserve relevant application, WebSocket, and deployment logs.
- Upgrade to the appropriate fixed Phoenix release.
- Add strict server-side key validation and deploy regression tests.
- Review channel authorization and invalidate suspicious sessions if appropriate.
- Confirm that Presence state and supervisor health remain stable after remediation.
If the event caused service interruption, document affected topics, tracker shards, restart counts, recovery actions, and any evidence of repeated malformed requests.
References
- NVD: CVE-2026-128361
- Erlang Ecosystem Foundation CNA record
- Erlang Ecosystem Foundation CNA JSON record
- Phoenix Framework GitHub Security Advisory
- Phoenix fix commit
- Phoenix related commit
- Phoenix fix commit
- Phoenix fix commit
- Additional Phoenix fix commit
- OSV record: EEF-CVE-2026-128361
This article may contain affiliate links. We earn a commission on qualifying purchases at no extra cost to you.