Search
Find a vulnerability
Search criteria
ⓘ
Use this form to refine search results.
Full-text search supports keyword queries with ranking and filtering.
You can combine vendor, product, and sources to narrow results.
Enable “Apply ordering” to sort by date instead of relevance.
29 vulnerabilities by phoenixframework
CVE-2026-129344 (GCVE-0-2026-129344)
Vulnerability from nvd – Published: 2026-11-21 10:59 – Updated: 2026-11-24 04:38
VLAI
EPSS
VEX
Title
Client-selected V1 serializer crashes shared broadcast dispatch on binary payloads
Summary
Uncaught Exception vulnerability in phoenixframework phoenix allows an unauthenticated attacker to cause a denial of service via a client-selected legacy serializer on binary channel broadcasts.
When an application broadcasts {:binary, data} payloads on a channel topic, any client that connects without a vsn parameter, or with vsn=1.0.0, and joins that topic makes those broadcasts fail. Phoenix.Channel.Server.send/4 encodes each broadcast with every subscriber's own serializer inside the PubSub dispatch loop, calling fastlane!/1 with no rescue, and the negotiated Phoenix.Socket.V1.JSONSerializer raises Protocol.UndefinedError on a binary payload. Every binary broadcast on the topic then crashes the broadcasting process and skips every subscriber dispatched after the attacker. For broadcasts arriving from other nodes the loop runs in the PubSub adapter worker, whose repeated crashes restart the PubSub supervisor and empty the node's subscription registry while sockets stay connected.
This issue affects phoenix: from 1.5.7 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-23 20:25 UTC
CWE
- CWE-248 - Uncaught Exception
Assigner
References
9 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix |
Affected:
1.5.7 , < 1.5.16
(semver)
Affected: 1.6.0-rc.0 , < 1.6.18 (semver) Affected: 1.7.0-rc.0 , < 1.7.25 (semver) Affected: 1.8.0-rc.0 , < 1.8.17 (semver) cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix |
Affected:
07b401901fc1d649f126eee6315b5eb01fa5c85c , < c255d983e03893ae46abf01d13c3ec3bd20f029c
(git)
Affected: cf098e9cf7a44ee6479d31d911a97d3c7430c6fe , < * (git) cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
Date Public
2026-11-21 10:59
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-129344",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-23T20:25:52.037878Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-23T20:26:47.156Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Channel.Server\u0027",
"\u0027Elixir.Phoenix.Socket.V1.JSONSerializer\u0027",
"\u0027Elixir.Phoenix.Channel\u0027"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/channel/server.ex",
"lib/phoenix/socket/serializers/v1_json_serializer.ex",
"lib/phoenix/channel.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Channel.Server\u0027:send/4"
},
{
"name": "\u0027Elixir.Phoenix.Socket.V1.JSONSerializer\u0027:fastlane!/1"
},
{
"name": "\u0027Elixir.Phoenix.Channel\u0027:broadcast/3"
},
{
"name": "\u0027Elixir.Phoenix.Channel\u0027:broadcast_from/3"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.16",
"status": "affected",
"version": "1.5.7",
"versionType": "semver"
},
{
"lessThan": "1.6.18",
"status": "affected",
"version": "1.6.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.7.25",
"status": "affected",
"version": "1.7.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.8.17",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Channel.Server\u0027",
"\u0027Elixir.Phoenix.Socket.V1.JSONSerializer\u0027",
"\u0027Elixir.Phoenix.Channel\u0027"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/channel/server.ex",
"lib/phoenix/socket/serializers/v1_json_serializer.ex",
"lib/phoenix/channel.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Channel.Server\u0027:send/4"
},
{
"name": "\u0027Elixir.Phoenix.Socket.V1.JSONSerializer\u0027:fastlane!/1"
},
{
"name": "\u0027Elixir.Phoenix.Channel\u0027:broadcast/3"
},
{
"name": "\u0027Elixir.Phoenix.Channel\u0027:broadcast_from/3"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "c255d983e03893ae46abf01d13c3ec3bd20f029c",
"status": "affected",
"version": "07b401901fc1d649f126eee6315b5eb01fa5c85c",
"versionType": "git"
},
{
"changes": [
{
"at": "30e5d9d7704b964772c131314508c45ed85ed807",
"status": "unaffected"
},
{
"at": "5d57f442a1ffab8a866add770477a14a0cd792d9",
"status": "unaffected"
},
{
"at": "eddaeb6d50c903fc77b465dbf3efd89feee0816b",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "cf098e9cf7a44ee6479d31d911a97d3c7430c6fe",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must broadcast \u003ccode\u003e{:binary, data}\u003c/code\u003e payloads (through \u003ccode\u003ePhoenix.Channel.broadcast/3\u003c/code\u003e, \u003ccode\u003ebroadcast_from/3\u003c/code\u003e, or \u003ccode\u003ePhoenix.Endpoint.broadcast/3\u003c/code\u003e) on a channel topic that an untrusted client can join. Applications that broadcast only map payloads are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must broadcast `{:binary, data}` payloads (through `Phoenix.Channel.broadcast/3`, `broadcast_from/3`, or `Phoenix.Endpoint.broadcast/3`) on a channel topic that an untrusted client can join. Applications that broadcast only map payloads are not affected."
}
],
"value": "The application must broadcast {:binary, data} payloads (through Phoenix.Channel.broadcast/3, broadcast_from/3, or Phoenix.Endpoint.broadcast/3) on a channel topic that an untrusted client can join. Applications that broadcast only map payloads are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.5.16",
"versionStartIncluding": "1.5.7",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.6.18",
"versionStartIncluding": "1.6.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.7.25",
"versionStartIncluding": "1.7.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.8.17",
"versionStartIncluding": "1.8.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "reporter",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
},
{
"lang": "en",
"type": "remediation reviewer",
"value": "Jos\u00e9 Valim"
}
],
"dateAssigned": "2026-11-20T10:54:44.000Z",
"datePublic": "2026-11-21T10:59:15.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eUncaught Exception vulnerability in phoenixframework phoenix allows an unauthenticated attacker to cause a denial of service via a client-selected legacy serializer on binary channel broadcasts.\u003c/p\u003e\n\u003cp\u003eWhen an application broadcasts \u003ccode\u003e{:binary, data}\u003c/code\u003e payloads on a channel topic, any client that connects without a \u003ccode\u003evsn\u003c/code\u003e parameter, or with \u003ccode\u003evsn=1.0.0\u003c/code\u003e, and joins that topic makes those broadcasts fail. \u003ccode\u003ePhoenix.Channel.Server.send/4\u003c/code\u003e encodes each broadcast with every subscriber\u0027s own serializer inside the PubSub dispatch loop, calling \u003ccode\u003efastlane!/1\u003c/code\u003e with no rescue, and the negotiated \u003ccode\u003ePhoenix.Socket.V1.JSONSerializer\u003c/code\u003e raises \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e on a binary payload. Every binary broadcast on the topic then crashes the broadcasting process and skips every subscriber dispatched after the attacker. For broadcasts arriving from other nodes the loop runs in the PubSub adapter worker, whose repeated crashes restart the PubSub supervisor and empty the node\u0027s subscription registry while sockets stay connected.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix: from 1.5.7 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Uncaught Exception vulnerability in phoenixframework phoenix allows an unauthenticated attacker to cause a denial of service via a client-selected legacy serializer on binary channel broadcasts.\n\nWhen an application broadcasts `{:binary, data}` payloads on a channel topic, any client that connects without a `vsn` parameter, or with `vsn=1.0.0`, and joins that topic makes those broadcasts fail. `Phoenix.Channel.Server.send/4` encodes each broadcast with every subscriber\u0027s own serializer inside the PubSub dispatch loop, calling `fastlane!/1` with no rescue, and the negotiated `Phoenix.Socket.V1.JSONSerializer` raises `Protocol.UndefinedError` on a binary payload. Every binary broadcast on the topic then crashes the broadcasting process and skips every subscriber dispatched after the attacker. For broadcasts arriving from other nodes the loop runs in the PubSub adapter worker, whose repeated crashes restart the PubSub supervisor and empty the node\u0027s subscription registry while sockets stay connected.\n\nThis issue affects phoenix: from 1.5.7 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17."
}
],
"value": "Uncaught Exception vulnerability in phoenixframework phoenix allows an unauthenticated attacker to cause a denial of service via a client-selected legacy serializer on binary channel broadcasts.\n\nWhen an application broadcasts {:binary, data} payloads on a channel topic, any client that connects without a vsn parameter, or with vsn=1.0.0, and joins that topic makes those broadcasts fail. Phoenix.Channel.Server.send/4 encodes each broadcast with every subscriber\u0027s own serializer inside the PubSub dispatch loop, calling fastlane!/1 with no rescue, and the negotiated Phoenix.Socket.V1.JSONSerializer raises Protocol.UndefinedError on a binary payload. Every binary broadcast on the topic then crashes the broadcasting process and skips every subscriber dispatched after the attacker. For broadcasts arriving from other nodes the loop runs in the PubSub adapter worker, whose repeated crashes restart the PubSub supervisor and empty the node\u0027s subscription registry while sockets stay connected.\n\nThis issue affects phoenix: from 1.5.7 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17."
}
],
"impacts": [
{
"capecId": "CAPEC-220",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who can join a topic makes every binary broadcast on it fail, crashing the broadcasting channel and starving the other subscribers. In clustered deployments, forwarded broadcasts crash the PubSub adapter worker until the node\u0027s subscriptions are lost.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who can join a topic makes every binary broadcast on it fail, crashing the broadcasting channel and starving the other subscribers. In clustered deployments, forwarded broadcasts crash the PubSub adapter worker until the node\u0027s subscriptions are lost."
}
],
"value": "An attacker who can join a topic makes every binary broadcast on it fail, crashing the broadcasting channel and starving the other subscribers. In clustered deployments, forwarded broadcasts crash the PubSub adapter worker until the node\u0027s subscriptions are lost."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 8.2,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-248",
"description": "CWE-248 Uncaught Exception",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T04:38:06.794Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Client-selected V1 serializer crashes shared broadcast dispatch on binary payloads",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-5vmc-qgf8-rw36"
},
{
"name": "EEF CNA record for CVE-2026-129344",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-129344.html"
},
{
"name": "OSV record EEF-CVE-2026-129344",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-129344"
},
{
"name": "Introducing commit 07b4019 in phoenixframework/phoenix",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix/commit/07b401901fc1d649f126eee6315b5eb01fa5c85c"
},
{
"name": "Introducing commit cf098e9 in phoenixframework/phoenix",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix/commit/cf098e9cf7a44ee6479d31d911a97d3c7430c6fe"
},
{
"name": "Fix commit 30e5d9d in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/30e5d9d7704b964772c131314508c45ed85ed807"
},
{
"name": "Fix commit 5d57f44 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/5d57f442a1ffab8a866add770477a14a0cd792d9"
},
{
"name": "Fix commit c255d98 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/c255d983e03893ae46abf01d13c3ec3bd20f029c"
},
{
"name": "Fix commit eddaeb6 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/eddaeb6d50c903fc77b465dbf3efd89feee0816b"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Client-selected V1 serializer crashes shared broadcast dispatch on binary payloads",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eReject the V1 serializer by listing only the V2 serializer on each socket:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-elixir\"\u003esocket \"/socket\", MyAppWeb.UserSocket,\n websocket: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~\u0026gt; 2.0.0\"}]],\n longpoll: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~\u0026gt; 2.0.0\"}]]\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eClients that connect without a \u003ccode\u003evsn\u003c/code\u003e parameter or with \u003ccode\u003evsn=1.0.0\u003c/code\u003e are then refused.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Reject the V1 serializer by listing only the V2 serializer on each socket:\n\n```elixir\nsocket \"/socket\", MyAppWeb.UserSocket,\n websocket: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~\u003e 2.0.0\"}]],\n longpoll: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~\u003e 2.0.0\"}]]\n```\n\nClients that connect without a `vsn` parameter or with `vsn=1.0.0` are then refused."
}
],
"value": "Reject the V1 serializer by listing only the V2 serializer on each socket:\n\nsocket \"/socket\", MyAppWeb.UserSocket,\n websocket: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~\u003e 2.0.0\"}]],\n longpoll: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~\u003e 2.0.0\"}]]\n\nClients that connect without a vsn parameter or with vsn=1.0.0 are then refused."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eRun a Phoenix endpoint with a channel whose \u003ccode\u003ehandle_in/3\u003c/code\u003e calls \u003ccode\u003ebroadcast(socket, \"evt\", {:binary, \u0026lt;\u0026lt;0, 1, 2, 3\u0026gt;\u0026gt;})\u003c/code\u003e on its topic.\u003c/li\u003e\n\u003cli\u003eAs the attacker, open \u003ccode\u003e/socket/websocket?vsn=1.0.0\u003c/code\u003e and join the topic with a V1 frame (\u003ccode\u003e{\"topic\": ..., \"event\": \"phx_join\", \"payload\": {}, \"ref\": ...}\u003c/code\u003e).\u003c/li\u003e\n\u003cli\u003eConnect several V2 clients (\u003ccode\u003evsn=2.0.0\u003c/code\u003e) and join the same topic.\u003c/li\u003e\n\u003cli\u003eFrom another V2 client on the topic, push the event that triggers the binary broadcast.\u003c/li\u003e\n\u003cli\u003eThe broadcaster receives \u003ccode\u003ephx_error\u003c/code\u003e, the log shows \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e raised from \u003ccode\u003ePhoenix.Socket.V1.JSONSerializer.fastlane!/1\u003c/code\u003e through \u003ccode\u003ePhoenix.Channel.Server.send/4\u003c/code\u003e, and the V2 subscribers after the attacker receive nothing. Without the attacker, the same broadcast reaches every subscriber.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Run a Phoenix endpoint with a channel whose `handle_in/3` calls `broadcast(socket, \"evt\", {:binary, \u003c\u003c0, 1, 2, 3\u003e\u003e})` on its topic.\n2. As the attacker, open `/socket/websocket?vsn=1.0.0` and join the topic with a V1 frame (`{\"topic\": ..., \"event\": \"phx_join\", \"payload\": {}, \"ref\": ...}`).\n3. Connect several V2 clients (`vsn=2.0.0`) and join the same topic.\n4. From another V2 client on the topic, push the event that triggers the binary broadcast.\n5. The broadcaster receives `phx_error`, the log shows `Protocol.UndefinedError` raised from `Phoenix.Socket.V1.JSONSerializer.fastlane!/1` through `Phoenix.Channel.Server.send/4`, and the V2 subscribers after the attacker receive nothing. Without the attacker, the same broadcast reaches every subscriber."
}
],
"value": "* Run a Phoenix endpoint with a channel whose handle_in/3 calls broadcast(socket, \"evt\", {:binary, \u003c\u003c0, 1, 2, 3\u003e\u003e}) on its topic.\n* As the attacker, open /socket/websocket?vsn=1.0.0 and join the topic with a V1 frame ({\"topic\": ..., \"event\": \"phx_join\", \"payload\": {}, \"ref\": ...}).\n* Connect several V2 clients (vsn=2.0.0) and join the same topic.\n* From another V2 client on the topic, push the event that triggers the binary broadcast.\n* The broadcaster receives phx_error, the log shows Protocol.UndefinedError raised from Phoenix.Socket.V1.JSONSerializer.fastlane!/1 through Phoenix.Channel.Server.send/4, and the V2 subscribers after the attacker receive nothing. Without the attacker, the same broadcast reaches every subscriber."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Serializer selection.\u003c/strong\u003e The socket picks its serializer from the client\u0027s \u003ccode\u003evsn\u003c/code\u003e parameter. A missing \u003ccode\u003evsn\u003c/code\u003e or \u003ccode\u003evsn=1.0.0\u003c/code\u003e selects \u003ccode\u003ePhoenix.Socket.V1.JSONSerializer\u003c/code\u003e, and \u003ccode\u003ePhoenix.Channel.Server\u003c/code\u003e registers it as the subscriber\u0027s fastlane metadata when the channel joins.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Shared dispatch.\u003c/strong\u003e A broadcast runs \u003ccode\u003ePhoenix.Channel.Server.send/4\u003c/code\u003e once per subscriber, inside the PubSub dispatch loop of the broadcasting process. It encodes the message with each subscriber\u0027s serializer through \u003ccode\u003efastlane!/1\u003c/code\u003e and has no rescue.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Crash.\u003c/strong\u003e \u003ccode\u003ePhoenix.Socket.V1.JSONSerializer.fastlane!/1\u003c/code\u003e JSON-encodes the payload, so a \u003ccode\u003e{:binary, data}\u003c/code\u003e tuple raises \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e. The exception aborts the loop: the broadcasting channel crashes (its client receives \u003ccode\u003ephx_error\u003c/code\u003e) and every subscriber after the attacker misses the message.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. Cluster spread.\u003c/strong\u003e For broadcasts from other nodes, the same loop runs in the \u003ccode\u003ePhoenix.PubSub.PG2\u003c/code\u003e adapter worker. Each forwarded binary broadcast crashes it, and repeated crashes exceed the restart intensity and restart the PubSub supervisor, which empties the subscription registry while sockets stay connected. The report simulated this step locally by sending \u003ccode\u003e:forward_to_local\u003c/code\u003e to the worker.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Serializer selection.** The socket picks its serializer from the client\u0027s `vsn` parameter. A missing `vsn` or `vsn=1.0.0` selects `Phoenix.Socket.V1.JSONSerializer`, and `Phoenix.Channel.Server` registers it as the subscriber\u0027s fastlane metadata when the channel joins.\n\n**2. Shared dispatch.** A broadcast runs `Phoenix.Channel.Server.send/4` once per subscriber, inside the PubSub dispatch loop of the broadcasting process. It encodes the message with each subscriber\u0027s serializer through `fastlane!/1` and has no rescue.\n\n**3. Crash.** `Phoenix.Socket.V1.JSONSerializer.fastlane!/1` JSON-encodes the payload, so a `{:binary, data}` tuple raises `Protocol.UndefinedError`. The exception aborts the loop: the broadcasting channel crashes (its client receives `phx_error`) and every subscriber after the attacker misses the message.\n\n**4. Cluster spread.** For broadcasts from other nodes, the same loop runs in the `Phoenix.PubSub.PG2` adapter worker. Each forwarded binary broadcast crashes it, and repeated crashes exceed the restart intensity and restart the PubSub supervisor, which empties the subscription registry while sockets stay connected. The report simulated this step locally by sending `:forward_to_local` to the worker."
}
],
"value": "1. Serializer selection. The socket picks its serializer from the client\u0027s vsn parameter. A missing vsn or vsn=1.0.0 selects Phoenix.Socket.V1.JSONSerializer, and Phoenix.Channel.Server registers it as the subscriber\u0027s fastlane metadata when the channel joins.\n\n2. Shared dispatch. A broadcast runs Phoenix.Channel.Server.send/4 once per subscriber, inside the PubSub dispatch loop of the broadcasting process. It encodes the message with each subscriber\u0027s serializer through fastlane!/1 and has no rescue.\n\n3. Crash. Phoenix.Socket.V1.JSONSerializer.fastlane!/1 JSON-encodes the payload, so a {:binary, data} tuple raises Protocol.UndefinedError. The exception aborts the loop: the broadcasting channel crashes (its client receives phx_error) and every subscriber after the attacker misses the message.\n\n4. Cluster spread. For broadcasts from other nodes, the same loop runs in the Phoenix.PubSub.PG2 adapter worker. Each forwarded binary broadcast crashes it, and repeated crashes exceed the restart intensity and restart the PubSub supervisor, which empties the subscription registry while sockets stay connected. The report simulated this step locally by sending :forward_to_local to the worker."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-129344",
"datePublished": "2026-11-21T10:59:15.168Z",
"dateReserved": "2026-11-18T04:41:14.165Z",
"dateUpdated": "2026-11-24T04:38:06.794Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-128361 (GCVE-0-2026-128361)
Vulnerability from nvd – Published: 2026-11-21 11:09 – Updated: 2026-11-24 04:38
VLAI
EPSS
VEX
Title
Unsanitized presence key crashes Presence tracker
Summary
Improper Input Validation vulnerability in phoenixframework phoenix (Phoenix.Presence) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.
track/3,4 accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with to_string/1 only later, in Phoenix.Presence.group/1, which raises Protocol.UndefinedError on a map. group/1 runs whenever presences are listed and when each presence diff is broadcast, together with the application's fetch/2, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.
From 1.7.0 the diff runs in a Task.Supervisor.async task linked to the tracker shard, and Phoenix.Presence.handle_info/2 has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.
This issue affects phoenix: from 1.2.0 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-23 20:27 UTC
CWE
- CWE-20 - Improper Input Validation
Assigner
References
8 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix |
Affected:
1.2.0 , < 1.5.16
(semver)
Affected: 1.6.0-rc.0 , < 1.6.18 (semver) Affected: 1.7.0-rc.0 , < 1.7.25 (semver) Affected: 1.8.0-rc.0 , < 1.8.17 (semver) cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix |
Affected:
44e7618370629df93711cd6169789fd0d8f3678e , < *
(git)
cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
Date Public
2026-11-21 11:09
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-128361",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-23T20:27:13.533560Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-23T20:27:25.217Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Presence\u0027"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/presence.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_info/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_diff/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:group/1"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.16",
"status": "affected",
"version": "1.2.0",
"versionType": "semver"
},
{
"lessThan": "1.6.18",
"status": "affected",
"version": "1.6.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.7.25",
"status": "affected",
"version": "1.7.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.8.17",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Presence\u0027"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/presence.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_info/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_diff/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:group/1"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "39c1c6bfd0c817f1223c121f61c60a25f66b76cb",
"status": "unaffected"
},
{
"at": "6609595fb3e37f545c4ac636a369f14b0084bc3d",
"status": "unaffected"
},
{
"at": "81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b",
"status": "unaffected"
},
{
"at": "edb702804aeab3a29543668a8be8ea61291c4b75",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "44e7618370629df93711cd6169789fd0d8f3678e",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must use \u003ccode\u003ePhoenix.Presence\u003c/code\u003e and either track presences under a key influenced by client input (such as a name taken from the channel join payload), or define a \u003ccode\u003efetch/2\u003c/code\u003e callback that can raise on a tracked key. Applications that track only server-controlled string keys and whose \u003ccode\u003efetch/2\u003c/code\u003e cannot raise are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must use `Phoenix.Presence` and either track presences under a key influenced by client input (such as a name taken from the channel join payload), or define a `fetch/2` callback that can raise on a tracked key. Applications that track only server-controlled string keys and whose `fetch/2` cannot raise are not affected."
}
],
"value": "The application must use Phoenix.Presence and either track presences under a key influenced by client input (such as a name taken from the channel join payload), or define a fetch/2 callback that can raise on a tracked key. Applications that track only server-controlled string keys and whose fetch/2 cannot raise are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.5.16",
"versionStartIncluding": "1.2.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.6.18",
"versionStartIncluding": "1.6.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.7.25",
"versionStartIncluding": "1.7.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.8.17",
"versionStartIncluding": "1.8.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "reporter",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
},
{
"lang": "en",
"type": "remediation reviewer",
"value": "Jos\u00e9 Valim"
}
],
"dateAssigned": "2026-11-20T10:53:30.000Z",
"datePublic": "2026-11-21T11:09:52.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Input Validation vulnerability in phoenixframework phoenix (\u003ccode\u003ePhoenix.Presence\u003c/code\u003e) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003etrack/3,4\u003c/code\u003e accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with \u003ccode\u003eto_string/1\u003c/code\u003e only later, in \u003ccode\u003ePhoenix.Presence.group/1\u003c/code\u003e, which raises \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e on a map. \u003ccode\u003egroup/1\u003c/code\u003e runs whenever presences are listed and when each presence diff is broadcast, together with the application\u0027s \u003ccode\u003efetch/2\u003c/code\u003e, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.\u003c/p\u003e\n\u003cp\u003eFrom 1.7.0 the diff runs in a \u003ccode\u003eTask.Supervisor.async\u003c/code\u003e task linked to the tracker shard, and \u003ccode\u003ePhoenix.Presence.handle_info/2\u003c/code\u003e has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix: from 1.2.0 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Input Validation vulnerability in phoenixframework phoenix (`Phoenix.Presence`) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.\n\n`track/3,4` accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with `to_string/1` only later, in `Phoenix.Presence.group/1`, which raises `Protocol.UndefinedError` on a map. `group/1` runs whenever presences are listed and when each presence diff is broadcast, together with the application\u0027s `fetch/2`, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.\n\nFrom 1.7.0 the diff runs in a `Task.Supervisor.async` task linked to the tracker shard, and `Phoenix.Presence.handle_info/2` has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.\n\nThis issue affects phoenix: from 1.2.0 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17."
}
],
"value": "Improper Input Validation vulnerability in phoenixframework phoenix (Phoenix.Presence) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.\n\ntrack/3,4 accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with to_string/1 only later, in Phoenix.Presence.group/1, which raises Protocol.UndefinedError on a map. group/1 runs whenever presences are listed and when each presence diff is broadcast, together with the application\u0027s fetch/2, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.\n\nFrom 1.7.0 the diff runs in a Task.Supervisor.async task linked to the tracker shard, and Phoenix.Presence.handle_info/2 has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.\n\nThis issue affects phoenix: from 1.2.0 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17."
}
],
"impacts": [
{
"capecId": "CAPEC-153",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eWith one channel join an attacker makes the topic\u0027s presence unusable: every later join that lists presences crashes, and presence updates stop. From 1.7.0 the same join terminates every channel and LiveView process tracked on the Presence shard and erases presence state for all its topics, and repeating it brings down the application.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "With one channel join an attacker makes the topic\u0027s presence unusable: every later join that lists presences crashes, and presence updates stop. From 1.7.0 the same join terminates every channel and LiveView process tracked on the Presence shard and erases presence state for all its topics, and repeating it brings down the application."
}
],
"value": "With one channel join an attacker makes the topic\u0027s presence unusable: every later join that lists presences crashes, and presence updates stop. From 1.7.0 the same join terminates every channel and LiveView process tracked on the Presence shard and erases presence state for all its topics, and repeating it brings down the application."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 8.2,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-20",
"description": "CWE-20 Improper Input Validation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T04:38:01.753Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Unsanitized presence key crashes Presence tracker",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr"
},
{
"name": "EEF CNA record for CVE-2026-128361",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-128361.html"
},
{
"name": "OSV record EEF-CVE-2026-128361",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-128361"
},
{
"name": "Introducing commit 44e7618 in phoenixframework/phoenix",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix/commit/44e7618370629df93711cd6169789fd0d8f3678e"
},
{
"name": "Fix commit 39c1c6b in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/39c1c6bfd0c817f1223c121f61c60a25f66b76cb"
},
{
"name": "Fix commit 6609595 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/6609595fb3e37f545c4ac636a369f14b0084bc3d"
},
{
"name": "Fix commit 81bc027 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b"
},
{
"name": "Fix commit edb7028 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/edb702804aeab3a29543668a8be8ea61291c4b75"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Unsanitized presence key crashes Presence tracker",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eValidate every presence key before passing it to \u003ccode\u003etrack/3,4\u003c/code\u003e, \u003ccode\u003euntrack/2,3\u003c/code\u003e or \u003ccode\u003eupdate/3,4\u003c/code\u003e, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-elixir\"\u003edef join(\"room:\" \u0026lt;\u0026gt; _, %{\"name\" =\u0026gt; name}, socket) when is_binary(name) do\n send(self(), {:after_join, name})\n {:ok, socket}\nend\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eA \u003ccode\u003efetch/2\u003c/code\u003e callback must also not raise on any tracked key.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Validate every presence key before passing it to `track/3,4`, `untrack/2,3` or `update/3,4`, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:\n\n```elixir\ndef join(\"room:\" \u003c\u003e _, %{\"name\" =\u003e name}, socket) when is_binary(name) do\n send(self(), {:after_join, name})\n {:ok, socket}\nend\n```\n\nA `fetch/2` callback must also not raise on any tracked key."
}
],
"value": "Validate every presence key before passing it to track/3,4, untrack/2,3 or update/3,4, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:\n\ndef join(\"room:\" \u003c\u003e _, %{\"name\" =\u003e name}, socket) when is_binary(name) do\n send(self(), {:after_join, name})\n {:ok, socket}\nend\n\nA fetch/2 callback must also not raise on any tracked key."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eRun a Phoenix endpoint with a channel whose join reads \u003ccode\u003ename\u003c/code\u003e from the join payload and then calls \u003ccode\u003eMyPresence.track(socket, name, %{online_at: 1})\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eJoin the topic with 15 clients using string names, and confirm \u003ccode\u003eMyPresence.list(topic)\u003c/code\u003e returns 15 entries.\u003c/li\u003e\n\u003cli\u003eJoin once more with the payload \u003ccode\u003e{\"name\": {\"x\": 1}}\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe log shows \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e from \u003ccode\u003ePhoenix.Presence.group/1\u003c/code\u003e, then the shard terminating. All 15 clients receive \u003ccode\u003ephx_error\u003c/code\u003e, and \u003ccode\u003eMyPresence.list(topic)\u003c/code\u003e returns 0 entries.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Run a Phoenix endpoint with a channel whose join reads `name` from the join payload and then calls `MyPresence.track(socket, name, %{online_at: 1})`.\n2. Join the topic with 15 clients using string names, and confirm `MyPresence.list(topic)` returns 15 entries.\n3. Join once more with the payload `{\"name\": {\"x\": 1}}`.\n4. The log shows `Protocol.UndefinedError` from `Phoenix.Presence.group/1`, then the shard terminating. All 15 clients receive `phx_error`, and `MyPresence.list(topic)` returns 0 entries."
}
],
"value": "* Run a Phoenix endpoint with a channel whose join reads name from the join payload and then calls MyPresence.track(socket, name, %{online_at: 1}).\n* Join the topic with 15 clients using string names, and confirm MyPresence.list(topic) returns 15 entries.\n* Join once more with the payload {\"name\": {\"x\": 1}}.\n* The log shows Protocol.UndefinedError from Phoenix.Presence.group/1, then the shard terminating. All 15 clients receive phx_error, and MyPresence.list(topic) returns 0 entries."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Key accepted.\u003c/strong\u003e The \u003ccode\u003etrack/3,4\u003c/code\u003e injected by \u003ccode\u003euse Phoenix.Presence\u003c/code\u003e passes any term to \u003ccode\u003ePhoenix.Tracker.track\u003c/code\u003e, which returns \u003ccode\u003e{:ok, ref}\u003c/code\u003e. The documented pattern \u003ccode\u003ePresence.track(socket, name, meta)\u003c/code\u003e with \u003ccode\u003ename\u003c/code\u003e from the join payload lets a client choose a map as the key.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Deferred conversion.\u003c/strong\u003e \u003ccode\u003ePhoenix.Presence.group/1\u003c/code\u003e converts each key with \u003ccode\u003eto_string/1\u003c/code\u003e. It runs in \u003ccode\u003ePhoenix.Presence.list/2\u003c/code\u003e, in the calling process, and in \u003ccode\u003ehandle_diff/2\u003c/code\u003e before the application\u0027s \u003ccode\u003efetch/2\u003c/code\u003e. A map key raises \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e there, as does a \u003ccode\u003efetch/2\u003c/code\u003e such as the moduledoc\u0027s \u003ccode\u003eString.to_integer(key)\u003c/code\u003e on a non-numeric key.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Topic crash.\u003c/strong\u003e While the key stays tracked, every \u003ccode\u003elist\u003c/code\u003e on the topic raises. The documented \u003ccode\u003eafter_join\u003c/code\u003e that pushes \u003ccode\u003ePresence.list(socket)\u003c/code\u003e therefore crashes each later joiner\u0027s channel. Before 1.7.0, \u003ccode\u003ehandle_diff/2\u003c/code\u003e runs in an unlinked \u003ccode\u003eTask.Supervisor.start_child\u003c/code\u003e task, so a failing diff only loses that batch of joins and leaves.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. Shard crash (1.7.0 and later).\u003c/strong\u003e \u003ccode\u003ehandle_diff/2\u003c/code\u003e runs the diff in a \u003ccode\u003eTask.Supervisor.async\u003c/code\u003e task linked to the tracker shard, and \u003ccode\u003ePhoenix.Presence.handle_info/2\u003c/code\u003e matches only the task\u0027s success reply. The failure terminates the shard (\u003ccode\u003eFunctionClauseError\u003c/code\u003e), every tracked process linked to it dies, and presence state is wiped. Repeated joins exhaust the supervisor\u0027s restart intensity.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Key accepted.** The `track/3,4` injected by `use Phoenix.Presence` passes any term to `Phoenix.Tracker.track`, which returns `{:ok, ref}`. The documented pattern `Presence.track(socket, name, meta)` with `name` from the join payload lets a client choose a map as the key.\n\n**2. Deferred conversion.** `Phoenix.Presence.group/1` converts each key with `to_string/1`. It runs in `Phoenix.Presence.list/2`, in the calling process, and in `handle_diff/2` before the application\u0027s `fetch/2`. A map key raises `Protocol.UndefinedError` there, as does a `fetch/2` such as the moduledoc\u0027s `String.to_integer(key)` on a non-numeric key.\n\n**3. Topic crash.** While the key stays tracked, every `list` on the topic raises. The documented `after_join` that pushes `Presence.list(socket)` therefore crashes each later joiner\u0027s channel. Before 1.7.0, `handle_diff/2` runs in an unlinked `Task.Supervisor.start_child` task, so a failing diff only loses that batch of joins and leaves.\n\n**4. Shard crash (1.7.0 and later).** `handle_diff/2` runs the diff in a `Task.Supervisor.async` task linked to the tracker shard, and `Phoenix.Presence.handle_info/2` matches only the task\u0027s success reply. The failure terminates the shard (`FunctionClauseError`), every tracked process linked to it dies, and presence state is wiped. Repeated joins exhaust the supervisor\u0027s restart intensity."
}
],
"value": "1. Key accepted. The track/3,4 injected by use Phoenix.Presence passes any term to Phoenix.Tracker.track, which returns {:ok, ref}. The documented pattern Presence.track(socket, name, meta) with name from the join payload lets a client choose a map as the key.\n\n2. Deferred conversion. Phoenix.Presence.group/1 converts each key with to_string/1. It runs in Phoenix.Presence.list/2, in the calling process, and in handle_diff/2 before the application\u0027s fetch/2. A map key raises Protocol.UndefinedError there, as does a fetch/2 such as the moduledoc\u0027s String.to_integer(key) on a non-numeric key.\n\n3. Topic crash. While the key stays tracked, every list on the topic raises. The documented after_join that pushes Presence.list(socket) therefore crashes each later joiner\u0027s channel. Before 1.7.0, handle_diff/2 runs in an unlinked Task.Supervisor.start_child task, so a failing diff only loses that batch of joins and leaves.\n\n4. Shard crash (1.7.0 and later). handle_diff/2 runs the diff in a Task.Supervisor.async task linked to the tracker shard, and Phoenix.Presence.handle_info/2 matches only the task\u0027s success reply. The failure terminates the shard (FunctionClauseError), every tracked process linked to it dies, and presence state is wiped. Repeated joins exhaust the supervisor\u0027s restart intensity."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-128361",
"datePublished": "2026-11-21T11:09:51.800Z",
"dateReserved": "2026-11-18T13:53:21.753Z",
"dateUpdated": "2026-11-24T04:38:01.753Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-126334 (GCVE-0-2026-126334)
Vulnerability from nvd – Published: 2026-11-20 14:44 – Updated: 2026-11-24 04:39
VLAI
EPSS
VEX
Title
Joining a LiveView without `"url"` skips its `live_session` `on_mount` hooks
Summary
Incorrect Authorization vulnerability in phoenixframework phoenix_live_view allows an authenticated user to mount a router-mounted LiveView without the on_mount hooks of its live_session via a phx_join message that carries neither a "url" nor a "redirect" key.
The catch-all clause of the private Phoenix.LiveView.Channel.authorize_session/3 in lib/phoenix_live_view/channel.ex accepts a join without a URL for any session, including a root LiveView mounted at the router. The channel then mounts the LiveView with no route, and only a route adds the live_session hooks to the mount lifecycle. Checks that those hooks perform on the connected mount do not run, and event checks that they attach through attach_hook/4 are never attached. The attacker needs a valid session token for the LiveView, which only the HTTP render issues, after the hooks pass there. on_mount hooks declared in the LiveView module still run.
This issue affects phoenix_live_view: from 0.16.0 before 1.0.20, from 1.1.0-rc.0 before 1.1.34, and from 1.2.0-rc.0 before 1.2.14.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 18:37 UTC
CWE
- CWE-863 - Incorrect Authorization
Assigner
References
8 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix_live_view |
Affected:
0.16.0 , < 1.0.20
(semver)
Affected: 1.1.0-rc.0 , < 1.1.34 (semver) Affected: 1.2.0-rc.0 , < 1.2.14 (semver) cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix_live_view |
Affected:
3d1eb6752399060eebdaa7112f959ee81e7d630d , < *
(git)
cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:* |
Date Public
2026-11-20 14:44
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-126334",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T18:37:50.986670Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T18:38:03.643Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView.Channel\u0027"
],
"packageName": "phoenix_live_view",
"packageURL": "pkg:hex/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view/channel.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView.Channel\u0027:authorize_session/3"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.0.20",
"status": "affected",
"version": "0.16.0",
"versionType": "semver"
},
{
"lessThan": "1.1.34",
"status": "affected",
"version": "1.1.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.2.14",
"status": "affected",
"version": "1.2.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView.Channel\u0027"
],
"packageName": "phoenixframework/phoenix_live_view",
"packageURL": "pkg:github/phoenixframework/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view/channel.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView.Channel\u0027:authorize_session/3"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "049b2b10bb051467639c8cf6f3f7ee13df401a74",
"status": "unaffected"
},
{
"at": "5dc8459da3d5f7f1ba11d2fe351ea97e7a46c99f",
"status": "unaffected"
},
{
"at": "71b114d75e1ed615bbe8db7474a215536163eabb",
"status": "unaffected"
},
{
"at": "ec47eaac9e440ca7e8664ef64c8377cd2579c40c",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "3d1eb6752399060eebdaa7112f959ee81e7d630d",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application enforces authentication or authorization in \u003ccode\u003eon_mount\u003c/code\u003e hooks of a \u003ccode\u003elive_session\u003c/code\u003e, and the LiveView does not do the same check itself. The LiveView must also mount without a route: it does not define \u003ccode\u003ehandle_params/3\u003c/code\u003e, its \u003ccode\u003emount/3\u003c/code\u003e accepts \u003ccode\u003e:not_mounted_at_router\u003c/code\u003e as its params, and it does not read assigns that the skipped hooks set.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application enforces authentication or authorization in `on_mount` hooks of a `live_session`, and the LiveView does not do the same check itself. The LiveView must also mount without a route: it does not define `handle_params/3`, its `mount/3` accepts `:not_mounted_at_router` as its params, and it does not read assigns that the skipped hooks set."
}
],
"value": "The application enforces authentication or authorization in on_mount hooks of a live_session, and the LiveView does not do the same check itself. The LiveView must also mount without a route: it does not define handle_params/3, its mount/3 accepts :not_mounted_at_router as its params, and it does not read assigns that the skipped hooks set."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.0.20",
"versionStartIncluding": "0.16.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.1.34",
"versionStartIncluding": "1.1.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.2.14",
"versionStartIncluding": "1.2.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Alexander Koutmos"
},
{
"lang": "en",
"type": "reporter",
"value": "Alexander Koutmos"
},
{
"lang": "en",
"type": "coordinator",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
},
{
"lang": "en",
"type": "remediation reviewer",
"value": "Jos\u00e9 Valim"
}
],
"dateAssigned": "2026-11-17T03:32:27.000Z",
"datePublic": "2026-11-20T14:44:42.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eIncorrect Authorization vulnerability in phoenixframework phoenix_live_view allows an authenticated user to mount a router-mounted LiveView without the \u003ccode\u003eon_mount\u003c/code\u003e hooks of its \u003ccode\u003elive_session\u003c/code\u003e via a \u003ccode\u003ephx_join\u003c/code\u003e message that carries neither a \u003ccode\u003e\"url\"\u003c/code\u003e nor a \u003ccode\u003e\"redirect\"\u003c/code\u003e key.\u003c/p\u003e\n\u003cp\u003eThe catch-all clause of the private \u003ccode\u003ePhoenix.LiveView.Channel.authorize_session/3\u003c/code\u003e in \u003ccode\u003elib/phoenix_live_view/channel.ex\u003c/code\u003e accepts a join without a URL for any session, including a root LiveView mounted at the router. The channel then mounts the LiveView with no route, and only a route adds the \u003ccode\u003elive_session\u003c/code\u003e hooks to the mount lifecycle. Checks that those hooks perform on the connected mount do not run, and event checks that they attach through \u003ccode\u003eattach_hook/4\u003c/code\u003e are never attached. The attacker needs a valid session token for the LiveView, which only the HTTP render issues, after the hooks pass there. \u003ccode\u003eon_mount\u003c/code\u003e hooks declared in the LiveView module still run.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix_live_view: from 0.16.0 before 1.0.20, from 1.1.0-rc.0 before 1.1.34, and from 1.2.0-rc.0 before 1.2.14.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Incorrect Authorization vulnerability in phoenixframework phoenix_live_view allows an authenticated user to mount a router-mounted LiveView without the `on_mount` hooks of its `live_session` via a `phx_join` message that carries neither a `\"url\"` nor a `\"redirect\"` key.\n\nThe catch-all clause of the private `Phoenix.LiveView.Channel.authorize_session/3` in `lib/phoenix_live_view/channel.ex` accepts a join without a URL for any session, including a root LiveView mounted at the router. The channel then mounts the LiveView with no route, and only a route adds the `live_session` hooks to the mount lifecycle. Checks that those hooks perform on the connected mount do not run, and event checks that they attach through `attach_hook/4` are never attached. The attacker needs a valid session token for the LiveView, which only the HTTP render issues, after the hooks pass there. `on_mount` hooks declared in the LiveView module still run.\n\nThis issue affects phoenix_live_view: from 0.16.0 before 1.0.20, from 1.1.0-rc.0 before 1.1.34, and from 1.2.0-rc.0 before 1.2.14."
}
],
"value": "Incorrect Authorization vulnerability in phoenixframework phoenix_live_view allows an authenticated user to mount a router-mounted LiveView without the on_mount hooks of its live_session via a phx_join message that carries neither a \"url\" nor a \"redirect\" key.\n\nThe catch-all clause of the private Phoenix.LiveView.Channel.authorize_session/3 in lib/phoenix_live_view/channel.ex accepts a join without a URL for any session, including a root LiveView mounted at the router. The channel then mounts the LiveView with no route, and only a route adds the live_session hooks to the mount lifecycle. Checks that those hooks perform on the connected mount do not run, and event checks that they attach through attach_hook/4 are never attached. The attacker needs a valid session token for the LiveView, which only the HTTP render issues, after the hooks pass there. on_mount hooks declared in the LiveView module still run.\n\nThis issue affects phoenix_live_view: from 0.16.0 before 1.0.20, from 1.1.0-rc.0 before 1.1.34, and from 1.2.0-rc.0 before 1.2.14."
}
],
"impacts": [
{
"capecId": "CAPEC-1",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn authenticated user can send events that the \u003ccode\u003elive_session\u003c/code\u003e hooks would deny. A user whose access was revoked after the page loaded can still mount the LiveView and send events while the LiveView session token is valid.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An authenticated user can send events that the `live_session` hooks would deny. A user whose access was revoked after the page loaded can still mount the LiveView and send events while the LiveView session token is valid."
}
],
"value": "An authenticated user can send events that the live_session hooks would deny. A user whose access was revoked after the page loaded can still mount the LiveView and send events while the LiveView session token is valid."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 6,
"baseSeverity": "MEDIUM",
"privilegesRequired": "LOW",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-863",
"description": "CWE-863 Incorrect Authorization",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T04:39:41.520Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Joining a LiveView without `\"url\"` skips its `live_session` `on_mount` hooks",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-v4p7-3pm2-wq6c"
},
{
"name": "EEF CNA record for CVE-2026-126334",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-126334.html"
},
{
"name": "OSV record EEF-CVE-2026-126334",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-126334"
},
{
"name": "Introducing commit 3d1eb67 in phoenixframework/phoenix_live_view",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/3d1eb6752399060eebdaa7112f959ee81e7d630d"
},
{
"name": "Fix commit 049b2b1 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/049b2b10bb051467639c8cf6f3f7ee13df401a74"
},
{
"name": "Fix commit 5dc8459 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/5dc8459da3d5f7f1ba11d2fe351ea97e7a46c99f"
},
{
"name": "Fix commit 71b114d in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/71b114d75e1ed615bbe8db7474a215536163eabb"
},
{
"name": "Fix commit ec47eaa in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/ec47eaac9e440ca7e8664ef64c8377cd2579c40c"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Joining a LiveView without `\"url\"` skips its `live_session` `on_mount` hooks",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eMove the security-relevant \u003ccode\u003eon_mount\u003c/code\u003e hooks from the \u003ccode\u003elive_session\u003c/code\u003e to the LiveView module with \u003ccode\u003ePhoenix.LiveView.on_mount/1\u003c/code\u003e, for example in the \u003ccode\u003elive_view\u003c/code\u003e definition that \u003ccode\u003euse MyAppWeb, :live_view\u003c/code\u003e expands. Hooks declared in the module run on every mount.\u003c/p\u003e\n\u003cp\u003eAlternatively, make \u003ccode\u003emount/3\u003c/code\u003e match its first argument as a map (\u003ccode\u003e%{} = params\u003c/code\u003e), or define \u003ccode\u003ehandle_params/3\u003c/code\u003e in the LiveView. In both cases a mount without a route raises, and the join fails.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Move the security-relevant `on_mount` hooks from the `live_session` to the LiveView module with `Phoenix.LiveView.on_mount/1`, for example in the `live_view` definition that `use MyAppWeb, :live_view` expands. Hooks declared in the module run on every mount.\n\nAlternatively, make `mount/3` match its first argument as a map (`%{} = params`), or define `handle_params/3` in the LiveView. In both cases a mount without a route raises, and the join fails."
}
],
"value": "Move the security-relevant on_mount hooks from the live_session to the LiveView module with Phoenix.LiveView.on_mount/1, for example in the live_view definition that use MyAppWeb, :live_view expands. Hooks declared in the module run on every mount.\n\nAlternatively, make mount/3 match its first argument as a map (%{} = params), or define handle_params/3 in the LiveView. In both cases a mount without a route raises, and the join fails."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe target application has a \u003ccode\u003elive_session\u003c/code\u003e whose \u003ccode\u003eon_mount\u003c/code\u003e hook halts the mount for a suspended account and attaches a \u003ccode\u003e:handle_event\u003c/code\u003e hook with \u003ccode\u003eattach_hook/4\u003c/code\u003e that denies the \u003ccode\u003edelete_post\u003c/code\u003e event to users who are not admins. The LiveView at \u003ccode\u003e/posts\u003c/code\u003e does not define \u003ccode\u003ehandle_params/3\u003c/code\u003e.\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eSign in as a user without the admin role and load \u003ccode\u003e/posts\u003c/code\u003e over HTTP. Keep the session cookie, the CSRF token from the page, and the \u003ccode\u003eid\u003c/code\u003e, \u003ccode\u003edata-phx-session\u003c/code\u003e, and \u003ccode\u003edata-phx-static\u003c/code\u003e attributes of the element that has \u003ccode\u003edata-phx-main\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eOpen the LiveView websocket at \u003ccode\u003e/live/websocket\u003c/code\u003e with the session cookie and the CSRF token.\u003c/li\u003e\n\u003cli\u003eSend a \u003ccode\u003ephx_join\u003c/code\u003e message on the topic \u003ccode\u003elv:\u0026lt;id\u0026gt;\u003c/code\u003e. The payload has \u003ccode\u003e\"params\"\u003c/code\u003e (with \u003ccode\u003e\"_csrf_token\"\u003c/code\u003e and \u003ccode\u003e\"_mounts\": 0\u003c/code\u003e), \u003ccode\u003e\"session\"\u003c/code\u003e, and \u003ccode\u003e\"static\"\u003c/code\u003e. It has no \u003ccode\u003e\"url\"\u003c/code\u003e key and no \u003ccode\u003e\"redirect\"\u003c/code\u003e key.\u003c/li\u003e\n\u003cli\u003eThe server replies with status \u003ccode\u003eok\u003c/code\u003e. The LiveView is mounted without the \u003ccode\u003elive_session\u003c/code\u003e hooks.\u003c/li\u003e\n\u003cli\u003eSend an \u003ccode\u003eevent\u003c/code\u003e message of type \u003ccode\u003eclick\u003c/code\u003e for the event \u003ccode\u003edelete_post\u003c/code\u003e. The LiveView handles the event, and the post is deleted.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eThe same join with the \u003ccode\u003e\"url\"\u003c/code\u003e key set to the page URL runs the hooks, and the \u003ccode\u003edelete_post\u003c/code\u003e event is denied. If the account is suspended after step 1, the join with \u003ccode\u003e\"url\"\u003c/code\u003e is refused, and the join without \u003ccode\u003e\"url\"\u003c/code\u003e still succeeds.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The target application has a `live_session` whose `on_mount` hook halts the mount for a suspended account and attaches a `:handle_event` hook with `attach_hook/4` that denies the `delete_post` event to users who are not admins. The LiveView at `/posts` does not define `handle_params/3`.\n\n1. Sign in as a user without the admin role and load `/posts` over HTTP. Keep the session cookie, the CSRF token from the page, and the `id`, `data-phx-session`, and `data-phx-static` attributes of the element that has `data-phx-main`.\n2. Open the LiveView websocket at `/live/websocket` with the session cookie and the CSRF token.\n3. Send a `phx_join` message on the topic `lv:\u003cid\u003e`. The payload has `\"params\"` (with `\"_csrf_token\"` and `\"_mounts\": 0`), `\"session\"`, and `\"static\"`. It has no `\"url\"` key and no `\"redirect\"` key.\n4. The server replies with status `ok`. The LiveView is mounted without the `live_session` hooks.\n5. Send an `event` message of type `click` for the event `delete_post`. The LiveView handles the event, and the post is deleted.\n\nThe same join with the `\"url\"` key set to the page URL runs the hooks, and the `delete_post` event is denied. If the account is suspended after step 1, the join with `\"url\"` is refused, and the join without `\"url\"` still succeeds."
}
],
"value": "The target application has a live_session whose on_mount hook halts the mount for a suspended account and attaches a :handle_event hook with attach_hook/4 that denies the delete_post event to users who are not admins. The LiveView at /posts does not define handle_params/3.\n\n* Sign in as a user without the admin role and load /posts over HTTP. Keep the session cookie, the CSRF token from the page, and the id, data-phx-session, and data-phx-static attributes of the element that has data-phx-main.\n* Open the LiveView websocket at /live/websocket with the session cookie and the CSRF token.\n* Send a phx_join message on the topic lv:\u003cid\u003e. The payload has \"params\" (with \"_csrf_token\" and \"_mounts\": 0), \"session\", and \"static\". It has no \"url\" key and no \"redirect\" key.\n* The server replies with status ok. The LiveView is mounted without the live_session hooks.\n* Send an event message of type click for the event delete_post. The LiveView handles the event, and the post is deleted.\n\nThe same join with the \"url\" key set to the page URL runs the hooks, and the delete_post event is denied. If the account is suspended after step 1, the join with \"url\" is refused, and the join without \"url\" still succeeds."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Join authorization.\u003c/strong\u003e The private \u003ccode\u003ePhoenix.LiveView.Channel.authorize_session/3\u003c/code\u003e in \u003ccode\u003elib/phoenix_live_view/channel.ex\u003c/code\u003e has three clauses. The \u003ccode\u003e\"redirect\"\u003c/code\u003e clause resolves the route and checks that it stays in the same \u003ccode\u003elive_session\u003c/code\u003e. The \u003ccode\u003e\"url\"\u003c/code\u003e clause requires, for a session where \u003ccode\u003ePhoenix.LiveView.Session.main?/1\u003c/code\u003e is true, that the route for the URL matches the view and the \u003ccode\u003elive_session\u003c/code\u003e of the session. The third clause matches any other join parameters and returns the session with no route and no URL. Nested LiveViews need this clause because they have no URL. The clause does not call \u003ccode\u003ePhoenix.LiveView.Session.main?/1\u003c/code\u003e, so it also accepts a root LiveView that was mounted at the router.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Mount with no route.\u003c/strong\u003e With no route, \u003ccode\u003emount/3\u003c/code\u003e receives \u003ccode\u003e:not_mounted_at_router\u003c/code\u003e as its params. The private \u003ccode\u003eload_lifecycle/2\u003c/code\u003e adds the \u003ccode\u003eon_mount\u003c/code\u003e hooks of the \u003ccode\u003elive_session\u003c/code\u003e only when it receives a \u003ccode\u003e%Phoenix.LiveView.Route{}\u003c/code\u003e. Without a route it returns the lifecycle of the LiveView module alone. The \u003ccode\u003elive_session\u003c/code\u003e layout is skipped in the same way.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Result.\u003c/strong\u003e The signed session token, the static token, the CSRF token, and the session cookie are all valid, so the join succeeds. The LiveView runs without the \u003ccode\u003elive_session\u003c/code\u003e hooks. Hooks that halt the mount do not run, and hooks attached with \u003ccode\u003eattach_hook/4\u003c/code\u003e for \u003ccode\u003e:handle_event\u003c/code\u003e or \u003ccode\u003e:handle_info\u003c/code\u003e are never attached.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eConditions that stop the mount.\u003c/strong\u003e A LiveView that defines \u003ccode\u003ehandle_params/3\u003c/code\u003e raises on a mount without a route. A LiveView whose \u003ccode\u003emount/3\u003c/code\u003e matches its params as a map raises. A LiveView that reads an assign that a skipped hook sets raises. In these cases the join fails.\u003c/p\u003e\n\u003cp\u003eThe official JavaScript client always sends \u003ccode\u003e\"url\"\u003c/code\u003e or \u003ccode\u003e\"redirect\"\u003c/code\u003e for a root LiveView. Only nested views join without either key.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Join authorization.** The private `Phoenix.LiveView.Channel.authorize_session/3` in `lib/phoenix_live_view/channel.ex` has three clauses. The `\"redirect\"` clause resolves the route and checks that it stays in the same `live_session`. The `\"url\"` clause requires, for a session where `Phoenix.LiveView.Session.main?/1` is true, that the route for the URL matches the view and the `live_session` of the session. The third clause matches any other join parameters and returns the session with no route and no URL. Nested LiveViews need this clause because they have no URL. The clause does not call `Phoenix.LiveView.Session.main?/1`, so it also accepts a root LiveView that was mounted at the router.\n\n**2. Mount with no route.** With no route, `mount/3` receives `:not_mounted_at_router` as its params. The private `load_lifecycle/2` adds the `on_mount` hooks of the `live_session` only when it receives a `%Phoenix.LiveView.Route{}`. Without a route it returns the lifecycle of the LiveView module alone. The `live_session` layout is skipped in the same way.\n\n**3. Result.** The signed session token, the static token, the CSRF token, and the session cookie are all valid, so the join succeeds. The LiveView runs without the `live_session` hooks. Hooks that halt the mount do not run, and hooks attached with `attach_hook/4` for `:handle_event` or `:handle_info` are never attached.\n\n**Conditions that stop the mount.** A LiveView that defines `handle_params/3` raises on a mount without a route. A LiveView whose `mount/3` matches its params as a map raises. A LiveView that reads an assign that a skipped hook sets raises. In these cases the join fails.\n\nThe official JavaScript client always sends `\"url\"` or `\"redirect\"` for a root LiveView. Only nested views join without either key."
}
],
"value": "1. Join authorization. The private Phoenix.LiveView.Channel.authorize_session/3 in lib/phoenix_live_view/channel.ex has three clauses. The \"redirect\" clause resolves the route and checks that it stays in the same live_session. The \"url\" clause requires, for a session where Phoenix.LiveView.Session.main?/1 is true, that the route for the URL matches the view and the live_session of the session. The third clause matches any other join parameters and returns the session with no route and no URL. Nested LiveViews need this clause because they have no URL. The clause does not call Phoenix.LiveView.Session.main?/1, so it also accepts a root LiveView that was mounted at the router.\n\n2. Mount with no route. With no route, mount/3 receives :not_mounted_at_router as its params. The private load_lifecycle/2 adds the on_mount hooks of the live_session only when it receives a %Phoenix.LiveView.Route{}. Without a route it returns the lifecycle of the LiveView module alone. The live_session layout is skipped in the same way.\n\n3. Result. The signed session token, the static token, the CSRF token, and the session cookie are all valid, so the join succeeds. The LiveView runs without the live_session hooks. Hooks that halt the mount do not run, and hooks attached with attach_hook/4 for :handle_event or :handle_info are never attached.\n\nConditions that stop the mount. A LiveView that defines handle_params/3 raises on a mount without a route. A LiveView whose mount/3 matches its params as a map raises. A LiveView that reads an assign that a skipped hook sets raises. In these cases the join fails.\n\nThe official JavaScript client always sends \"url\" or \"redirect\" for a root LiveView. Only nested views join without either key."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-126334",
"datePublished": "2026-11-20T14:44:41.639Z",
"dateReserved": "2026-11-13T11:19:46.893Z",
"dateUpdated": "2026-11-24T04:39:41.520Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-117645 (GCVE-0-2026-117645)
Vulnerability from nvd – Published: 2026-10-30 20:25 – Updated: 2026-11-20 05:59
VLAI
EPSS
VEX
Title
Phoenix.HTML vulnerable to attribute injection via unvalidated attribute names in attributes_escape/1
Summary
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in phoenixframework phoenix_html allows an attacker who controls attribute names to inject attributes and script into rendered HTML via Phoenix.HTML.attributes_escape/1.
attributes_escape/1 in lib/phoenix_html.ex escapes attribute values but not attribute names. key_escape/1 passes a binary key through html_escape, which neutralizes quotes and angle brackets but not whitespace, so a key such as x onmouseover ends the attribute and starts a new one. An atom key is only dasherized, so any character passes, including quotes and >. Nested data, aria and phx keys take the same paths. An application is affected when it builds attribute keys from untrusted input and renders them through HEEx <tag {@attrs}>, content_tag/3, or a direct call. Before 3.0.0 the same code lived in Phoenix.HTML.Tag.
This issue affects phoenix_html: from 1.0.0 before 3.3.5 and from 4.0.0 before 4.4.0.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-06 16:01 UTC
CWE
- CWE-79 - Improper Neutralization of Input During Web Page Generation
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://cna.erlef.org/cves/CVE-2026-117645.html | relatedthird-party-advisory |
| https://osv.dev/vulnerability/EEF-CVE-2026-117645 | related |
| https://github.com/phoenixframework/phoenix_html/… | related |
| https://github.com/phoenixframework/phoenix_html/… | patch |
| https://github.com/phoenixframework/phoenix_html/… | patch |
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix_html |
Affected:
1.0.0 , < 3.3.5
(semver)
Affected: 4.0.0 , < 4.4.0 (semver) cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix_html |
Affected:
6ad3a1d7960891a468d54636054a98e11dfb5111 , < *
(git)
cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:* |
Date Public
2026-10-30 20:25
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-117645",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-06T16:01:55.707158Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-06T16:02:07.740Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.HTML\u0027",
"\u0027Elixir.Phoenix.HTML.Tag\u0027"
],
"packageName": "phoenix_html",
"packageURL": "pkg:hex/phoenix_html",
"product": "phoenix_html",
"programFiles": [
"lib/phoenix_html.ex",
"lib/phoenix_html/tag.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:attributes_escape/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:build_attrs/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:nested_attrs/3"
},
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:key_escape/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:tag/2"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:content_tag/3"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:attributes_escape/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:tag_attrs/1"
}
],
"repo": "https://github.com/phoenixframework/phoenix_html",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "3.3.5",
"status": "affected",
"version": "1.0.0",
"versionType": "semver"
},
{
"lessThan": "4.4.0",
"status": "affected",
"version": "4.0.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.HTML\u0027",
"\u0027Elixir.Phoenix.HTML.Tag\u0027"
],
"packageName": "phoenixframework/phoenix_html",
"packageURL": "pkg:github/phoenixframework/phoenix_html",
"product": "phoenix_html",
"programFiles": [
"lib/phoenix_html.ex",
"lib/phoenix_html/tag.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:attributes_escape/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:build_attrs/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:nested_attrs/3"
},
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:key_escape/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:tag/2"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:content_tag/3"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:attributes_escape/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:tag_attrs/1"
}
],
"repo": "https://github.com/phoenixframework/phoenix_html",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "a47dc8944a773b7e9273d9691dc6744ec793f1de",
"status": "unaffected"
},
{
"at": "d9e4e6b2d9be49e25fb6d6b4fdbb2008174f01a6",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "6ad3a1d7960891a468d54636054a98e11dfb5111",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:*",
"versionEndExcluding": "3.3.5",
"versionStartIncluding": "1.0.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.4.0",
"versionStartIncluding": "4.0.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Andrew Moore"
},
{
"lang": "en",
"type": "reporter",
"value": "Andrew Moore"
},
{
"lang": "en",
"type": "coordinator",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
}
],
"dateAssigned": "2026-10-30T12:20:04.000Z",
"datePublic": "2026-10-30T20:25:07.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027) vulnerability in phoenixframework phoenix_html allows an attacker who controls attribute names to inject attributes and script into rendered HTML via \u003ccode\u003ePhoenix.HTML.attributes_escape/1\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eattributes_escape/1\u003c/code\u003e in \u003ccode\u003elib/phoenix_html.ex\u003c/code\u003e escapes attribute values but not attribute names. \u003ccode\u003ekey_escape/1\u003c/code\u003e passes a binary key through \u003ccode\u003ehtml_escape\u003c/code\u003e, which neutralizes quotes and angle brackets but not whitespace, so a key such as \u003ccode\u003ex onmouseover\u003c/code\u003e ends the attribute and starts a new one. An atom key is only dasherized, so any character passes, including quotes and \u003ccode\u003e\u0026gt;\u003c/code\u003e. Nested \u003ccode\u003edata\u003c/code\u003e, \u003ccode\u003earia\u003c/code\u003e and \u003ccode\u003ephx\u003c/code\u003e keys take the same paths. An application is affected when it builds attribute keys from untrusted input and renders them through HEEx \u003ccode\u003e\u0026lt;tag {@attrs}\u0026gt;\u003c/code\u003e, \u003ccode\u003econtent_tag/3\u003c/code\u003e, or a direct call. Before 3.0.0 the same code lived in \u003ccode\u003ePhoenix.HTML.Tag\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix_html: from 1.0.0 before 3.3.5 and from 4.0.0 before 4.4.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027) vulnerability in phoenixframework phoenix_html allows an attacker who controls attribute names to inject attributes and script into rendered HTML via `Phoenix.HTML.attributes_escape/1`.\n\n`attributes_escape/1` in `lib/phoenix_html.ex` escapes attribute values but not attribute names. `key_escape/1` passes a binary key through `html_escape`, which neutralizes quotes and angle brackets but not whitespace, so a key such as `x onmouseover` ends the attribute and starts a new one. An atom key is only dasherized, so any character passes, including quotes and `\u003e`. Nested `data`, `aria` and `phx` keys take the same paths. An application is affected when it builds attribute keys from untrusted input and renders them through HEEx `\u003ctag {@attrs}\u003e`, `content_tag/3`, or a direct call. Before 3.0.0 the same code lived in `Phoenix.HTML.Tag`.\n\nThis issue affects phoenix_html: from 1.0.0 before 3.3.5 and from 4.0.0 before 4.4.0."
}
],
"value": "Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027) vulnerability in phoenixframework phoenix_html allows an attacker who controls attribute names to inject attributes and script into rendered HTML via Phoenix.HTML.attributes_escape/1.\n\nattributes_escape/1 in lib/phoenix_html.ex escapes attribute values but not attribute names. key_escape/1 passes a binary key through html_escape, which neutralizes quotes and angle brackets but not whitespace, so a key such as x onmouseover ends the attribute and starts a new one. An atom key is only dasherized, so any character passes, including quotes and \u003e. Nested data, aria and phx keys take the same paths. An application is affected when it builds attribute keys from untrusted input and renders them through HEEx \u003ctag {@attrs}\u003e, content_tag/3, or a direct call. Before 3.0.0 the same code lived in Phoenix.HTML.Tag.\n\nThis issue affects phoenix_html: from 1.0.0 before 3.3.5 and from 4.0.0 before 4.4.0."
}
],
"impacts": [
{
"capecId": "CAPEC-63",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who can influence the attribute names an application renders can add event-handler attributes or close the tag and run script in the browser of every user who views the page.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who can influence the attribute names an application renders can add event-handler attributes or close the tag and run script in the browser of every user who views the page."
}
],
"value": "An attacker who can influence the attribute names an application renders can add event-handler attributes or close the tag and run script in the browser of every user who views the page."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 5.3,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "LOW",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-79",
"description": "CWE-79 Improper Neutralization of Input During Web Page Generation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T05:59:50.999Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "EEF CNA record for CVE-2026-117645",
"tags": [
"related",
"third-party-advisory"
],
"url": "https://cna.erlef.org/cves/CVE-2026-117645.html"
},
{
"name": "OSV record EEF-CVE-2026-117645",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-117645"
},
{
"name": "Introducing commit 6ad3a1d in phoenixframework/phoenix_html",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix_html/commit/6ad3a1d7960891a468d54636054a98e11dfb5111"
},
{
"name": "Fix commit a47dc89 in phoenixframework/phoenix_html",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_html/commit/a47dc8944a773b7e9273d9691dc6744ec793f1de"
},
{
"name": "Fix commit d9e4e6b in phoenixframework/phoenix_html",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_html/commit/d9e4e6b2d9be49e25fb6d6b4fdbb2008174f01a6"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Phoenix.HTML vulnerable to attribute injection via unvalidated attribute names in attributes_escape/1",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eDo not derive attribute names from untrusted input. Where dynamic attribute keys are needed, check each key against an allow list, or against a pattern such as \u003ccode\u003e^[a-zA-Z][a-zA-Z0-9:._-]*$\u003c/code\u003e, before passing the map to \u003ccode\u003eattributes_escape/1\u003c/code\u003e or a HEEx \u003ccode\u003e{@attrs}\u003c/code\u003e expression. Do not create atoms from request data.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Do not derive attribute names from untrusted input. Where dynamic attribute keys are needed, check each key against an allow list, or against a pattern such as `^[a-zA-Z][a-zA-Z0-9:._-]*$`, before passing the map to `attributes_escape/1` or a HEEx `{@attrs}` expression. Do not create atoms from request data."
}
],
"value": "Do not derive attribute names from untrusted input. Where dynamic attribute keys are needed, check each key against an allow list, or against a pattern such as ^[a-zA-Z][a-zA-Z0-9:._-]*$, before passing the map to attributes_escape/1 or a HEEx {@attrs} expression. Do not create atoms from request data."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eInstall a vulnerable release, for example \u003ccode\u003eMix.install([{:phoenix_html, \"== 4.3.0\"}])\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eRender a binary name containing a space: \u003ccode\u003ePhoenix.HTML.attributes_escape(%{\"x onmouseover\" =\u0026gt; \"alert(1)\"}) |\u0026gt; Phoenix.HTML.safe_to_string()\u003c/code\u003e returns \u003ccode\u003e x onmouseover=\"alert(1)\"\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eRender an atom name containing a quote: \u003ccode\u003ePhoenix.HTML.attributes_escape([{:\"x\\\" onclick=\\\"alert(1)\", \"y\"}]) |\u0026gt; Phoenix.HTML.safe_to_string()\u003c/code\u003e returns \u003ccode\u003e x\" onclick=\"alert(1)=\"y\"\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eRender a nested atom name: \u003ccode\u003ePhoenix.HTML.attributes_escape(aria: [{:\"x\\\"\u0026gt;\u0026lt;script\u0026gt;\", \"y\"}]) |\u0026gt; Phoenix.HTML.safe_to_string()\u003c/code\u003e returns \u003ccode\u003e aria-x\"\u0026gt;\u0026lt;script\u0026gt;=\"y\"\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003ePlace any of these maps in a HEEx template as \u003ccode\u003e\u0026lt;div {@attrs}\u0026gt;\u003c/code\u003e to deliver the injected attribute to a browser.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Install a vulnerable release, for example `Mix.install([{:phoenix_html, \"== 4.3.0\"}])`.\n2. Render a binary name containing a space: `Phoenix.HTML.attributes_escape(%{\"x onmouseover\" =\u003e \"alert(1)\"}) |\u003e Phoenix.HTML.safe_to_string()` returns ` x onmouseover=\"alert(1)\"`.\n3. Render an atom name containing a quote: `Phoenix.HTML.attributes_escape([{:\"x\\\" onclick=\\\"alert(1)\", \"y\"}]) |\u003e Phoenix.HTML.safe_to_string()` returns ` x\" onclick=\"alert(1)=\"y\"`.\n4. Render a nested atom name: `Phoenix.HTML.attributes_escape(aria: [{:\"x\\\"\u003e\u003cscript\u003e\", \"y\"}]) |\u003e Phoenix.HTML.safe_to_string()` returns ` aria-x\"\u003e\u003cscript\u003e=\"y\"`.\n5. Place any of these maps in a HEEx template as `\u003cdiv {@attrs}\u003e` to deliver the injected attribute to a browser."
}
],
"value": "* Install a vulnerable release, for example Mix.install([{:phoenix_html, \"== 4.3.0\"}]).\n* Render a binary name containing a space: Phoenix.HTML.attributes_escape(%{\"x onmouseover\" =\u003e \"alert(1)\"}) |\u003e Phoenix.HTML.safe_to_string() returns x onmouseover=\"alert(1)\".\n* Render an atom name containing a quote: Phoenix.HTML.attributes_escape([{:\"x\\\" onclick=\\\"alert(1)\", \"y\"}]) |\u003e Phoenix.HTML.safe_to_string() returns x\" onclick=\"alert(1)=\"y\".\n* Render a nested atom name: Phoenix.HTML.attributes_escape(aria: [{:\"x\\\"\u003e\u003cscript\u003e\", \"y\"}]) |\u003e Phoenix.HTML.safe_to_string() returns aria-x\"\u003e\u003cscript\u003e=\"y\".\n* Place any of these maps in a HEEx template as \u003cdiv {@attrs}\u003e to deliver the injected attribute to a browser."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Attribute rendering.\u003c/strong\u003e \u003ccode\u003ePhoenix.HTML.attributes_escape/1\u003c/code\u003e walks the key-value pairs through \u003ccode\u003ebuild_attrs/1\u003c/code\u003e and \u003ccode\u003enested_attrs/3\u003c/code\u003e and emits each as \u003ccode\u003ekey_escape(k)=\"attr_escape(v)\"\u003c/code\u003e. Values are escaped. Names are not checked against the HTML attribute-name grammar.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Binary names.\u003c/strong\u003e \u003ccode\u003ekey_escape/1\u003c/code\u003e sends a binary through \u003ccode\u003ePhoenix.HTML.Engine.html_escape/1\u003c/code\u003e, which replaces \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\"\u003c/code\u003e and \u003ccode\u003e\u0027\u003c/code\u003e. Whitespace passes. HTML uses whitespace to separate attributes, so \u003ccode\u003e%{\"x onmouseover\" =\u0026gt; \"alert(1)\"}\u003c/code\u003e renders \u003ccode\u003e x onmouseover=\"alert(1)\"\u003c/code\u003e: a harmless \u003ccode\u003ex\u003c/code\u003e attribute followed by an attacker-chosen event handler.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Atom names.\u003c/strong\u003e \u003ccode\u003ekey_escape/1\u003c/code\u003e converts an atom with \u003ccode\u003eAtom.to_string/1\u003c/code\u003e and replaces \u003ccode\u003e_\u003c/code\u003e with \u003ccode\u003e-\u003c/code\u003e. Nothing is escaped, so \u003ccode\u003e[{:\"x\\\" onclick=\\\"alert(1)\", \"y\"}]\u003c/code\u003e renders \u003ccode\u003e x\" onclick=\"alert(1)=\"y\"\u003c/code\u003e and \u003ccode\u003earia: [{:\"x\\\"\u0026gt;\u0026lt;script\u0026gt;\", \"y\"}]\u003c/code\u003e renders \u003ccode\u003e aria-x\"\u0026gt;\u0026lt;script\u0026gt;=\"y\"\u003c/code\u003e, which leaves the tag entirely. This path needs the application to create atoms from untrusted input, for example \u003ccode\u003eJason.decode!(body, keys: :atoms)\u003c/code\u003e or \u003ccode\u003eString.to_atom/1\u003c/code\u003e on a parameter.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. Reachability.\u003c/strong\u003e HEEx compiles \u003ccode\u003e\u0026lt;div {@attrs}\u0026gt;\u003c/code\u003e to a call to \u003ccode\u003ePhoenix.HTML.attributes_escape/1\u003c/code\u003e through \u003ccode\u003ePhoenix.LiveView.HTMLEngine\u003c/code\u003e and \u003ccode\u003ePhoenix.LiveView.TagEngine\u003c/code\u003e. \u003ccode\u003etag/2\u003c/code\u003e and \u003ccode\u003econtent_tag/3\u003c/code\u003e in \u003ccode\u003ePhoenix.HTML.Tag\u003c/code\u003e (phoenix_html 1.x to 3.x) and in \u003ccode\u003ePhoenixHTMLHelpers.Tag\u003c/code\u003e (4.x) render attributes the same way. Versions before 3.0.0 emitted the dasherized name without any escaping at all.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Attribute rendering.** `Phoenix.HTML.attributes_escape/1` walks the key-value pairs through `build_attrs/1` and `nested_attrs/3` and emits each as `key_escape(k)=\"attr_escape(v)\"`. Values are escaped. Names are not checked against the HTML attribute-name grammar.\n\n**2. Binary names.** `key_escape/1` sends a binary through `Phoenix.HTML.Engine.html_escape/1`, which replaces `\u0026`, `\u003c`, `\u003e`, `\"` and `\u0027`. Whitespace passes. HTML uses whitespace to separate attributes, so `%{\"x onmouseover\" =\u003e \"alert(1)\"}` renders ` x onmouseover=\"alert(1)\"`: a harmless `x` attribute followed by an attacker-chosen event handler.\n\n**3. Atom names.** `key_escape/1` converts an atom with `Atom.to_string/1` and replaces `_` with `-`. Nothing is escaped, so `[{:\"x\\\" onclick=\\\"alert(1)\", \"y\"}]` renders ` x\" onclick=\"alert(1)=\"y\"` and `aria: [{:\"x\\\"\u003e\u003cscript\u003e\", \"y\"}]` renders ` aria-x\"\u003e\u003cscript\u003e=\"y\"`, which leaves the tag entirely. This path needs the application to create atoms from untrusted input, for example `Jason.decode!(body, keys: :atoms)` or `String.to_atom/1` on a parameter.\n\n**4. Reachability.** HEEx compiles `\u003cdiv {@attrs}\u003e` to a call to `Phoenix.HTML.attributes_escape/1` through `Phoenix.LiveView.HTMLEngine` and `Phoenix.LiveView.TagEngine`. `tag/2` and `content_tag/3` in `Phoenix.HTML.Tag` (phoenix_html 1.x to 3.x) and in `PhoenixHTMLHelpers.Tag` (4.x) render attributes the same way. Versions before 3.0.0 emitted the dasherized name without any escaping at all."
}
],
"value": "1. Attribute rendering. Phoenix.HTML.attributes_escape/1 walks the key-value pairs through build_attrs/1 and nested_attrs/3 and emits each as key_escape(k)=\"attr_escape(v)\". Values are escaped. Names are not checked against the HTML attribute-name grammar.\n\n2. Binary names. key_escape/1 sends a binary through Phoenix.HTML.Engine.html_escape/1, which replaces \u0026, \u003c, \u003e, \" and \u0027. Whitespace passes. HTML uses whitespace to separate attributes, so %{\"x onmouseover\" =\u003e \"alert(1)\"} renders x onmouseover=\"alert(1)\": a harmless x attribute followed by an attacker-chosen event handler.\n\n3. Atom names. key_escape/1 converts an atom with Atom.to_string/1 and replaces _ with -. Nothing is escaped, so [{:\"x\\\" onclick=\\\"alert(1)\", \"y\"}] renders x\" onclick=\"alert(1)=\"y\" and aria: [{:\"x\\\"\u003e\u003cscript\u003e\", \"y\"}] renders aria-x\"\u003e\u003cscript\u003e=\"y\", which leaves the tag entirely. This path needs the application to create atoms from untrusted input, for example Jason.decode!(body, keys: :atoms) or String.to_atom/1 on a parameter.\n\n4. Reachability. HEEx compiles \u003cdiv {@attrs}\u003e to a call to Phoenix.HTML.attributes_escape/1 through Phoenix.LiveView.HTMLEngine and Phoenix.LiveView.TagEngine. tag/2 and content_tag/3 in Phoenix.HTML.Tag (phoenix_html 1.x to 3.x) and in PhoenixHTMLHelpers.Tag (4.x) render attributes the same way. Versions before 3.0.0 emitted the dasherized name without any escaping at all."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-117645",
"datePublished": "2026-10-30T20:25:06.758Z",
"dateReserved": "2026-10-30T12:15:02.726Z",
"dateUpdated": "2026-11-20T05:59:50.999Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-64941 (GCVE-0-2026-64941)
Vulnerability from nvd – Published: 2026-08-10 11:05 – Updated: 2026-11-19 08:44
VLAI
EPSS
VEX
Title
Open redirect in Phoenix.LiveView.validate_local_url!/2 via ASCII tab, LF and CR
Summary
URL Redirection to Untrusted Site ('Open Redirect') vulnerability in phoenixframework phoenix_live_view allows an attacker to send a victim's browser to an origin of the attacker's choosing via a :to value containing ASCII tab, LF or CR.
redirect/2 validates :to through the private validate_local_url!/2 in lib/phoenix_live_view.ex, which is intended to guarantee the target is a path within the application. It rejects a leading // and any backslash, but not ASCII tab, LF or CR. Browsers strip those three characters before parsing a URL, so a value such as /<TAB>/example.com passes validation as a path and is then resolved as the scheme-relative URL //example.com. The live navigation functions share the guard but are not affected, because the client expands their target against the current origin. push_patch/2 is also affected before 0.7.0, which is when that expansion was added.
This issue affects phoenix_live_view: from 0.5.0 before 1.0.19, from 1.1.0-rc.0 before 1.1.33, and from 1.2.0-rc.0 before 1.2.9.
Severity
SSVC
Exploitation: poc
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-08-10 13:00 UTC
CWE
- CWE-601 - URL Redirection to Untrusted Site
Assigner
References
7 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix_live_view |
Affected:
0.5.0 , < 1.0.19
(semver)
Affected: 1.1.0-rc.0 , < 1.1.33 (semver) Affected: 1.2.0-rc.0 , < 1.2.9 (semver) cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix_live_view |
Affected:
b20dba3f65a380b2e4868dae03397f13d2daa070 , < *
(git)
cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:* |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-64941",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-08-10T13:00:10.932600Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-08-10T13:00:33.543Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-36m4-rm57-3prf"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView\u0027"
],
"packageName": "phoenix_live_view",
"packageURL": "pkg:hex/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView\u0027:redirect/2"
},
{
"name": "\u0027Elixir.Phoenix.LiveView\u0027:push_patch/2"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.0.19",
"status": "affected",
"version": "0.5.0",
"versionType": "semver"
},
{
"lessThan": "1.1.33",
"status": "affected",
"version": "1.1.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.2.9",
"status": "affected",
"version": "1.2.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView\u0027"
],
"packageName": "phoenixframework/phoenix_live_view",
"packageURL": "pkg:github/phoenixframework/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView\u0027:redirect/2"
},
{
"name": "\u0027Elixir.Phoenix.LiveView\u0027:push_patch/2"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "0b8c733133466912f81adecaea72b6712370242e",
"status": "unaffected"
},
{
"at": "1c164f83df0bb922dfff9c60d125da5b0cfd6619",
"status": "unaffected"
},
{
"at": "2068b304d71907064b159b6bc60c5ad85a876ecf",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "b20dba3f65a380b2e4868dae03397f13d2daa070",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must pass an externally influenced value as \u003ccode\u003e:to\u003c/code\u003e to \u003ccode\u003eredirect/2\u003c/code\u003e, or to \u003ccode\u003epush_patch/2\u003c/code\u003e before 0.7.0, for example a \u003ccode\u003ereturn_to\u003c/code\u003e parameter carried through sign-in or a navigation target taken from a \u003ccode\u003ehandle_event/3\u003c/code\u003e payload.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must pass an externally influenced value as `:to` to `redirect/2`, or to `push_patch/2` before 0.7.0, for example a `return_to` parameter carried through sign-in or a navigation target taken from a `handle_event/3` payload."
}
],
"value": "The application must pass an externally influenced value as :to to redirect/2, or to push_patch/2 before 0.7.0, for example a return_to parameter carried through sign-in or a navigation target taken from a handle_event/3 payload."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.0.19",
"versionStartIncluding": "0.5.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.1.33",
"versionStartIncluding": "1.1.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.2.9",
"versionStartIncluding": "1.2.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Eurico Nicacio"
},
{
"lang": "en",
"type": "analyst",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
},
{
"lang": "en",
"type": "remediation reviewer",
"value": "Jos\u00e9 Valim"
}
],
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eURL Redirection to Untrusted Site (\u0027Open Redirect\u0027) vulnerability in phoenixframework phoenix_live_view allows an attacker to send a victim\u0027s browser to an origin of the attacker\u0027s choosing via a \u003ccode\u003e:to\u003c/code\u003e value containing ASCII tab, LF or CR.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eredirect/2\u003c/code\u003e validates \u003ccode\u003e:to\u003c/code\u003e through the private \u003ccode\u003evalidate_local_url!/2\u003c/code\u003e in \u003ccode\u003elib/phoenix_live_view.ex\u003c/code\u003e, which is intended to guarantee the target is a path within the application. It rejects a leading \u003ccode\u003e//\u003c/code\u003e and any backslash, but not ASCII tab, LF or CR. Browsers strip those three characters before parsing a URL, so a value such as \u003ccode\u003e/\u0026lt;TAB\u0026gt;/example.com\u003c/code\u003e passes validation as a path and is then resolved as the scheme-relative URL \u003ccode\u003e//example.com\u003c/code\u003e. The live navigation functions share the guard but are not affected, because the client expands their target against the current origin. \u003ccode\u003epush_patch/2\u003c/code\u003e is also affected before 0.7.0, which is when that expansion was added.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix_live_view: from 0.5.0 before 1.0.19, from 1.1.0-rc.0 before 1.1.33, and from 1.2.0-rc.0 before 1.2.9.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "URL Redirection to Untrusted Site (\u0027Open Redirect\u0027) vulnerability in phoenixframework phoenix_live_view allows an attacker to send a victim\u0027s browser to an origin of the attacker\u0027s choosing via a `:to` value containing ASCII tab, LF or CR.\n\n`redirect/2` validates `:to` through the private `validate_local_url!/2` in `lib/phoenix_live_view.ex`, which is intended to guarantee the target is a path within the application. It rejects a leading `//` and any backslash, but not ASCII tab, LF or CR. Browsers strip those three characters before parsing a URL, so a value such as `/\u003cTAB\u003e/example.com` passes validation as a path and is then resolved as the scheme-relative URL `//example.com`. The live navigation functions share the guard but are not affected, because the client expands their target against the current origin. `push_patch/2` is also affected before 0.7.0, which is when that expansion was added.\n\nThis issue affects phoenix_live_view: from 0.5.0 before 1.0.19, from 1.1.0-rc.0 before 1.1.33, and from 1.2.0-rc.0 before 1.2.9."
}
],
"value": "URL Redirection to Untrusted Site (\u0027Open Redirect\u0027) vulnerability in phoenixframework phoenix_live_view allows an attacker to send a victim\u0027s browser to an origin of the attacker\u0027s choosing via a :to value containing ASCII tab, LF or CR.\n\nredirect/2 validates :to through the private validate_local_url!/2 in lib/phoenix_live_view.ex, which is intended to guarantee the target is a path within the application. It rejects a leading // and any backslash, but not ASCII tab, LF or CR. Browsers strip those three characters before parsing a URL, so a value such as /\u003cTAB\u003e/example.com passes validation as a path and is then resolved as the scheme-relative URL //example.com. The live navigation functions share the guard but are not affected, because the client expands their target against the current origin. push_patch/2 is also affected before 0.7.0, which is when that expansion was added.\n\nThis issue affects phoenix_live_view: from 0.5.0 before 1.0.19, from 1.1.0-rc.0 before 1.1.33, and from 1.2.0-rc.0 before 1.2.9."
}
],
"impacts": [
{
"capecId": "CAPEC-3",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-3 Using Leading \u0027Ghost\u0027 Character Sequences to Bypass Input Filters"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 2.1,
"baseSeverity": "LOW",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "LOW",
"subIntegrityImpact": "LOW",
"userInteraction": "ACTIVE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-601",
"description": "CWE-601 URL Redirection to Untrusted Site",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T08:44:28.157Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-36m4-rm57-3prf"
},
{
"name": "EEF CNA record for CVE-2026-64941",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-64941.html"
},
{
"name": "OSV record EEF-CVE-2026-64941",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-64941"
},
{
"name": "Introducing commit b20dba3 in phoenixframework/phoenix_live_view",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/b20dba3f65a380b2e4868dae03397f13d2daa070"
},
{
"name": "Fix commit 0b8c733 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/0b8c733133466912f81adecaea72b6712370242e"
},
{
"name": "Fix commit 1c164f8 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/1c164f83df0bb922dfff9c60d125da5b0cfd6619"
},
{
"name": "Fix commit 2068b30 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/2068b304d71907064b159b6bc60c5ad85a876ecf"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Open redirect in Phoenix.LiveView.validate_local_url!/2 via ASCII tab, LF and CR",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eReject any untrusted value containing ASCII tab, LF or CR before passing it as \u003ccode\u003e:to\u003c/code\u003e to \u003ccode\u003eredirect/2\u003c/code\u003e, or to \u003ccode\u003epush_patch/2\u003c/code\u003e before 0.7.0. Alternatively, map client-supplied navigation targets to a fixed set of known-good paths rather than forwarding the value.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Reject any untrusted value containing ASCII tab, LF or CR before passing it as `:to` to `redirect/2`, or to `push_patch/2` before 0.7.0. Alternatively, map client-supplied navigation targets to a fixed set of known-good paths rather than forwarding the value."
}
],
"value": "Reject any untrusted value containing ASCII tab, LF or CR before passing it as :to to redirect/2, or to push_patch/2 before 0.7.0. Alternatively, map client-supplied navigation targets to a fixed set of known-good paths rather than forwarding the value."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-64941",
"datePublished": "2026-08-10T11:05:14.571Z",
"dateReserved": "2026-08-09T16:30:01.572Z",
"dateUpdated": "2026-11-19T08:44:28.157Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-58228 (GCVE-0-2026-58228)
Vulnerability from nvd – Published: 2026-07-13 18:04 – Updated: 2026-11-24 05:20
VLAI
EPSS
VEX
Title
Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via <.link>
Summary
Cross-site scripting vulnerability in phoenixframework phoenix_live_view allows an attacker to bypass URL scheme validation and execute JavaScript in a victim's browser session.
The Phoenix.LiveView.Utils.valid_destination!/2 and Phoenix.LiveView.Utils.valid_live_navigation_destination!/2 functions in lib/phoenix_live_view/utils.ex rely on an internal uri_scheme/1 helper that only detects a scheme when the input's first byte is an ASCII letter. Inputs beginning with an ASCII control character or space fall through to a nil-returning clause, causing the URL to be treated as a safe relative path.
Standard browsers implement the WHATWG URL parser, which strips leading C0 control and space characters before parsing. As a result, an input such as " javascript:alert(1)" is passed unchanged into <.link href={...}> and, when clicked, is parsed by the browser as a javascript: URL that executes attacker-controlled script in the victim's session.
Applications that render user-supplied URLs (for example profile links, redirect targets, or external references) via <.link href={...}> are affected.
This issue affects phoenix_live_view: from 1.2.2 before 1.2.7.
Severity
SSVC
Exploitation: poc
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-07-13 18:58 UTC
CWE
- CWE-79 - Improper Neutralization of Input During Web Page Generation
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/phoenixframework/phoenix_live_… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-58228.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-58228 | related |
| https://github.com/phoenixframework/phoenix_live_… | related |
| https://github.com/phoenixframework/phoenix_live_… | patch |
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix_live_view |
Affected:
1.2.2 , < 1.2.7
(semver)
cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix_live_view |
Affected:
4b63216ae68886db99cf7772af23372d76c40e7e , < 86165533e311469a1b62093fd182d9d874de8106
(git)
cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:* |
Date Public
2026-07-13 18:04
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-58228",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-07-13T18:58:11.563760Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-07-13T18:58:51.407Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView.Utils\u0027"
],
"packageName": "phoenix_live_view",
"packageURL": "pkg:hex/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view/utils.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView.Utils\u0027:valid_destination!/2"
},
{
"name": "\u0027Elixir.Phoenix.LiveView.Utils\u0027:valid_live_navigation_destination!/2"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.2.7",
"status": "affected",
"version": "1.2.2",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView.Utils\u0027"
],
"packageName": "phoenixframework/phoenix_live_view",
"packageURL": "pkg:github/phoenixframework/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view/utils.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView.Utils\u0027:valid_destination!/2"
},
{
"name": "\u0027Elixir.Phoenix.LiveView.Utils\u0027:valid_live_navigation_destination!/2"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "86165533e311469a1b62093fd182d9d874de8106",
"status": "affected",
"version": "4b63216ae68886db99cf7772af23372d76c40e7e",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.2.7",
"versionStartIncluding": "1.2.2",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Barna Kovacs"
},
{
"lang": "en",
"type": "analyst",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "analyst",
"value": "Jos\u00e9 Valim"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
}
],
"datePublic": "2026-07-13T18:04:30.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eCross-site scripting vulnerability in phoenixframework phoenix_live_view allows an attacker to bypass URL scheme validation and execute JavaScript in a victim\u0027s browser session.\u003c/p\u003e\n\u003cp\u003eThe \u003ccode\u003ePhoenix.LiveView.Utils.valid_destination!/2\u003c/code\u003e and \u003ccode\u003ePhoenix.LiveView.Utils.valid_live_navigation_destination!/2\u003c/code\u003e functions in \u003ccode\u003elib/phoenix_live_view/utils.ex\u003c/code\u003e rely on an internal \u003ccode\u003euri_scheme/1\u003c/code\u003e helper that only detects a scheme when the input\u0027s first byte is an ASCII letter. Inputs beginning with an ASCII control character or space fall through to a nil-returning clause, causing the URL to be treated as a safe relative path.\u003c/p\u003e\n\u003cp\u003eStandard browsers implement the WHATWG URL parser, which strips leading C0 control and space characters before parsing. As a result, an input such as \u003ccode\u003e\" javascript:alert(1)\"\u003c/code\u003e is passed unchanged into \u003ccode\u003e\u0026lt;.link href={...}\u0026gt;\u003c/code\u003e and, when clicked, is parsed by the browser as a \u003ccode\u003ejavascript:\u003c/code\u003e URL that executes attacker-controlled script in the victim\u0027s session.\u003c/p\u003e\n\u003cp\u003eApplications that render user-supplied URLs (for example profile links, redirect targets, or external references) via \u003ccode\u003e\u0026lt;.link href={...}\u0026gt;\u003c/code\u003e are affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix_live_view: from 1.2.2 before 1.2.7.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Cross-site scripting vulnerability in phoenixframework phoenix_live_view allows an attacker to bypass URL scheme validation and execute JavaScript in a victim\u0027s browser session.\n\nThe `Phoenix.LiveView.Utils.valid_destination!/2` and `Phoenix.LiveView.Utils.valid_live_navigation_destination!/2` functions in `lib/phoenix_live_view/utils.ex` rely on an internal `uri_scheme/1` helper that only detects a scheme when the input\u0027s first byte is an ASCII letter. Inputs beginning with an ASCII control character or space fall through to a nil-returning clause, causing the URL to be treated as a safe relative path.\n\nStandard browsers implement the WHATWG URL parser, which strips leading C0 control and space characters before parsing. As a result, an input such as `\" javascript:alert(1)\"` is passed unchanged into `\u003c.link href={...}\u003e` and, when clicked, is parsed by the browser as a `javascript:` URL that executes attacker-controlled script in the victim\u0027s session.\n\nApplications that render user-supplied URLs (for example profile links, redirect targets, or external references) via `\u003c.link href={...}\u003e` are affected.\n\nThis issue affects phoenix_live_view: from 1.2.2 before 1.2.7."
}
],
"value": "Cross-site scripting vulnerability in phoenixframework phoenix_live_view allows an attacker to bypass URL scheme validation and execute JavaScript in a victim\u0027s browser session.\n\nThe Phoenix.LiveView.Utils.valid_destination!/2 and Phoenix.LiveView.Utils.valid_live_navigation_destination!/2 functions in lib/phoenix_live_view/utils.ex rely on an internal uri_scheme/1 helper that only detects a scheme when the input\u0027s first byte is an ASCII letter. Inputs beginning with an ASCII control character or space fall through to a nil-returning clause, causing the URL to be treated as a safe relative path.\n\nStandard browsers implement the WHATWG URL parser, which strips leading C0 control and space characters before parsing. As a result, an input such as \" javascript:alert(1)\" is passed unchanged into \u003c.link href={...}\u003e and, when clicked, is parsed by the browser as a javascript: URL that executes attacker-controlled script in the victim\u0027s session.\n\nApplications that render user-supplied URLs (for example profile links, redirect targets, or external references) via \u003c.link href={...}\u003e are affected.\n\nThis issue affects phoenix_live_view: from 1.2.2 before 1.2.7."
}
],
"impacts": [
{
"capecId": "CAPEC-63",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-63 Cross-Site Scripting (XSS)"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 5.1,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "HIGH",
"subIntegrityImpact": "HIGH",
"userInteraction": "ACTIVE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "LOW",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-79",
"description": "CWE-79 Improper Neutralization of Input During Web Page Generation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T05:20:41.604Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via \u003c.link\u003e",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq"
},
{
"name": "EEF CNA record for CVE-2026-58228",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-58228.html"
},
{
"name": "OSV record EEF-CVE-2026-58228",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-58228"
},
{
"name": "Introducing commit 4b63216 in phoenixframework/phoenix_live_view",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/4b63216ae68886db99cf7772af23372d76c40e7e"
},
{
"name": "Fix commit 8616553 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/86165533e311469a1b62093fd182d9d874de8106"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via \u003c.link\u003e",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eStrip leading ASCII control and space bytes (code points 0x00 through 0x20) from any untrusted URL before passing it to \u003ccode\u003e\u0026lt;.link href={...}\u0026gt;\u003c/code\u003e, or reject such inputs outright. This aligns application-level validation with the WHATWG URL parser used by browsers and prevents the scheme-detection bypass.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Strip leading ASCII control and space bytes (code points 0x00 through 0x20) from any untrusted URL before passing it to `\u003c.link href={...}\u003e`, or reject such inputs outright. This aligns application-level validation with the WHATWG URL parser used by browsers and prevents the scheme-detection bypass."
}
],
"value": "Strip leading ASCII control and space bytes (code points 0x00 through 0x20) from any untrusted URL before passing it to \u003c.link href={...}\u003e, or reject such inputs outright. This aligns application-level validation with the WHATWG URL parser used by browsers and prevents the scheme-detection bypass."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-58228",
"datePublished": "2026-07-13T18:04:30.636Z",
"dateReserved": "2026-06-29T18:54:08.633Z",
"dateUpdated": "2026-11-24T05:20:41.604Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-56812 (GCVE-0-2026-56812)
Vulnerability from nvd – Published: 2026-07-07 15:22 – Updated: 2026-09-24 21:29
VLAI
EPSS
VEX
Title
Phoenix JavaScript presence client crashes on presence keys colliding with Object.prototype members in Presence.syncState/syncDiff
Summary
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.
Severity
SSVC
Exploitation: poc
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-07-07 16:11 UTC
CWE
- CWE-754 - Improper Check for Unusual or Exceptional Conditions
Assigner
References
8 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix |
Affected:
1.2.0-rc.0 , < 1.5.15
(semver)
Affected: 1.6.0-rc.0 , < 1.6.17 (semver) Affected: 1.7.0-rc.0 , < 1.7.24 (semver) Affected: 1.8.0-rc.0 , < 1.8.9 (semver) cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix |
Affected:
2270aaf21bd02c6a6a1022820564efb605a97655 , < *
(git)
cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
Date Public
2026-07-07 15:22
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-56812",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-07-07T16:11:03.353715Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-07-07T16:11:10.938Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-63mc-hw7g-86rr"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"Presence"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"assets/js/phoenix/presence.js"
],
"programRoutines": [
{
"name": "Presence.syncState"
},
{
"name": "Presence.syncDiff"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.15",
"status": "affected",
"version": "1.2.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.6.17",
"status": "affected",
"version": "1.6.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.7.24",
"status": "affected",
"version": "1.7.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.8.9",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://registry.npmjs.org",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"Presence"
],
"packageName": "phoenix",
"packageURL": "pkg:npm/phoenix",
"product": "phoenix",
"programFiles": [
"assets/js/phoenix/presence.js"
],
"programRoutines": [
{
"name": "Presence.syncState"
},
{
"name": "Presence.syncDiff"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.15",
"status": "affected",
"version": "1.2.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.6.17",
"status": "affected",
"version": "1.6.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.7.24",
"status": "affected",
"version": "1.7.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.8.9",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"Presence"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"assets/js/phoenix/presence.js"
],
"programRoutines": [
{
"name": "Presence.syncState"
},
{
"name": "Presence.syncDiff"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "7f7b971c1ea0994e3fbd1c11ddb05e780bd38ad8",
"status": "unaffected"
},
{
"at": "89a1c4be161e436241e12b2378a719904b9bd96f",
"status": "unaffected"
},
{
"at": "b90b22521465ece00eb5a19d5aa2b9465b209c85",
"status": "unaffected"
},
{
"at": "beffc4da1e787e572121f68902c63daf4fe7d9c2",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "2270aaf21bd02c6a6a1022820564efb605a97655",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must use \u003ccode\u003ePhoenix.Presence\u003c/code\u003e (or otherwise drive the Phoenix JavaScript presence client) and track presences under keys that are influenced by untrusted client input, for example a username or id chosen by the connecting user. Applications that derive presence keys exclusively from server-controlled, validated values are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must use `Phoenix.Presence` (or otherwise drive the Phoenix JavaScript presence client) and track presences under keys that are influenced by untrusted client input, for example a username or id chosen by the connecting user. Applications that derive presence keys exclusively from server-controlled, validated values are not affected."
}
],
"value": "The application must use Phoenix.Presence (or otherwise drive the Phoenix JavaScript presence client) and track presences under keys that are influenced by untrusted client input, for example a username or id chosen by the connecting user. Applications that derive presence keys exclusively from server-controlled, validated values are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.5.15",
"versionStartIncluding": "1.2.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.6.17",
"versionStartIncluding": "1.6.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.7.24",
"versionStartIncluding": "1.7.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.8.9",
"versionStartIncluding": "1.8.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "analyst",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "analyst",
"value": "Jos\u00e9 Valim"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
}
],
"datePublic": "2026-07-07T15:22:46.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper 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.\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program files \u003ccode\u003eassets/js/phoenix/presence.js\u003c/code\u003e and program routines \u003ccode\u003ePresence.syncState\u003c/code\u003e and \u003ccode\u003ePresence.syncDiff\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThe Phoenix JavaScript presence client checks whether a presence already exists with a bare truthiness test (\u003ccode\u003estate[key]\u003c/code\u003e) 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 \u003ccode\u003eObject.prototype\u003c/code\u003e member name (\u003ccode\u003e__proto__\u003c/code\u003e, \u003ccode\u003econstructor\u003c/code\u003e, \u003ccode\u003etoString\u003c/code\u003e, \u003ccode\u003ehasOwnProperty\u003c/code\u003e, and similar) makes that lookup return JavaScript\u0027s built-in \u003ccode\u003eObject.prototype\u003c/code\u003e instead of \u003ccode\u003eundefined\u003c/code\u003e. Because the prototype is truthy, the code treats it as an existing presence and reads \u003ccode\u003e.metas.map(...)\u003c/code\u003e off it, which throws an uncaught \u003ccode\u003eTypeError\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThe exception propagates out of the presence message handler, so the local state is never updated and \u003ccode\u003eonSync()\u003c/code\u003e 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 \u003ccode\u003esyncState\u003c/code\u003e and \u003ccode\u003esyncDiff\u003c/code\u003e 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 \u003ccode\u003eObject.prototype\u003c/code\u003e (it is not prototype pollution).\u003c/p\u003e\n\u003cp\u003eThis 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.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "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\u0027s 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."
}
],
"value": "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\u0027s 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."
}
],
"impacts": [
{
"capecId": "CAPEC-153",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-153 Input Data Manipulation"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-754",
"description": "CWE-754 Improper Check for Unusual or Exceptional Conditions",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-09-24T21:29:18.181Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-63mc-hw7g-86rr"
},
{
"name": "EEF CNA record for CVE-2026-56812",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-56812.html"
},
{
"name": "OSV record EEF-CVE-2026-56812",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-56812"
},
{
"name": "Introducing commit 2270aaf in phoenixframework/phoenix",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix/commit/2270aaf21bd02c6a6a1022820564efb605a97655"
},
{
"name": "Fix commit 7f7b971 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/7f7b971c1ea0994e3fbd1c11ddb05e780bd38ad8"
},
{
"name": "Fix commit 89a1c4b in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/89a1c4be161e436241e12b2378a719904b9bd96f"
},
{
"name": "Fix commit b90b225 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/b90b22521465ece00eb5a19d5aa2b9465b209c85"
},
{
"name": "Fix commit beffc4d in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/beffc4da1e787e572121f68902c63daf4fe7d9c2"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Phoenix JavaScript presence client crashes on presence keys colliding with Object.prototype members in Presence.syncState/syncDiff",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eReject or sanitize presence keys that collide with JavaScript \u003ccode\u003eObject.prototype\u003c/code\u003e member names (for example \u003ccode\u003e__proto__\u003c/code\u003e, \u003ccode\u003econstructor\u003c/code\u003e, \u003ccode\u003eprototype\u003c/code\u003e, \u003ccode\u003etoString\u003c/code\u003e, \u003ccode\u003ehasOwnProperty\u003c/code\u003e) before calling \u003ccode\u003ePhoenix.Presence.track\u003c/code\u003e, 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.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "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."
}
],
"value": "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."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-56812",
"datePublished": "2026-07-07T15:22:46.933Z",
"dateReserved": "2026-06-23T12:29:02.507Z",
"dateUpdated": "2026-09-24T21:29:18.181Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-56811 (GCVE-0-2026-56811)
Vulnerability from nvd – Published: 2026-07-07 15:09 – Updated: 2026-11-20 06:02
VLAI
EPSS
VEX
Title
Phoenix transports do not limit channel joins per connection, enabling process-exhaustion denial of service
Summary
Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix (Phoenix.Socket module) allows an unauthenticated attacker to cause a denial of service against any endpoint that mounts a Phoenix socket with a reachable channel transport (WebSocket or LongPoll).
This vulnerability is associated with program files lib/phoenix/socket.ex and program routine 'Elixir.Phoenix.Socket':handle_in/4.
Phoenix transports do not limit the number of channels that a single transport process may join. Every phx_join message a client sends over one connection starts a persistent channel process, and the socket process accepts an unbounded number of them. A single unauthenticated client can therefore open one WebSocket or LongPoll connection and stream a large number of phx_join messages, spawning hundreds of thousands of channel processes over that one connection and eventually reaching the BEAM maximum process limit. Once the process table is exhausted the virtual machine can no longer start new processes, denying service to legitimate traffic across the whole node. Because the amplification happens inside a single connection, network-layer connection caps and rate limiting do not mitigate it.
The fix adds a :max_channels_per_transport option (default 100) that bounds the number of channels a single transport process can join, forcing abusive clients to open many connections instead, where external load balancers and reverse proxies can throttle them.
This issue affects phoenix: from 0.11.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.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-07-07 16:12 UTC
CWE
- CWE-770 - Allocation of Resources Without Limits or Throttling
Assigner
References
8 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix |
Affected:
0.11.0 , < 1.5.15
(semver)
Affected: 1.6.0-rc.0 , < 1.6.17 (semver) Affected: 1.7.0-rc.0 , < 1.7.24 (semver) Affected: 1.8.0-rc.0 , < 1.8.9 (semver) cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix |
Affected:
14a297e88023cb280a577962a49a0bbdeef9f4eb , < *
(git)
cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
Date Public
2026-07-07 15:09
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-56811",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-07-07T16:12:27.662417Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-07-07T16:12:37.299Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Socket\u0027"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/socket.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Socket\u0027:handle_in/4"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.15",
"status": "affected",
"version": "0.11.0",
"versionType": "semver"
},
{
"lessThan": "1.6.17",
"status": "affected",
"version": "1.6.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.7.24",
"status": "affected",
"version": "1.7.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.8.9",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Socket\u0027"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/socket.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Socket\u0027:handle_in/4"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "16e295d2fccab185d1292322e2bee5d46c725c8a",
"status": "unaffected"
},
{
"at": "a612100cd8a4279091abc1a2ef8fb98a6d01c0a1",
"status": "unaffected"
},
{
"at": "c498ba8cf49f6accbbd0c643a5340b58db891218",
"status": "unaffected"
},
{
"at": "d19ca0a8d9f82c130b7ed339b9f033433e2dea5e",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "14a297e88023cb280a577962a49a0bbdeef9f4eb",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must mount a Phoenix socket that defines channels and expose it over HTTP so that a client can reach a channel transport (WebSocket or LongPoll) and send \u003ccode\u003ephx_join\u003c/code\u003e messages. The WebSocket transport is enabled by default on a mounted socket, while the LongPoll transport is opt-in. Applications that do not mount a socket with channels are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must mount a Phoenix socket that defines channels and expose it over HTTP so that a client can reach a channel transport (WebSocket or LongPoll) and send `phx_join` messages. The WebSocket transport is enabled by default on a mounted socket, while the LongPoll transport is opt-in. Applications that do not mount a socket with channels are not affected."
}
],
"value": "The application must mount a Phoenix socket that defines channels and expose it over HTTP so that a client can reach a channel transport (WebSocket or LongPoll) and send phx_join messages. The WebSocket transport is enabled by default on a mounted socket, while the LongPoll transport is opt-in. Applications that do not mount a socket with channels are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.5.15",
"versionStartIncluding": "0.11.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.6.17",
"versionStartIncluding": "1.6.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.7.24",
"versionStartIncluding": "1.7.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.8.9",
"versionStartIncluding": "1.8.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "analyst",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "analyst",
"value": "Jos\u00e9 Valim"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
}
],
"datePublic": "2026-07-07T15:09:57.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAllocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix (\u003ccode\u003ePhoenix.Socket\u003c/code\u003e module) allows an unauthenticated attacker to cause a denial of service against any endpoint that mounts a Phoenix socket with a reachable channel transport (WebSocket or LongPoll).\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program files \u003ccode\u003elib/phoenix/socket.ex\u003c/code\u003e and program routine \u003ccode\u003e\u0027Elixir.Phoenix.Socket\u0027:handle_in/4\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003ePhoenix transports do not limit the number of channels that a single transport process may join. Every \u003ccode\u003ephx_join\u003c/code\u003e message a client sends over one connection starts a persistent channel process, and the socket process accepts an unbounded number of them. A single unauthenticated client can therefore open one WebSocket or LongPoll connection and stream a large number of \u003ccode\u003ephx_join\u003c/code\u003e messages, spawning hundreds of thousands of channel processes over that one connection and eventually reaching the BEAM maximum process limit. Once the process table is exhausted the virtual machine can no longer start new processes, denying service to legitimate traffic across the whole node. Because the amplification happens inside a single connection, network-layer connection caps and rate limiting do not mitigate it.\u003c/p\u003e\n\u003cp\u003eThe fix adds a \u003ccode\u003e:max_channels_per_transport\u003c/code\u003e option (default \u003ccode\u003e100\u003c/code\u003e) that bounds the number of channels a single transport process can join, forcing abusive clients to open many connections instead, where external load balancers and reverse proxies can throttle them.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix: from 0.11.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.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix (`Phoenix.Socket` module) allows an unauthenticated attacker to cause a denial of service against any endpoint that mounts a Phoenix socket with a reachable channel transport (WebSocket or LongPoll).\n\nThis vulnerability is associated with program files `lib/phoenix/socket.ex` and program routine `\u0027Elixir.Phoenix.Socket\u0027:handle_in/4`.\n\nPhoenix transports do not limit the number of channels that a single transport process may join. Every `phx_join` message a client sends over one connection starts a persistent channel process, and the socket process accepts an unbounded number of them. A single unauthenticated client can therefore open one WebSocket or LongPoll connection and stream a large number of `phx_join` messages, spawning hundreds of thousands of channel processes over that one connection and eventually reaching the BEAM maximum process limit. Once the process table is exhausted the virtual machine can no longer start new processes, denying service to legitimate traffic across the whole node. Because the amplification happens inside a single connection, network-layer connection caps and rate limiting do not mitigate it.\n\nThe fix adds a `:max_channels_per_transport` option (default `100`) that bounds the number of channels a single transport process can join, forcing abusive clients to open many connections instead, where external load balancers and reverse proxies can throttle them.\n\nThis issue affects phoenix: from 0.11.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."
}
],
"value": "Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix (Phoenix.Socket module) allows an unauthenticated attacker to cause a denial of service against any endpoint that mounts a Phoenix socket with a reachable channel transport (WebSocket or LongPoll).\n\nThis vulnerability is associated with program files lib/phoenix/socket.ex and program routine \u0027Elixir.Phoenix.Socket\u0027:handle_in/4.\n\nPhoenix transports do not limit the number of channels that a single transport process may join. Every phx_join message a client sends over one connection starts a persistent channel process, and the socket process accepts an unbounded number of them. A single unauthenticated client can therefore open one WebSocket or LongPoll connection and stream a large number of phx_join messages, spawning hundreds of thousands of channel processes over that one connection and eventually reaching the BEAM maximum process limit. Once the process table is exhausted the virtual machine can no longer start new processes, denying service to legitimate traffic across the whole node. Because the amplification happens inside a single connection, network-layer connection caps and rate limiting do not mitigate it.\n\nThe fix adds a :max_channels_per_transport option (default 100) that bounds the number of channels a single transport process can join, forcing abusive clients to open many connections instead, where external load balancers and reverse proxies can throttle them.\n\nThis issue affects phoenix: from 0.11.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."
}
],
"impacts": [
{
"capecId": "CAPEC-130",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-130 Excessive Allocation"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 8.7,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-770",
"description": "CWE-770 Allocation of Resources Without Limits or Throttling",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T06:02:03.163Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-6983-jfq8-485w"
},
{
"name": "EEF CNA record for CVE-2026-56811",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-56811.html"
},
{
"name": "OSV record EEF-CVE-2026-56811",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-56811"
},
{
"name": "Introducing commit 14a297e in phoenixframework/phoenix",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix/commit/14a297e88023cb280a577962a49a0bbdeef9f4eb"
},
{
"name": "Fix commit 16e295d in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/16e295d2fccab185d1292322e2bee5d46c725c8a"
},
{
"name": "Fix commit a612100 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/a612100cd8a4279091abc1a2ef8fb98a6d01c0a1"
},
{
"name": "Fix commit c498ba8 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/c498ba8cf49f6accbbd0c643a5340b58db891218"
},
{
"name": "Fix commit d19ca0a in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/d19ca0a8d9f82c130b7ed339b9f033433e2dea5e"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Phoenix transports do not limit channel joins per connection, enabling process-exhaustion denial of service",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eFront the socket endpoint with a reverse proxy that limits the number and rate of channel-join frames per connection, or disable transports that are not needed (for example remove \u003ccode\u003elongpoll: true\u003c/code\u003e from the \u003ccode\u003esocket\u003c/code\u003e declaration where the LongPoll transport is not required). Lowering the BEAM \u003ccode\u003e+P\u003c/code\u003e maximum process limit does not prevent the exhaustion and can make it easier to trigger.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Front the socket endpoint with a reverse proxy that limits the number and rate of channel-join frames per connection, or disable transports that are not needed (for example remove `longpoll: true` from the `socket` declaration where the LongPoll transport is not required). Lowering the BEAM `+P` maximum process limit does not prevent the exhaustion and can make it easier to trigger."
}
],
"value": "Front the socket endpoint with a reverse proxy that limits the number and rate of channel-join frames per connection, or disable transports that are not needed (for example remove longpoll: true from the socket declaration where the LongPoll transport is not required). Lowering the BEAM +P maximum process limit does not prevent the exhaustion and can make it easier to trigger."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-56811",
"datePublished": "2026-07-07T15:09:57.581Z",
"dateReserved": "2026-06-23T12:29:02.507Z",
"dateUpdated": "2026-11-20T06:02:03.163Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-32689 (GCVE-0-2026-32689)
Vulnerability from nvd – Published: 2026-05-05 15:17 – Updated: 2026-11-20 05:55
VLAI
EPSS
VEX
Title
Long-poll NDJSON body splitting causes unbounded memory allocation in Phoenix
Summary
Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix allows a denial of service via the long-poll transport's NDJSON body handling.
In Phoenix.Transports.LongPoll.publish/4, when a POST request is received with Content-Type: application/x-ndjson, the request body is split on newline characters using String.split/2 with no limit on the number of resulting segments. An attacker can send a body consisting entirely of newline bytes, causing a 1:1 amplification into a list of empty binaries — a 1 MB body produces approximately one million list elements, an 8 MB body approximately 8.4 million. Each element is then walked by Enum.map, materializing another list of the same size. This exhausts BEAM memory and schedulers, crashing the node and terminating all active sessions.
A session token required to reach the vulnerable endpoint is freely obtainable by any client via an unauthenticated GET request to the same URL with a matching Origin header, making this attack effectively unauthenticated.
This issue affects phoenix: from 1.7.0 before 1.7.22 and from 1.8.0-rc.0 before 1.8.6.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-05-05 18:37 UTC
CWE
- CWE-770 - Allocation of Resources Without Limits or Throttling
Assigner
References
6 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix |
Affected:
1.7.0 , < 1.7.22
(semver)
Affected: 1.8.0-rc.0 , < 1.8.6 (semver) cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix |
Affected:
2674c6ea30634667f9b09966b90269393b445953 , < *
(git)
cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
Date Public
2026-05-05 15:17
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-32689",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-05-05T18:37:12.444769Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-05-06T15:25:17.607Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Transports.LongPoll\u0027"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/transports/long_poll.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Transports.LongPoll\u0027:publish/4"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.7.22",
"status": "affected",
"version": "1.7.0",
"versionType": "semver"
},
{
"lessThan": "1.8.6",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Transports.LongPoll\u0027"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/transports/long_poll.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Transports.LongPoll\u0027:publish/4"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "1a67c61ff9ce0a7711662ac7354861917a7c80f7",
"status": "unaffected"
},
{
"at": "912ea181fd247c21dbcc49fb97d0053b947d81bf",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "2674c6ea30634667f9b09966b90269393b445953",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eA \u003ccode\u003ePhoenix.Socket\u003c/code\u003e must be configured with the \u003ccode\u003elongpoll\u003c/code\u003e option enabled. Phoenix LiveView applications enable the longpoll transport by default via the \u003ccode\u003e/live\u003c/code\u003e socket.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "A `Phoenix.Socket` must be configured with the `longpoll` option enabled. Phoenix LiveView applications enable the longpoll transport by default via the `/live` socket."
}
],
"value": "A Phoenix.Socket must be configured with the longpoll option enabled. Phoenix LiveView applications enable the longpoll transport by default via the /live socket."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.7.22",
"versionStartIncluding": "1.7.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.8.6",
"versionStartIncluding": "1.8.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Peter Ullrich"
}
],
"datePublic": "2026-05-05T15:17:30.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAllocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix allows a denial of service via the long-poll transport\u0027s NDJSON body handling.\u003c/p\u003e\n\u003cp\u003eIn \u003ccode\u003ePhoenix.Transports.LongPoll.publish/4\u003c/code\u003e, when a POST request is received with \u003ccode\u003eContent-Type: application/x-ndjson\u003c/code\u003e, the request body is split on newline characters using \u003ccode\u003eString.split/2\u003c/code\u003e with no limit on the number of resulting segments. An attacker can send a body consisting entirely of newline bytes, causing a 1:1 amplification into a list of empty binaries \u2014 a 1 MB body produces approximately one million list elements, an 8 MB body approximately 8.4 million. Each element is then walked by \u003ccode\u003eEnum.map\u003c/code\u003e, materializing another list of the same size. This exhausts BEAM memory and schedulers, crashing the node and terminating all active sessions.\u003c/p\u003e\n\u003cp\u003eA session token required to reach the vulnerable endpoint is freely obtainable by any client via an unauthenticated GET request to the same URL with a matching \u003ccode\u003eOrigin\u003c/code\u003e header, making this attack effectively unauthenticated.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix: from 1.7.0 before 1.7.22 and from 1.8.0-rc.0 before 1.8.6.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix allows a denial of service via the long-poll transport\u0027s NDJSON body handling.\n\nIn `Phoenix.Transports.LongPoll.publish/4`, when a POST request is received with `Content-Type: application/x-ndjson`, the request body is split on newline characters using `String.split/2` with no limit on the number of resulting segments. An attacker can send a body consisting entirely of newline bytes, causing a 1:1 amplification into a list of empty binaries \u2014 a 1 MB body produces approximately one million list elements, an 8 MB body approximately 8.4 million. Each element is then walked by `Enum.map`, materializing another list of the same size. This exhausts BEAM memory and schedulers, crashing the node and terminating all active sessions.\n\nA session token required to reach the vulnerable endpoint is freely obtainable by any client via an unauthenticated GET request to the same URL with a matching `Origin` header, making this attack effectively unauthenticated.\n\nThis issue affects phoenix: from 1.7.0 before 1.7.22 and from 1.8.0-rc.0 before 1.8.6."
}
],
"value": "Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix allows a denial of service via the long-poll transport\u0027s NDJSON body handling.\n\nIn Phoenix.Transports.LongPoll.publish/4, when a POST request is received with Content-Type: application/x-ndjson, the request body is split on newline characters using String.split/2 with no limit on the number of resulting segments. An attacker can send a body consisting entirely of newline bytes, causing a 1:1 amplification into a list of empty binaries \u2014 a 1 MB body produces approximately one million list elements, an 8 MB body approximately 8.4 million. Each element is then walked by Enum.map, materializing another list of the same size. This exhausts BEAM memory and schedulers, crashing the node and terminating all active sessions.\n\nA session token required to reach the vulnerable endpoint is freely obtainable by any client via an unauthenticated GET request to the same URL with a matching Origin header, making this attack effectively unauthenticated.\n\nThis issue affects phoenix: from 1.7.0 before 1.7.22 and from 1.8.0-rc.0 before 1.8.6."
}
],
"impacts": [
{
"capecId": "CAPEC-130",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-130 Excessive Allocation"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 8.7,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-770",
"description": "CWE-770 Allocation of Resources Without Limits or Throttling",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T05:55:09.084Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Long-poll NDJSON body splitting causes large memory allocation in Phoenix",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-628h-q48j-jr6q"
},
{
"name": "EEF CNA record for CVE-2026-32689",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-32689.html"
},
{
"name": "OSV record EEF-CVE-2026-32689",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-32689"
},
{
"name": "Introducing commit 2674c6e in phoenixframework/phoenix",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix/commit/2674c6ea30634667f9b09966b90269393b445953"
},
{
"name": "Fix commit 1a67c61 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/1a67c61ff9ce0a7711662ac7354861917a7c80f7"
},
{
"name": "Fix commit 912ea18 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/912ea181fd247c21dbcc49fb97d0053b947d81bf"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Long-poll NDJSON body splitting causes unbounded memory allocation in Phoenix",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eDisable the longpoll transport on all \u003ccode\u003ePhoenix.Socket\u003c/code\u003e declarations, including the LiveView \u003ccode\u003e/live\u003c/code\u003e socket, by removing or setting \u003ccode\u003elongpoll: false\u003c/code\u003e. Note that this prevents clients that cannot use WebSockets from connecting.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Disable the longpoll transport on all `Phoenix.Socket` declarations, including the LiveView `/live` socket, by removing or setting `longpoll: false`. Note that this prevents clients that cannot use WebSockets from connecting."
}
],
"value": "Disable the longpoll transport on all Phoenix.Socket declarations, including the LiveView /live socket, by removing or setting longpoll: false. Note that this prevents clients that cannot use WebSockets from connecting."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-32689",
"datePublished": "2026-05-05T15:17:30.664Z",
"dateReserved": "2026-03-13T09:12:14.475Z",
"dateUpdated": "2026-11-20T05:55:09.084Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2021-46871 (GCVE-0-2021-46871)
Vulnerability from nvd – Published: 2023-01-10 00:00 – Updated: 2025-04-09 17:21
VLAI
EPSS
VEX
Summary
tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes.
Severity
6.1 (Medium)
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2025-04-09 17:20 UTC
CWE
- n/a
- CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Assigner
References
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-04T05:17:42.955Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://github.com/advisories/GHSA-j3gg-r6gp-95q2"
},
{
"tags": [
"x_transferred"
],
"url": "https://github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
}
},
{
"other": {
"content": {
"id": "CVE-2021-46871",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-04-09T17:20:34.911859Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-79",
"description": "CWE-79 Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2025-04-09T17:21:41.118Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "n/a",
"vendor": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes."
}
],
"problemTypes": [
{
"descriptions": [
{
"description": "n/a",
"lang": "en",
"type": "text"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2023-01-10T00:00:00.000Z",
"orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
"shortName": "mitre"
},
"references": [
{
"url": "https://github.com/advisories/GHSA-j3gg-r6gp-95q2"
},
{
"url": "https://github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620"
}
]
}
},
"cveMetadata": {
"assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
"assignerShortName": "mitre",
"cveId": "CVE-2021-46871",
"datePublished": "2023-01-10T00:00:00.000Z",
"dateReserved": "2023-01-10T00:00:00.000Z",
"dateUpdated": "2025-04-09T17:21:41.118Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
CVE-2022-42975 (GCVE-0-2022-42975)
Vulnerability from nvd – Published: 2022-10-17 00:00 – Updated: 2025-05-10 03:06
VLAI
EPSS
VEX
Summary
socket/transport.ex in Phoenix before 1.6.14 mishandles check_origin wildcarding. NOTE: LiveView applications are unaffected by default because of the presence of a LiveView CSRF token.
Severity
7.5 (High)
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2025-05-10 03:03 UTC
CWE
- n/a
- CWE-863 - Incorrect Authorization
Assigner
References
1 reference
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-03T13:19:05.555Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://github.com/phoenixframework/phoenix/commit/6e7185b33a59e0b1d1c0b4223adf340a73e963ae"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"version": "3.1"
}
},
{
"other": {
"content": {
"id": "CVE-2022-42975",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-05-10T03:03:26.090952Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-863",
"description": "CWE-863 Incorrect Authorization",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2025-05-10T03:06:11.566Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "n/a",
"vendor": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "socket/transport.ex in Phoenix before 1.6.14 mishandles check_origin wildcarding. NOTE: LiveView applications are unaffected by default because of the presence of a LiveView CSRF token."
}
],
"problemTypes": [
{
"descriptions": [
{
"description": "n/a",
"lang": "en",
"type": "text"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2022-10-17T00:00:00.000Z",
"orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
"shortName": "mitre"
},
"references": [
{
"url": "https://github.com/phoenixframework/phoenix/commit/6e7185b33a59e0b1d1c0b4223adf340a73e963ae"
}
]
}
},
"cveMetadata": {
"assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
"assignerShortName": "mitre",
"cveId": "CVE-2022-42975",
"datePublished": "2022-10-17T00:00:00.000Z",
"dateReserved": "2022-10-17T00:00:00.000Z",
"dateUpdated": "2025-05-10T03:06:11.566Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
CVE-2017-1000163 (GCVE-0-2017-1000163)
Vulnerability from nvd – Published: 2017-11-17 21:00 – Updated: 2024-09-17 03:59
VLAI
EPSS
VEX
Summary
The Phoenix Framework versions 1.0.0 through 1.0.4, 1.1.0 through 1.1.6, 1.2.0, 1.2.2 and 1.3.0-rc.0 are vulnerable to unvalidated URL redirection, which may result in phishing or social engineering attacks.
Severity
No CVSS data available.
CWE
- n/a
Assigner
References
1 reference
| URL | Tags |
|---|---|
| https://elixirforum.com/t/security-releases-for-p… | x_refsource_CONFIRM |
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-05T21:53:07.095Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
],
"url": "https://elixirforum.com/t/security-releases-for-phoenix/4143"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"product": "n/a",
"vendor": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"dateAssigned": "2017-08-22T00:00:00.000Z",
"descriptions": [
{
"lang": "en",
"value": "The Phoenix Framework versions 1.0.0 through 1.0.4, 1.1.0 through 1.1.6, 1.2.0, 1.2.2 and 1.3.0-rc.0 are vulnerable to unvalidated URL redirection, which may result in phishing or social engineering attacks."
}
],
"problemTypes": [
{
"descriptions": [
{
"description": "n/a",
"lang": "en",
"type": "text"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2017-11-17T21:00:00.000Z",
"orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
"shortName": "mitre"
},
"references": [
{
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://elixirforum.com/t/security-releases-for-phoenix/4143"
}
],
"x_legacyV4Record": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"DATE_ASSIGNED": "2017-08-22T17:29:33.374827",
"ID": "CVE-2017-1000163",
"REQUESTER": "griffin.byatt@nccgroup.trust",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "n/a",
"version": {
"version_data": [
{
"version_value": "n/a"
}
]
}
}
]
},
"vendor_name": "n/a"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "The Phoenix Framework versions 1.0.0 through 1.0.4, 1.1.0 through 1.1.6, 1.2.0, 1.2.2 and 1.3.0-rc.0 are vulnerable to unvalidated URL redirection, which may result in phishing or social engineering attacks."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "n/a"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://elixirforum.com/t/security-releases-for-phoenix/4143",
"refsource": "CONFIRM",
"url": "https://elixirforum.com/t/security-releases-for-phoenix/4143"
}
]
}
}
}
},
"cveMetadata": {
"assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
"assignerShortName": "mitre",
"cveId": "CVE-2017-1000163",
"datePublished": "2017-11-17T21:00:00.000Z",
"dateReserved": "2017-11-17T00:00:00.000Z",
"dateUpdated": "2024-09-17T03:59:53.617Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
CVE-2026-128361 (GCVE-0-2026-128361)
Vulnerability from cvelistv5 – Published: 2026-11-21 11:09 – Updated: 2026-11-24 04:38
VLAI
EPSS
VEX
Title
Unsanitized presence key crashes Presence tracker
Summary
Improper Input Validation vulnerability in phoenixframework phoenix (Phoenix.Presence) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.
track/3,4 accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with to_string/1 only later, in Phoenix.Presence.group/1, which raises Protocol.UndefinedError on a map. group/1 runs whenever presences are listed and when each presence diff is broadcast, together with the application's fetch/2, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.
From 1.7.0 the diff runs in a Task.Supervisor.async task linked to the tracker shard, and Phoenix.Presence.handle_info/2 has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.
This issue affects phoenix: from 1.2.0 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-23 20:27 UTC
CWE
- CWE-20 - Improper Input Validation
Assigner
References
8 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix |
Affected:
1.2.0 , < 1.5.16
(semver)
Affected: 1.6.0-rc.0 , < 1.6.18 (semver) Affected: 1.7.0-rc.0 , < 1.7.25 (semver) Affected: 1.8.0-rc.0 , < 1.8.17 (semver) cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix |
Affected:
44e7618370629df93711cd6169789fd0d8f3678e , < *
(git)
cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
Date Public
2026-11-21 11:09
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-128361",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-23T20:27:13.533560Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-23T20:27:25.217Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Presence\u0027"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/presence.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_info/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_diff/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:group/1"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.16",
"status": "affected",
"version": "1.2.0",
"versionType": "semver"
},
{
"lessThan": "1.6.18",
"status": "affected",
"version": "1.6.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.7.25",
"status": "affected",
"version": "1.7.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.8.17",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Presence\u0027"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/presence.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_info/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_diff/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:group/1"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "39c1c6bfd0c817f1223c121f61c60a25f66b76cb",
"status": "unaffected"
},
{
"at": "6609595fb3e37f545c4ac636a369f14b0084bc3d",
"status": "unaffected"
},
{
"at": "81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b",
"status": "unaffected"
},
{
"at": "edb702804aeab3a29543668a8be8ea61291c4b75",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "44e7618370629df93711cd6169789fd0d8f3678e",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must use \u003ccode\u003ePhoenix.Presence\u003c/code\u003e and either track presences under a key influenced by client input (such as a name taken from the channel join payload), or define a \u003ccode\u003efetch/2\u003c/code\u003e callback that can raise on a tracked key. Applications that track only server-controlled string keys and whose \u003ccode\u003efetch/2\u003c/code\u003e cannot raise are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must use `Phoenix.Presence` and either track presences under a key influenced by client input (such as a name taken from the channel join payload), or define a `fetch/2` callback that can raise on a tracked key. Applications that track only server-controlled string keys and whose `fetch/2` cannot raise are not affected."
}
],
"value": "The application must use Phoenix.Presence and either track presences under a key influenced by client input (such as a name taken from the channel join payload), or define a fetch/2 callback that can raise on a tracked key. Applications that track only server-controlled string keys and whose fetch/2 cannot raise are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.5.16",
"versionStartIncluding": "1.2.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.6.18",
"versionStartIncluding": "1.6.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.7.25",
"versionStartIncluding": "1.7.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.8.17",
"versionStartIncluding": "1.8.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "reporter",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
},
{
"lang": "en",
"type": "remediation reviewer",
"value": "Jos\u00e9 Valim"
}
],
"dateAssigned": "2026-11-20T10:53:30.000Z",
"datePublic": "2026-11-21T11:09:52.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Input Validation vulnerability in phoenixframework phoenix (\u003ccode\u003ePhoenix.Presence\u003c/code\u003e) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003etrack/3,4\u003c/code\u003e accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with \u003ccode\u003eto_string/1\u003c/code\u003e only later, in \u003ccode\u003ePhoenix.Presence.group/1\u003c/code\u003e, which raises \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e on a map. \u003ccode\u003egroup/1\u003c/code\u003e runs whenever presences are listed and when each presence diff is broadcast, together with the application\u0027s \u003ccode\u003efetch/2\u003c/code\u003e, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.\u003c/p\u003e\n\u003cp\u003eFrom 1.7.0 the diff runs in a \u003ccode\u003eTask.Supervisor.async\u003c/code\u003e task linked to the tracker shard, and \u003ccode\u003ePhoenix.Presence.handle_info/2\u003c/code\u003e has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix: from 1.2.0 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Input Validation vulnerability in phoenixframework phoenix (`Phoenix.Presence`) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.\n\n`track/3,4` accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with `to_string/1` only later, in `Phoenix.Presence.group/1`, which raises `Protocol.UndefinedError` on a map. `group/1` runs whenever presences are listed and when each presence diff is broadcast, together with the application\u0027s `fetch/2`, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.\n\nFrom 1.7.0 the diff runs in a `Task.Supervisor.async` task linked to the tracker shard, and `Phoenix.Presence.handle_info/2` has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.\n\nThis issue affects phoenix: from 1.2.0 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17."
}
],
"value": "Improper Input Validation vulnerability in phoenixframework phoenix (Phoenix.Presence) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.\n\ntrack/3,4 accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with to_string/1 only later, in Phoenix.Presence.group/1, which raises Protocol.UndefinedError on a map. group/1 runs whenever presences are listed and when each presence diff is broadcast, together with the application\u0027s fetch/2, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.\n\nFrom 1.7.0 the diff runs in a Task.Supervisor.async task linked to the tracker shard, and Phoenix.Presence.handle_info/2 has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.\n\nThis issue affects phoenix: from 1.2.0 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17."
}
],
"impacts": [
{
"capecId": "CAPEC-153",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eWith one channel join an attacker makes the topic\u0027s presence unusable: every later join that lists presences crashes, and presence updates stop. From 1.7.0 the same join terminates every channel and LiveView process tracked on the Presence shard and erases presence state for all its topics, and repeating it brings down the application.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "With one channel join an attacker makes the topic\u0027s presence unusable: every later join that lists presences crashes, and presence updates stop. From 1.7.0 the same join terminates every channel and LiveView process tracked on the Presence shard and erases presence state for all its topics, and repeating it brings down the application."
}
],
"value": "With one channel join an attacker makes the topic\u0027s presence unusable: every later join that lists presences crashes, and presence updates stop. From 1.7.0 the same join terminates every channel and LiveView process tracked on the Presence shard and erases presence state for all its topics, and repeating it brings down the application."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 8.2,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-20",
"description": "CWE-20 Improper Input Validation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T04:38:01.753Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Unsanitized presence key crashes Presence tracker",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr"
},
{
"name": "EEF CNA record for CVE-2026-128361",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-128361.html"
},
{
"name": "OSV record EEF-CVE-2026-128361",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-128361"
},
{
"name": "Introducing commit 44e7618 in phoenixframework/phoenix",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix/commit/44e7618370629df93711cd6169789fd0d8f3678e"
},
{
"name": "Fix commit 39c1c6b in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/39c1c6bfd0c817f1223c121f61c60a25f66b76cb"
},
{
"name": "Fix commit 6609595 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/6609595fb3e37f545c4ac636a369f14b0084bc3d"
},
{
"name": "Fix commit 81bc027 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b"
},
{
"name": "Fix commit edb7028 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/edb702804aeab3a29543668a8be8ea61291c4b75"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Unsanitized presence key crashes Presence tracker",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eValidate every presence key before passing it to \u003ccode\u003etrack/3,4\u003c/code\u003e, \u003ccode\u003euntrack/2,3\u003c/code\u003e or \u003ccode\u003eupdate/3,4\u003c/code\u003e, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-elixir\"\u003edef join(\"room:\" \u0026lt;\u0026gt; _, %{\"name\" =\u0026gt; name}, socket) when is_binary(name) do\n send(self(), {:after_join, name})\n {:ok, socket}\nend\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eA \u003ccode\u003efetch/2\u003c/code\u003e callback must also not raise on any tracked key.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Validate every presence key before passing it to `track/3,4`, `untrack/2,3` or `update/3,4`, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:\n\n```elixir\ndef join(\"room:\" \u003c\u003e _, %{\"name\" =\u003e name}, socket) when is_binary(name) do\n send(self(), {:after_join, name})\n {:ok, socket}\nend\n```\n\nA `fetch/2` callback must also not raise on any tracked key."
}
],
"value": "Validate every presence key before passing it to track/3,4, untrack/2,3 or update/3,4, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:\n\ndef join(\"room:\" \u003c\u003e _, %{\"name\" =\u003e name}, socket) when is_binary(name) do\n send(self(), {:after_join, name})\n {:ok, socket}\nend\n\nA fetch/2 callback must also not raise on any tracked key."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eRun a Phoenix endpoint with a channel whose join reads \u003ccode\u003ename\u003c/code\u003e from the join payload and then calls \u003ccode\u003eMyPresence.track(socket, name, %{online_at: 1})\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eJoin the topic with 15 clients using string names, and confirm \u003ccode\u003eMyPresence.list(topic)\u003c/code\u003e returns 15 entries.\u003c/li\u003e\n\u003cli\u003eJoin once more with the payload \u003ccode\u003e{\"name\": {\"x\": 1}}\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe log shows \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e from \u003ccode\u003ePhoenix.Presence.group/1\u003c/code\u003e, then the shard terminating. All 15 clients receive \u003ccode\u003ephx_error\u003c/code\u003e, and \u003ccode\u003eMyPresence.list(topic)\u003c/code\u003e returns 0 entries.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Run a Phoenix endpoint with a channel whose join reads `name` from the join payload and then calls `MyPresence.track(socket, name, %{online_at: 1})`.\n2. Join the topic with 15 clients using string names, and confirm `MyPresence.list(topic)` returns 15 entries.\n3. Join once more with the payload `{\"name\": {\"x\": 1}}`.\n4. The log shows `Protocol.UndefinedError` from `Phoenix.Presence.group/1`, then the shard terminating. All 15 clients receive `phx_error`, and `MyPresence.list(topic)` returns 0 entries."
}
],
"value": "* Run a Phoenix endpoint with a channel whose join reads name from the join payload and then calls MyPresence.track(socket, name, %{online_at: 1}).\n* Join the topic with 15 clients using string names, and confirm MyPresence.list(topic) returns 15 entries.\n* Join once more with the payload {\"name\": {\"x\": 1}}.\n* The log shows Protocol.UndefinedError from Phoenix.Presence.group/1, then the shard terminating. All 15 clients receive phx_error, and MyPresence.list(topic) returns 0 entries."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Key accepted.\u003c/strong\u003e The \u003ccode\u003etrack/3,4\u003c/code\u003e injected by \u003ccode\u003euse Phoenix.Presence\u003c/code\u003e passes any term to \u003ccode\u003ePhoenix.Tracker.track\u003c/code\u003e, which returns \u003ccode\u003e{:ok, ref}\u003c/code\u003e. The documented pattern \u003ccode\u003ePresence.track(socket, name, meta)\u003c/code\u003e with \u003ccode\u003ename\u003c/code\u003e from the join payload lets a client choose a map as the key.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Deferred conversion.\u003c/strong\u003e \u003ccode\u003ePhoenix.Presence.group/1\u003c/code\u003e converts each key with \u003ccode\u003eto_string/1\u003c/code\u003e. It runs in \u003ccode\u003ePhoenix.Presence.list/2\u003c/code\u003e, in the calling process, and in \u003ccode\u003ehandle_diff/2\u003c/code\u003e before the application\u0027s \u003ccode\u003efetch/2\u003c/code\u003e. A map key raises \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e there, as does a \u003ccode\u003efetch/2\u003c/code\u003e such as the moduledoc\u0027s \u003ccode\u003eString.to_integer(key)\u003c/code\u003e on a non-numeric key.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Topic crash.\u003c/strong\u003e While the key stays tracked, every \u003ccode\u003elist\u003c/code\u003e on the topic raises. The documented \u003ccode\u003eafter_join\u003c/code\u003e that pushes \u003ccode\u003ePresence.list(socket)\u003c/code\u003e therefore crashes each later joiner\u0027s channel. Before 1.7.0, \u003ccode\u003ehandle_diff/2\u003c/code\u003e runs in an unlinked \u003ccode\u003eTask.Supervisor.start_child\u003c/code\u003e task, so a failing diff only loses that batch of joins and leaves.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. Shard crash (1.7.0 and later).\u003c/strong\u003e \u003ccode\u003ehandle_diff/2\u003c/code\u003e runs the diff in a \u003ccode\u003eTask.Supervisor.async\u003c/code\u003e task linked to the tracker shard, and \u003ccode\u003ePhoenix.Presence.handle_info/2\u003c/code\u003e matches only the task\u0027s success reply. The failure terminates the shard (\u003ccode\u003eFunctionClauseError\u003c/code\u003e), every tracked process linked to it dies, and presence state is wiped. Repeated joins exhaust the supervisor\u0027s restart intensity.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Key accepted.** The `track/3,4` injected by `use Phoenix.Presence` passes any term to `Phoenix.Tracker.track`, which returns `{:ok, ref}`. The documented pattern `Presence.track(socket, name, meta)` with `name` from the join payload lets a client choose a map as the key.\n\n**2. Deferred conversion.** `Phoenix.Presence.group/1` converts each key with `to_string/1`. It runs in `Phoenix.Presence.list/2`, in the calling process, and in `handle_diff/2` before the application\u0027s `fetch/2`. A map key raises `Protocol.UndefinedError` there, as does a `fetch/2` such as the moduledoc\u0027s `String.to_integer(key)` on a non-numeric key.\n\n**3. Topic crash.** While the key stays tracked, every `list` on the topic raises. The documented `after_join` that pushes `Presence.list(socket)` therefore crashes each later joiner\u0027s channel. Before 1.7.0, `handle_diff/2` runs in an unlinked `Task.Supervisor.start_child` task, so a failing diff only loses that batch of joins and leaves.\n\n**4. Shard crash (1.7.0 and later).** `handle_diff/2` runs the diff in a `Task.Supervisor.async` task linked to the tracker shard, and `Phoenix.Presence.handle_info/2` matches only the task\u0027s success reply. The failure terminates the shard (`FunctionClauseError`), every tracked process linked to it dies, and presence state is wiped. Repeated joins exhaust the supervisor\u0027s restart intensity."
}
],
"value": "1. Key accepted. The track/3,4 injected by use Phoenix.Presence passes any term to Phoenix.Tracker.track, which returns {:ok, ref}. The documented pattern Presence.track(socket, name, meta) with name from the join payload lets a client choose a map as the key.\n\n2. Deferred conversion. Phoenix.Presence.group/1 converts each key with to_string/1. It runs in Phoenix.Presence.list/2, in the calling process, and in handle_diff/2 before the application\u0027s fetch/2. A map key raises Protocol.UndefinedError there, as does a fetch/2 such as the moduledoc\u0027s String.to_integer(key) on a non-numeric key.\n\n3. Topic crash. While the key stays tracked, every list on the topic raises. The documented after_join that pushes Presence.list(socket) therefore crashes each later joiner\u0027s channel. Before 1.7.0, handle_diff/2 runs in an unlinked Task.Supervisor.start_child task, so a failing diff only loses that batch of joins and leaves.\n\n4. Shard crash (1.7.0 and later). handle_diff/2 runs the diff in a Task.Supervisor.async task linked to the tracker shard, and Phoenix.Presence.handle_info/2 matches only the task\u0027s success reply. The failure terminates the shard (FunctionClauseError), every tracked process linked to it dies, and presence state is wiped. Repeated joins exhaust the supervisor\u0027s restart intensity."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-128361",
"datePublished": "2026-11-21T11:09:51.800Z",
"dateReserved": "2026-11-18T13:53:21.753Z",
"dateUpdated": "2026-11-24T04:38:01.753Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-129344 (GCVE-0-2026-129344)
Vulnerability from cvelistv5 – Published: 2026-11-21 10:59 – Updated: 2026-11-24 04:38
VLAI
EPSS
VEX
Title
Client-selected V1 serializer crashes shared broadcast dispatch on binary payloads
Summary
Uncaught Exception vulnerability in phoenixframework phoenix allows an unauthenticated attacker to cause a denial of service via a client-selected legacy serializer on binary channel broadcasts.
When an application broadcasts {:binary, data} payloads on a channel topic, any client that connects without a vsn parameter, or with vsn=1.0.0, and joins that topic makes those broadcasts fail. Phoenix.Channel.Server.send/4 encodes each broadcast with every subscriber's own serializer inside the PubSub dispatch loop, calling fastlane!/1 with no rescue, and the negotiated Phoenix.Socket.V1.JSONSerializer raises Protocol.UndefinedError on a binary payload. Every binary broadcast on the topic then crashes the broadcasting process and skips every subscriber dispatched after the attacker. For broadcasts arriving from other nodes the loop runs in the PubSub adapter worker, whose repeated crashes restart the PubSub supervisor and empty the node's subscription registry while sockets stay connected.
This issue affects phoenix: from 1.5.7 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-23 20:25 UTC
CWE
- CWE-248 - Uncaught Exception
Assigner
References
9 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix |
Affected:
1.5.7 , < 1.5.16
(semver)
Affected: 1.6.0-rc.0 , < 1.6.18 (semver) Affected: 1.7.0-rc.0 , < 1.7.25 (semver) Affected: 1.8.0-rc.0 , < 1.8.17 (semver) cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix |
Affected:
07b401901fc1d649f126eee6315b5eb01fa5c85c , < c255d983e03893ae46abf01d13c3ec3bd20f029c
(git)
Affected: cf098e9cf7a44ee6479d31d911a97d3c7430c6fe , < * (git) cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
Date Public
2026-11-21 10:59
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-129344",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-23T20:25:52.037878Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-23T20:26:47.156Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Channel.Server\u0027",
"\u0027Elixir.Phoenix.Socket.V1.JSONSerializer\u0027",
"\u0027Elixir.Phoenix.Channel\u0027"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/channel/server.ex",
"lib/phoenix/socket/serializers/v1_json_serializer.ex",
"lib/phoenix/channel.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Channel.Server\u0027:send/4"
},
{
"name": "\u0027Elixir.Phoenix.Socket.V1.JSONSerializer\u0027:fastlane!/1"
},
{
"name": "\u0027Elixir.Phoenix.Channel\u0027:broadcast/3"
},
{
"name": "\u0027Elixir.Phoenix.Channel\u0027:broadcast_from/3"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.16",
"status": "affected",
"version": "1.5.7",
"versionType": "semver"
},
{
"lessThan": "1.6.18",
"status": "affected",
"version": "1.6.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.7.25",
"status": "affected",
"version": "1.7.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.8.17",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Channel.Server\u0027",
"\u0027Elixir.Phoenix.Socket.V1.JSONSerializer\u0027",
"\u0027Elixir.Phoenix.Channel\u0027"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/channel/server.ex",
"lib/phoenix/socket/serializers/v1_json_serializer.ex",
"lib/phoenix/channel.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Channel.Server\u0027:send/4"
},
{
"name": "\u0027Elixir.Phoenix.Socket.V1.JSONSerializer\u0027:fastlane!/1"
},
{
"name": "\u0027Elixir.Phoenix.Channel\u0027:broadcast/3"
},
{
"name": "\u0027Elixir.Phoenix.Channel\u0027:broadcast_from/3"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "c255d983e03893ae46abf01d13c3ec3bd20f029c",
"status": "affected",
"version": "07b401901fc1d649f126eee6315b5eb01fa5c85c",
"versionType": "git"
},
{
"changes": [
{
"at": "30e5d9d7704b964772c131314508c45ed85ed807",
"status": "unaffected"
},
{
"at": "5d57f442a1ffab8a866add770477a14a0cd792d9",
"status": "unaffected"
},
{
"at": "eddaeb6d50c903fc77b465dbf3efd89feee0816b",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "cf098e9cf7a44ee6479d31d911a97d3c7430c6fe",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must broadcast \u003ccode\u003e{:binary, data}\u003c/code\u003e payloads (through \u003ccode\u003ePhoenix.Channel.broadcast/3\u003c/code\u003e, \u003ccode\u003ebroadcast_from/3\u003c/code\u003e, or \u003ccode\u003ePhoenix.Endpoint.broadcast/3\u003c/code\u003e) on a channel topic that an untrusted client can join. Applications that broadcast only map payloads are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must broadcast `{:binary, data}` payloads (through `Phoenix.Channel.broadcast/3`, `broadcast_from/3`, or `Phoenix.Endpoint.broadcast/3`) on a channel topic that an untrusted client can join. Applications that broadcast only map payloads are not affected."
}
],
"value": "The application must broadcast {:binary, data} payloads (through Phoenix.Channel.broadcast/3, broadcast_from/3, or Phoenix.Endpoint.broadcast/3) on a channel topic that an untrusted client can join. Applications that broadcast only map payloads are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.5.16",
"versionStartIncluding": "1.5.7",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.6.18",
"versionStartIncluding": "1.6.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.7.25",
"versionStartIncluding": "1.7.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.8.17",
"versionStartIncluding": "1.8.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "reporter",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
},
{
"lang": "en",
"type": "remediation reviewer",
"value": "Jos\u00e9 Valim"
}
],
"dateAssigned": "2026-11-20T10:54:44.000Z",
"datePublic": "2026-11-21T10:59:15.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eUncaught Exception vulnerability in phoenixframework phoenix allows an unauthenticated attacker to cause a denial of service via a client-selected legacy serializer on binary channel broadcasts.\u003c/p\u003e\n\u003cp\u003eWhen an application broadcasts \u003ccode\u003e{:binary, data}\u003c/code\u003e payloads on a channel topic, any client that connects without a \u003ccode\u003evsn\u003c/code\u003e parameter, or with \u003ccode\u003evsn=1.0.0\u003c/code\u003e, and joins that topic makes those broadcasts fail. \u003ccode\u003ePhoenix.Channel.Server.send/4\u003c/code\u003e encodes each broadcast with every subscriber\u0027s own serializer inside the PubSub dispatch loop, calling \u003ccode\u003efastlane!/1\u003c/code\u003e with no rescue, and the negotiated \u003ccode\u003ePhoenix.Socket.V1.JSONSerializer\u003c/code\u003e raises \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e on a binary payload. Every binary broadcast on the topic then crashes the broadcasting process and skips every subscriber dispatched after the attacker. For broadcasts arriving from other nodes the loop runs in the PubSub adapter worker, whose repeated crashes restart the PubSub supervisor and empty the node\u0027s subscription registry while sockets stay connected.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix: from 1.5.7 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Uncaught Exception vulnerability in phoenixframework phoenix allows an unauthenticated attacker to cause a denial of service via a client-selected legacy serializer on binary channel broadcasts.\n\nWhen an application broadcasts `{:binary, data}` payloads on a channel topic, any client that connects without a `vsn` parameter, or with `vsn=1.0.0`, and joins that topic makes those broadcasts fail. `Phoenix.Channel.Server.send/4` encodes each broadcast with every subscriber\u0027s own serializer inside the PubSub dispatch loop, calling `fastlane!/1` with no rescue, and the negotiated `Phoenix.Socket.V1.JSONSerializer` raises `Protocol.UndefinedError` on a binary payload. Every binary broadcast on the topic then crashes the broadcasting process and skips every subscriber dispatched after the attacker. For broadcasts arriving from other nodes the loop runs in the PubSub adapter worker, whose repeated crashes restart the PubSub supervisor and empty the node\u0027s subscription registry while sockets stay connected.\n\nThis issue affects phoenix: from 1.5.7 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17."
}
],
"value": "Uncaught Exception vulnerability in phoenixframework phoenix allows an unauthenticated attacker to cause a denial of service via a client-selected legacy serializer on binary channel broadcasts.\n\nWhen an application broadcasts {:binary, data} payloads on a channel topic, any client that connects without a vsn parameter, or with vsn=1.0.0, and joins that topic makes those broadcasts fail. Phoenix.Channel.Server.send/4 encodes each broadcast with every subscriber\u0027s own serializer inside the PubSub dispatch loop, calling fastlane!/1 with no rescue, and the negotiated Phoenix.Socket.V1.JSONSerializer raises Protocol.UndefinedError on a binary payload. Every binary broadcast on the topic then crashes the broadcasting process and skips every subscriber dispatched after the attacker. For broadcasts arriving from other nodes the loop runs in the PubSub adapter worker, whose repeated crashes restart the PubSub supervisor and empty the node\u0027s subscription registry while sockets stay connected.\n\nThis issue affects phoenix: from 1.5.7 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17."
}
],
"impacts": [
{
"capecId": "CAPEC-220",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who can join a topic makes every binary broadcast on it fail, crashing the broadcasting channel and starving the other subscribers. In clustered deployments, forwarded broadcasts crash the PubSub adapter worker until the node\u0027s subscriptions are lost.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who can join a topic makes every binary broadcast on it fail, crashing the broadcasting channel and starving the other subscribers. In clustered deployments, forwarded broadcasts crash the PubSub adapter worker until the node\u0027s subscriptions are lost."
}
],
"value": "An attacker who can join a topic makes every binary broadcast on it fail, crashing the broadcasting channel and starving the other subscribers. In clustered deployments, forwarded broadcasts crash the PubSub adapter worker until the node\u0027s subscriptions are lost."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 8.2,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-248",
"description": "CWE-248 Uncaught Exception",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T04:38:06.794Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Client-selected V1 serializer crashes shared broadcast dispatch on binary payloads",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-5vmc-qgf8-rw36"
},
{
"name": "EEF CNA record for CVE-2026-129344",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-129344.html"
},
{
"name": "OSV record EEF-CVE-2026-129344",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-129344"
},
{
"name": "Introducing commit 07b4019 in phoenixframework/phoenix",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix/commit/07b401901fc1d649f126eee6315b5eb01fa5c85c"
},
{
"name": "Introducing commit cf098e9 in phoenixframework/phoenix",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix/commit/cf098e9cf7a44ee6479d31d911a97d3c7430c6fe"
},
{
"name": "Fix commit 30e5d9d in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/30e5d9d7704b964772c131314508c45ed85ed807"
},
{
"name": "Fix commit 5d57f44 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/5d57f442a1ffab8a866add770477a14a0cd792d9"
},
{
"name": "Fix commit c255d98 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/c255d983e03893ae46abf01d13c3ec3bd20f029c"
},
{
"name": "Fix commit eddaeb6 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/eddaeb6d50c903fc77b465dbf3efd89feee0816b"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Client-selected V1 serializer crashes shared broadcast dispatch on binary payloads",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eReject the V1 serializer by listing only the V2 serializer on each socket:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-elixir\"\u003esocket \"/socket\", MyAppWeb.UserSocket,\n websocket: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~\u0026gt; 2.0.0\"}]],\n longpoll: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~\u0026gt; 2.0.0\"}]]\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eClients that connect without a \u003ccode\u003evsn\u003c/code\u003e parameter or with \u003ccode\u003evsn=1.0.0\u003c/code\u003e are then refused.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Reject the V1 serializer by listing only the V2 serializer on each socket:\n\n```elixir\nsocket \"/socket\", MyAppWeb.UserSocket,\n websocket: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~\u003e 2.0.0\"}]],\n longpoll: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~\u003e 2.0.0\"}]]\n```\n\nClients that connect without a `vsn` parameter or with `vsn=1.0.0` are then refused."
}
],
"value": "Reject the V1 serializer by listing only the V2 serializer on each socket:\n\nsocket \"/socket\", MyAppWeb.UserSocket,\n websocket: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~\u003e 2.0.0\"}]],\n longpoll: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~\u003e 2.0.0\"}]]\n\nClients that connect without a vsn parameter or with vsn=1.0.0 are then refused."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eRun a Phoenix endpoint with a channel whose \u003ccode\u003ehandle_in/3\u003c/code\u003e calls \u003ccode\u003ebroadcast(socket, \"evt\", {:binary, \u0026lt;\u0026lt;0, 1, 2, 3\u0026gt;\u0026gt;})\u003c/code\u003e on its topic.\u003c/li\u003e\n\u003cli\u003eAs the attacker, open \u003ccode\u003e/socket/websocket?vsn=1.0.0\u003c/code\u003e and join the topic with a V1 frame (\u003ccode\u003e{\"topic\": ..., \"event\": \"phx_join\", \"payload\": {}, \"ref\": ...}\u003c/code\u003e).\u003c/li\u003e\n\u003cli\u003eConnect several V2 clients (\u003ccode\u003evsn=2.0.0\u003c/code\u003e) and join the same topic.\u003c/li\u003e\n\u003cli\u003eFrom another V2 client on the topic, push the event that triggers the binary broadcast.\u003c/li\u003e\n\u003cli\u003eThe broadcaster receives \u003ccode\u003ephx_error\u003c/code\u003e, the log shows \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e raised from \u003ccode\u003ePhoenix.Socket.V1.JSONSerializer.fastlane!/1\u003c/code\u003e through \u003ccode\u003ePhoenix.Channel.Server.send/4\u003c/code\u003e, and the V2 subscribers after the attacker receive nothing. Without the attacker, the same broadcast reaches every subscriber.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Run a Phoenix endpoint with a channel whose `handle_in/3` calls `broadcast(socket, \"evt\", {:binary, \u003c\u003c0, 1, 2, 3\u003e\u003e})` on its topic.\n2. As the attacker, open `/socket/websocket?vsn=1.0.0` and join the topic with a V1 frame (`{\"topic\": ..., \"event\": \"phx_join\", \"payload\": {}, \"ref\": ...}`).\n3. Connect several V2 clients (`vsn=2.0.0`) and join the same topic.\n4. From another V2 client on the topic, push the event that triggers the binary broadcast.\n5. The broadcaster receives `phx_error`, the log shows `Protocol.UndefinedError` raised from `Phoenix.Socket.V1.JSONSerializer.fastlane!/1` through `Phoenix.Channel.Server.send/4`, and the V2 subscribers after the attacker receive nothing. Without the attacker, the same broadcast reaches every subscriber."
}
],
"value": "* Run a Phoenix endpoint with a channel whose handle_in/3 calls broadcast(socket, \"evt\", {:binary, \u003c\u003c0, 1, 2, 3\u003e\u003e}) on its topic.\n* As the attacker, open /socket/websocket?vsn=1.0.0 and join the topic with a V1 frame ({\"topic\": ..., \"event\": \"phx_join\", \"payload\": {}, \"ref\": ...}).\n* Connect several V2 clients (vsn=2.0.0) and join the same topic.\n* From another V2 client on the topic, push the event that triggers the binary broadcast.\n* The broadcaster receives phx_error, the log shows Protocol.UndefinedError raised from Phoenix.Socket.V1.JSONSerializer.fastlane!/1 through Phoenix.Channel.Server.send/4, and the V2 subscribers after the attacker receive nothing. Without the attacker, the same broadcast reaches every subscriber."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Serializer selection.\u003c/strong\u003e The socket picks its serializer from the client\u0027s \u003ccode\u003evsn\u003c/code\u003e parameter. A missing \u003ccode\u003evsn\u003c/code\u003e or \u003ccode\u003evsn=1.0.0\u003c/code\u003e selects \u003ccode\u003ePhoenix.Socket.V1.JSONSerializer\u003c/code\u003e, and \u003ccode\u003ePhoenix.Channel.Server\u003c/code\u003e registers it as the subscriber\u0027s fastlane metadata when the channel joins.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Shared dispatch.\u003c/strong\u003e A broadcast runs \u003ccode\u003ePhoenix.Channel.Server.send/4\u003c/code\u003e once per subscriber, inside the PubSub dispatch loop of the broadcasting process. It encodes the message with each subscriber\u0027s serializer through \u003ccode\u003efastlane!/1\u003c/code\u003e and has no rescue.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Crash.\u003c/strong\u003e \u003ccode\u003ePhoenix.Socket.V1.JSONSerializer.fastlane!/1\u003c/code\u003e JSON-encodes the payload, so a \u003ccode\u003e{:binary, data}\u003c/code\u003e tuple raises \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e. The exception aborts the loop: the broadcasting channel crashes (its client receives \u003ccode\u003ephx_error\u003c/code\u003e) and every subscriber after the attacker misses the message.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. Cluster spread.\u003c/strong\u003e For broadcasts from other nodes, the same loop runs in the \u003ccode\u003ePhoenix.PubSub.PG2\u003c/code\u003e adapter worker. Each forwarded binary broadcast crashes it, and repeated crashes exceed the restart intensity and restart the PubSub supervisor, which empties the subscription registry while sockets stay connected. The report simulated this step locally by sending \u003ccode\u003e:forward_to_local\u003c/code\u003e to the worker.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Serializer selection.** The socket picks its serializer from the client\u0027s `vsn` parameter. A missing `vsn` or `vsn=1.0.0` selects `Phoenix.Socket.V1.JSONSerializer`, and `Phoenix.Channel.Server` registers it as the subscriber\u0027s fastlane metadata when the channel joins.\n\n**2. Shared dispatch.** A broadcast runs `Phoenix.Channel.Server.send/4` once per subscriber, inside the PubSub dispatch loop of the broadcasting process. It encodes the message with each subscriber\u0027s serializer through `fastlane!/1` and has no rescue.\n\n**3. Crash.** `Phoenix.Socket.V1.JSONSerializer.fastlane!/1` JSON-encodes the payload, so a `{:binary, data}` tuple raises `Protocol.UndefinedError`. The exception aborts the loop: the broadcasting channel crashes (its client receives `phx_error`) and every subscriber after the attacker misses the message.\n\n**4. Cluster spread.** For broadcasts from other nodes, the same loop runs in the `Phoenix.PubSub.PG2` adapter worker. Each forwarded binary broadcast crashes it, and repeated crashes exceed the restart intensity and restart the PubSub supervisor, which empties the subscription registry while sockets stay connected. The report simulated this step locally by sending `:forward_to_local` to the worker."
}
],
"value": "1. Serializer selection. The socket picks its serializer from the client\u0027s vsn parameter. A missing vsn or vsn=1.0.0 selects Phoenix.Socket.V1.JSONSerializer, and Phoenix.Channel.Server registers it as the subscriber\u0027s fastlane metadata when the channel joins.\n\n2. Shared dispatch. A broadcast runs Phoenix.Channel.Server.send/4 once per subscriber, inside the PubSub dispatch loop of the broadcasting process. It encodes the message with each subscriber\u0027s serializer through fastlane!/1 and has no rescue.\n\n3. Crash. Phoenix.Socket.V1.JSONSerializer.fastlane!/1 JSON-encodes the payload, so a {:binary, data} tuple raises Protocol.UndefinedError. The exception aborts the loop: the broadcasting channel crashes (its client receives phx_error) and every subscriber after the attacker misses the message.\n\n4. Cluster spread. For broadcasts from other nodes, the same loop runs in the Phoenix.PubSub.PG2 adapter worker. Each forwarded binary broadcast crashes it, and repeated crashes exceed the restart intensity and restart the PubSub supervisor, which empties the subscription registry while sockets stay connected. The report simulated this step locally by sending :forward_to_local to the worker."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-129344",
"datePublished": "2026-11-21T10:59:15.168Z",
"dateReserved": "2026-11-18T04:41:14.165Z",
"dateUpdated": "2026-11-24T04:38:06.794Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-126334 (GCVE-0-2026-126334)
Vulnerability from cvelistv5 – Published: 2026-11-20 14:44 – Updated: 2026-11-24 04:39
VLAI
EPSS
VEX
Title
Joining a LiveView without `"url"` skips its `live_session` `on_mount` hooks
Summary
Incorrect Authorization vulnerability in phoenixframework phoenix_live_view allows an authenticated user to mount a router-mounted LiveView without the on_mount hooks of its live_session via a phx_join message that carries neither a "url" nor a "redirect" key.
The catch-all clause of the private Phoenix.LiveView.Channel.authorize_session/3 in lib/phoenix_live_view/channel.ex accepts a join without a URL for any session, including a root LiveView mounted at the router. The channel then mounts the LiveView with no route, and only a route adds the live_session hooks to the mount lifecycle. Checks that those hooks perform on the connected mount do not run, and event checks that they attach through attach_hook/4 are never attached. The attacker needs a valid session token for the LiveView, which only the HTTP render issues, after the hooks pass there. on_mount hooks declared in the LiveView module still run.
This issue affects phoenix_live_view: from 0.16.0 before 1.0.20, from 1.1.0-rc.0 before 1.1.34, and from 1.2.0-rc.0 before 1.2.14.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 18:37 UTC
CWE
- CWE-863 - Incorrect Authorization
Assigner
References
8 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix_live_view |
Affected:
0.16.0 , < 1.0.20
(semver)
Affected: 1.1.0-rc.0 , < 1.1.34 (semver) Affected: 1.2.0-rc.0 , < 1.2.14 (semver) cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix_live_view |
Affected:
3d1eb6752399060eebdaa7112f959ee81e7d630d , < *
(git)
cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:* |
Date Public
2026-11-20 14:44
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-126334",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T18:37:50.986670Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T18:38:03.643Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView.Channel\u0027"
],
"packageName": "phoenix_live_view",
"packageURL": "pkg:hex/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view/channel.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView.Channel\u0027:authorize_session/3"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.0.20",
"status": "affected",
"version": "0.16.0",
"versionType": "semver"
},
{
"lessThan": "1.1.34",
"status": "affected",
"version": "1.1.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.2.14",
"status": "affected",
"version": "1.2.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView.Channel\u0027"
],
"packageName": "phoenixframework/phoenix_live_view",
"packageURL": "pkg:github/phoenixframework/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view/channel.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView.Channel\u0027:authorize_session/3"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "049b2b10bb051467639c8cf6f3f7ee13df401a74",
"status": "unaffected"
},
{
"at": "5dc8459da3d5f7f1ba11d2fe351ea97e7a46c99f",
"status": "unaffected"
},
{
"at": "71b114d75e1ed615bbe8db7474a215536163eabb",
"status": "unaffected"
},
{
"at": "ec47eaac9e440ca7e8664ef64c8377cd2579c40c",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "3d1eb6752399060eebdaa7112f959ee81e7d630d",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application enforces authentication or authorization in \u003ccode\u003eon_mount\u003c/code\u003e hooks of a \u003ccode\u003elive_session\u003c/code\u003e, and the LiveView does not do the same check itself. The LiveView must also mount without a route: it does not define \u003ccode\u003ehandle_params/3\u003c/code\u003e, its \u003ccode\u003emount/3\u003c/code\u003e accepts \u003ccode\u003e:not_mounted_at_router\u003c/code\u003e as its params, and it does not read assigns that the skipped hooks set.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application enforces authentication or authorization in `on_mount` hooks of a `live_session`, and the LiveView does not do the same check itself. The LiveView must also mount without a route: it does not define `handle_params/3`, its `mount/3` accepts `:not_mounted_at_router` as its params, and it does not read assigns that the skipped hooks set."
}
],
"value": "The application enforces authentication or authorization in on_mount hooks of a live_session, and the LiveView does not do the same check itself. The LiveView must also mount without a route: it does not define handle_params/3, its mount/3 accepts :not_mounted_at_router as its params, and it does not read assigns that the skipped hooks set."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.0.20",
"versionStartIncluding": "0.16.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.1.34",
"versionStartIncluding": "1.1.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.2.14",
"versionStartIncluding": "1.2.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Alexander Koutmos"
},
{
"lang": "en",
"type": "reporter",
"value": "Alexander Koutmos"
},
{
"lang": "en",
"type": "coordinator",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
},
{
"lang": "en",
"type": "remediation reviewer",
"value": "Jos\u00e9 Valim"
}
],
"dateAssigned": "2026-11-17T03:32:27.000Z",
"datePublic": "2026-11-20T14:44:42.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eIncorrect Authorization vulnerability in phoenixframework phoenix_live_view allows an authenticated user to mount a router-mounted LiveView without the \u003ccode\u003eon_mount\u003c/code\u003e hooks of its \u003ccode\u003elive_session\u003c/code\u003e via a \u003ccode\u003ephx_join\u003c/code\u003e message that carries neither a \u003ccode\u003e\"url\"\u003c/code\u003e nor a \u003ccode\u003e\"redirect\"\u003c/code\u003e key.\u003c/p\u003e\n\u003cp\u003eThe catch-all clause of the private \u003ccode\u003ePhoenix.LiveView.Channel.authorize_session/3\u003c/code\u003e in \u003ccode\u003elib/phoenix_live_view/channel.ex\u003c/code\u003e accepts a join without a URL for any session, including a root LiveView mounted at the router. The channel then mounts the LiveView with no route, and only a route adds the \u003ccode\u003elive_session\u003c/code\u003e hooks to the mount lifecycle. Checks that those hooks perform on the connected mount do not run, and event checks that they attach through \u003ccode\u003eattach_hook/4\u003c/code\u003e are never attached. The attacker needs a valid session token for the LiveView, which only the HTTP render issues, after the hooks pass there. \u003ccode\u003eon_mount\u003c/code\u003e hooks declared in the LiveView module still run.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix_live_view: from 0.16.0 before 1.0.20, from 1.1.0-rc.0 before 1.1.34, and from 1.2.0-rc.0 before 1.2.14.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Incorrect Authorization vulnerability in phoenixframework phoenix_live_view allows an authenticated user to mount a router-mounted LiveView without the `on_mount` hooks of its `live_session` via a `phx_join` message that carries neither a `\"url\"` nor a `\"redirect\"` key.\n\nThe catch-all clause of the private `Phoenix.LiveView.Channel.authorize_session/3` in `lib/phoenix_live_view/channel.ex` accepts a join without a URL for any session, including a root LiveView mounted at the router. The channel then mounts the LiveView with no route, and only a route adds the `live_session` hooks to the mount lifecycle. Checks that those hooks perform on the connected mount do not run, and event checks that they attach through `attach_hook/4` are never attached. The attacker needs a valid session token for the LiveView, which only the HTTP render issues, after the hooks pass there. `on_mount` hooks declared in the LiveView module still run.\n\nThis issue affects phoenix_live_view: from 0.16.0 before 1.0.20, from 1.1.0-rc.0 before 1.1.34, and from 1.2.0-rc.0 before 1.2.14."
}
],
"value": "Incorrect Authorization vulnerability in phoenixframework phoenix_live_view allows an authenticated user to mount a router-mounted LiveView without the on_mount hooks of its live_session via a phx_join message that carries neither a \"url\" nor a \"redirect\" key.\n\nThe catch-all clause of the private Phoenix.LiveView.Channel.authorize_session/3 in lib/phoenix_live_view/channel.ex accepts a join without a URL for any session, including a root LiveView mounted at the router. The channel then mounts the LiveView with no route, and only a route adds the live_session hooks to the mount lifecycle. Checks that those hooks perform on the connected mount do not run, and event checks that they attach through attach_hook/4 are never attached. The attacker needs a valid session token for the LiveView, which only the HTTP render issues, after the hooks pass there. on_mount hooks declared in the LiveView module still run.\n\nThis issue affects phoenix_live_view: from 0.16.0 before 1.0.20, from 1.1.0-rc.0 before 1.1.34, and from 1.2.0-rc.0 before 1.2.14."
}
],
"impacts": [
{
"capecId": "CAPEC-1",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn authenticated user can send events that the \u003ccode\u003elive_session\u003c/code\u003e hooks would deny. A user whose access was revoked after the page loaded can still mount the LiveView and send events while the LiveView session token is valid.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An authenticated user can send events that the `live_session` hooks would deny. A user whose access was revoked after the page loaded can still mount the LiveView and send events while the LiveView session token is valid."
}
],
"value": "An authenticated user can send events that the live_session hooks would deny. A user whose access was revoked after the page loaded can still mount the LiveView and send events while the LiveView session token is valid."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 6,
"baseSeverity": "MEDIUM",
"privilegesRequired": "LOW",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-863",
"description": "CWE-863 Incorrect Authorization",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T04:39:41.520Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Joining a LiveView without `\"url\"` skips its `live_session` `on_mount` hooks",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-v4p7-3pm2-wq6c"
},
{
"name": "EEF CNA record for CVE-2026-126334",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-126334.html"
},
{
"name": "OSV record EEF-CVE-2026-126334",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-126334"
},
{
"name": "Introducing commit 3d1eb67 in phoenixframework/phoenix_live_view",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/3d1eb6752399060eebdaa7112f959ee81e7d630d"
},
{
"name": "Fix commit 049b2b1 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/049b2b10bb051467639c8cf6f3f7ee13df401a74"
},
{
"name": "Fix commit 5dc8459 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/5dc8459da3d5f7f1ba11d2fe351ea97e7a46c99f"
},
{
"name": "Fix commit 71b114d in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/71b114d75e1ed615bbe8db7474a215536163eabb"
},
{
"name": "Fix commit ec47eaa in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/ec47eaac9e440ca7e8664ef64c8377cd2579c40c"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Joining a LiveView without `\"url\"` skips its `live_session` `on_mount` hooks",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eMove the security-relevant \u003ccode\u003eon_mount\u003c/code\u003e hooks from the \u003ccode\u003elive_session\u003c/code\u003e to the LiveView module with \u003ccode\u003ePhoenix.LiveView.on_mount/1\u003c/code\u003e, for example in the \u003ccode\u003elive_view\u003c/code\u003e definition that \u003ccode\u003euse MyAppWeb, :live_view\u003c/code\u003e expands. Hooks declared in the module run on every mount.\u003c/p\u003e\n\u003cp\u003eAlternatively, make \u003ccode\u003emount/3\u003c/code\u003e match its first argument as a map (\u003ccode\u003e%{} = params\u003c/code\u003e), or define \u003ccode\u003ehandle_params/3\u003c/code\u003e in the LiveView. In both cases a mount without a route raises, and the join fails.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Move the security-relevant `on_mount` hooks from the `live_session` to the LiveView module with `Phoenix.LiveView.on_mount/1`, for example in the `live_view` definition that `use MyAppWeb, :live_view` expands. Hooks declared in the module run on every mount.\n\nAlternatively, make `mount/3` match its first argument as a map (`%{} = params`), or define `handle_params/3` in the LiveView. In both cases a mount without a route raises, and the join fails."
}
],
"value": "Move the security-relevant on_mount hooks from the live_session to the LiveView module with Phoenix.LiveView.on_mount/1, for example in the live_view definition that use MyAppWeb, :live_view expands. Hooks declared in the module run on every mount.\n\nAlternatively, make mount/3 match its first argument as a map (%{} = params), or define handle_params/3 in the LiveView. In both cases a mount without a route raises, and the join fails."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe target application has a \u003ccode\u003elive_session\u003c/code\u003e whose \u003ccode\u003eon_mount\u003c/code\u003e hook halts the mount for a suspended account and attaches a \u003ccode\u003e:handle_event\u003c/code\u003e hook with \u003ccode\u003eattach_hook/4\u003c/code\u003e that denies the \u003ccode\u003edelete_post\u003c/code\u003e event to users who are not admins. The LiveView at \u003ccode\u003e/posts\u003c/code\u003e does not define \u003ccode\u003ehandle_params/3\u003c/code\u003e.\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eSign in as a user without the admin role and load \u003ccode\u003e/posts\u003c/code\u003e over HTTP. Keep the session cookie, the CSRF token from the page, and the \u003ccode\u003eid\u003c/code\u003e, \u003ccode\u003edata-phx-session\u003c/code\u003e, and \u003ccode\u003edata-phx-static\u003c/code\u003e attributes of the element that has \u003ccode\u003edata-phx-main\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eOpen the LiveView websocket at \u003ccode\u003e/live/websocket\u003c/code\u003e with the session cookie and the CSRF token.\u003c/li\u003e\n\u003cli\u003eSend a \u003ccode\u003ephx_join\u003c/code\u003e message on the topic \u003ccode\u003elv:\u0026lt;id\u0026gt;\u003c/code\u003e. The payload has \u003ccode\u003e\"params\"\u003c/code\u003e (with \u003ccode\u003e\"_csrf_token\"\u003c/code\u003e and \u003ccode\u003e\"_mounts\": 0\u003c/code\u003e), \u003ccode\u003e\"session\"\u003c/code\u003e, and \u003ccode\u003e\"static\"\u003c/code\u003e. It has no \u003ccode\u003e\"url\"\u003c/code\u003e key and no \u003ccode\u003e\"redirect\"\u003c/code\u003e key.\u003c/li\u003e\n\u003cli\u003eThe server replies with status \u003ccode\u003eok\u003c/code\u003e. The LiveView is mounted without the \u003ccode\u003elive_session\u003c/code\u003e hooks.\u003c/li\u003e\n\u003cli\u003eSend an \u003ccode\u003eevent\u003c/code\u003e message of type \u003ccode\u003eclick\u003c/code\u003e for the event \u003ccode\u003edelete_post\u003c/code\u003e. The LiveView handles the event, and the post is deleted.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eThe same join with the \u003ccode\u003e\"url\"\u003c/code\u003e key set to the page URL runs the hooks, and the \u003ccode\u003edelete_post\u003c/code\u003e event is denied. If the account is suspended after step 1, the join with \u003ccode\u003e\"url\"\u003c/code\u003e is refused, and the join without \u003ccode\u003e\"url\"\u003c/code\u003e still succeeds.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The target application has a `live_session` whose `on_mount` hook halts the mount for a suspended account and attaches a `:handle_event` hook with `attach_hook/4` that denies the `delete_post` event to users who are not admins. The LiveView at `/posts` does not define `handle_params/3`.\n\n1. Sign in as a user without the admin role and load `/posts` over HTTP. Keep the session cookie, the CSRF token from the page, and the `id`, `data-phx-session`, and `data-phx-static` attributes of the element that has `data-phx-main`.\n2. Open the LiveView websocket at `/live/websocket` with the session cookie and the CSRF token.\n3. Send a `phx_join` message on the topic `lv:\u003cid\u003e`. The payload has `\"params\"` (with `\"_csrf_token\"` and `\"_mounts\": 0`), `\"session\"`, and `\"static\"`. It has no `\"url\"` key and no `\"redirect\"` key.\n4. The server replies with status `ok`. The LiveView is mounted without the `live_session` hooks.\n5. Send an `event` message of type `click` for the event `delete_post`. The LiveView handles the event, and the post is deleted.\n\nThe same join with the `\"url\"` key set to the page URL runs the hooks, and the `delete_post` event is denied. If the account is suspended after step 1, the join with `\"url\"` is refused, and the join without `\"url\"` still succeeds."
}
],
"value": "The target application has a live_session whose on_mount hook halts the mount for a suspended account and attaches a :handle_event hook with attach_hook/4 that denies the delete_post event to users who are not admins. The LiveView at /posts does not define handle_params/3.\n\n* Sign in as a user without the admin role and load /posts over HTTP. Keep the session cookie, the CSRF token from the page, and the id, data-phx-session, and data-phx-static attributes of the element that has data-phx-main.\n* Open the LiveView websocket at /live/websocket with the session cookie and the CSRF token.\n* Send a phx_join message on the topic lv:\u003cid\u003e. The payload has \"params\" (with \"_csrf_token\" and \"_mounts\": 0), \"session\", and \"static\". It has no \"url\" key and no \"redirect\" key.\n* The server replies with status ok. The LiveView is mounted without the live_session hooks.\n* Send an event message of type click for the event delete_post. The LiveView handles the event, and the post is deleted.\n\nThe same join with the \"url\" key set to the page URL runs the hooks, and the delete_post event is denied. If the account is suspended after step 1, the join with \"url\" is refused, and the join without \"url\" still succeeds."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Join authorization.\u003c/strong\u003e The private \u003ccode\u003ePhoenix.LiveView.Channel.authorize_session/3\u003c/code\u003e in \u003ccode\u003elib/phoenix_live_view/channel.ex\u003c/code\u003e has three clauses. The \u003ccode\u003e\"redirect\"\u003c/code\u003e clause resolves the route and checks that it stays in the same \u003ccode\u003elive_session\u003c/code\u003e. The \u003ccode\u003e\"url\"\u003c/code\u003e clause requires, for a session where \u003ccode\u003ePhoenix.LiveView.Session.main?/1\u003c/code\u003e is true, that the route for the URL matches the view and the \u003ccode\u003elive_session\u003c/code\u003e of the session. The third clause matches any other join parameters and returns the session with no route and no URL. Nested LiveViews need this clause because they have no URL. The clause does not call \u003ccode\u003ePhoenix.LiveView.Session.main?/1\u003c/code\u003e, so it also accepts a root LiveView that was mounted at the router.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Mount with no route.\u003c/strong\u003e With no route, \u003ccode\u003emount/3\u003c/code\u003e receives \u003ccode\u003e:not_mounted_at_router\u003c/code\u003e as its params. The private \u003ccode\u003eload_lifecycle/2\u003c/code\u003e adds the \u003ccode\u003eon_mount\u003c/code\u003e hooks of the \u003ccode\u003elive_session\u003c/code\u003e only when it receives a \u003ccode\u003e%Phoenix.LiveView.Route{}\u003c/code\u003e. Without a route it returns the lifecycle of the LiveView module alone. The \u003ccode\u003elive_session\u003c/code\u003e layout is skipped in the same way.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Result.\u003c/strong\u003e The signed session token, the static token, the CSRF token, and the session cookie are all valid, so the join succeeds. The LiveView runs without the \u003ccode\u003elive_session\u003c/code\u003e hooks. Hooks that halt the mount do not run, and hooks attached with \u003ccode\u003eattach_hook/4\u003c/code\u003e for \u003ccode\u003e:handle_event\u003c/code\u003e or \u003ccode\u003e:handle_info\u003c/code\u003e are never attached.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eConditions that stop the mount.\u003c/strong\u003e A LiveView that defines \u003ccode\u003ehandle_params/3\u003c/code\u003e raises on a mount without a route. A LiveView whose \u003ccode\u003emount/3\u003c/code\u003e matches its params as a map raises. A LiveView that reads an assign that a skipped hook sets raises. In these cases the join fails.\u003c/p\u003e\n\u003cp\u003eThe official JavaScript client always sends \u003ccode\u003e\"url\"\u003c/code\u003e or \u003ccode\u003e\"redirect\"\u003c/code\u003e for a root LiveView. Only nested views join without either key.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Join authorization.** The private `Phoenix.LiveView.Channel.authorize_session/3` in `lib/phoenix_live_view/channel.ex` has three clauses. The `\"redirect\"` clause resolves the route and checks that it stays in the same `live_session`. The `\"url\"` clause requires, for a session where `Phoenix.LiveView.Session.main?/1` is true, that the route for the URL matches the view and the `live_session` of the session. The third clause matches any other join parameters and returns the session with no route and no URL. Nested LiveViews need this clause because they have no URL. The clause does not call `Phoenix.LiveView.Session.main?/1`, so it also accepts a root LiveView that was mounted at the router.\n\n**2. Mount with no route.** With no route, `mount/3` receives `:not_mounted_at_router` as its params. The private `load_lifecycle/2` adds the `on_mount` hooks of the `live_session` only when it receives a `%Phoenix.LiveView.Route{}`. Without a route it returns the lifecycle of the LiveView module alone. The `live_session` layout is skipped in the same way.\n\n**3. Result.** The signed session token, the static token, the CSRF token, and the session cookie are all valid, so the join succeeds. The LiveView runs without the `live_session` hooks. Hooks that halt the mount do not run, and hooks attached with `attach_hook/4` for `:handle_event` or `:handle_info` are never attached.\n\n**Conditions that stop the mount.** A LiveView that defines `handle_params/3` raises on a mount without a route. A LiveView whose `mount/3` matches its params as a map raises. A LiveView that reads an assign that a skipped hook sets raises. In these cases the join fails.\n\nThe official JavaScript client always sends `\"url\"` or `\"redirect\"` for a root LiveView. Only nested views join without either key."
}
],
"value": "1. Join authorization. The private Phoenix.LiveView.Channel.authorize_session/3 in lib/phoenix_live_view/channel.ex has three clauses. The \"redirect\" clause resolves the route and checks that it stays in the same live_session. The \"url\" clause requires, for a session where Phoenix.LiveView.Session.main?/1 is true, that the route for the URL matches the view and the live_session of the session. The third clause matches any other join parameters and returns the session with no route and no URL. Nested LiveViews need this clause because they have no URL. The clause does not call Phoenix.LiveView.Session.main?/1, so it also accepts a root LiveView that was mounted at the router.\n\n2. Mount with no route. With no route, mount/3 receives :not_mounted_at_router as its params. The private load_lifecycle/2 adds the on_mount hooks of the live_session only when it receives a %Phoenix.LiveView.Route{}. Without a route it returns the lifecycle of the LiveView module alone. The live_session layout is skipped in the same way.\n\n3. Result. The signed session token, the static token, the CSRF token, and the session cookie are all valid, so the join succeeds. The LiveView runs without the live_session hooks. Hooks that halt the mount do not run, and hooks attached with attach_hook/4 for :handle_event or :handle_info are never attached.\n\nConditions that stop the mount. A LiveView that defines handle_params/3 raises on a mount without a route. A LiveView whose mount/3 matches its params as a map raises. A LiveView that reads an assign that a skipped hook sets raises. In these cases the join fails.\n\nThe official JavaScript client always sends \"url\" or \"redirect\" for a root LiveView. Only nested views join without either key."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-126334",
"datePublished": "2026-11-20T14:44:41.639Z",
"dateReserved": "2026-11-13T11:19:46.893Z",
"dateUpdated": "2026-11-24T04:39:41.520Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-117645 (GCVE-0-2026-117645)
Vulnerability from cvelistv5 – Published: 2026-10-30 20:25 – Updated: 2026-11-20 05:59
VLAI
EPSS
VEX
Title
Phoenix.HTML vulnerable to attribute injection via unvalidated attribute names in attributes_escape/1
Summary
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in phoenixframework phoenix_html allows an attacker who controls attribute names to inject attributes and script into rendered HTML via Phoenix.HTML.attributes_escape/1.
attributes_escape/1 in lib/phoenix_html.ex escapes attribute values but not attribute names. key_escape/1 passes a binary key through html_escape, which neutralizes quotes and angle brackets but not whitespace, so a key such as x onmouseover ends the attribute and starts a new one. An atom key is only dasherized, so any character passes, including quotes and >. Nested data, aria and phx keys take the same paths. An application is affected when it builds attribute keys from untrusted input and renders them through HEEx <tag {@attrs}>, content_tag/3, or a direct call. Before 3.0.0 the same code lived in Phoenix.HTML.Tag.
This issue affects phoenix_html: from 1.0.0 before 3.3.5 and from 4.0.0 before 4.4.0.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-06 16:01 UTC
CWE
- CWE-79 - Improper Neutralization of Input During Web Page Generation
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://cna.erlef.org/cves/CVE-2026-117645.html | relatedthird-party-advisory |
| https://osv.dev/vulnerability/EEF-CVE-2026-117645 | related |
| https://github.com/phoenixframework/phoenix_html/… | related |
| https://github.com/phoenixframework/phoenix_html/… | patch |
| https://github.com/phoenixframework/phoenix_html/… | patch |
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix_html |
Affected:
1.0.0 , < 3.3.5
(semver)
Affected: 4.0.0 , < 4.4.0 (semver) cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix_html |
Affected:
6ad3a1d7960891a468d54636054a98e11dfb5111 , < *
(git)
cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:* |
Date Public
2026-10-30 20:25
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-117645",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-06T16:01:55.707158Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-06T16:02:07.740Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.HTML\u0027",
"\u0027Elixir.Phoenix.HTML.Tag\u0027"
],
"packageName": "phoenix_html",
"packageURL": "pkg:hex/phoenix_html",
"product": "phoenix_html",
"programFiles": [
"lib/phoenix_html.ex",
"lib/phoenix_html/tag.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:attributes_escape/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:build_attrs/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:nested_attrs/3"
},
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:key_escape/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:tag/2"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:content_tag/3"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:attributes_escape/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:tag_attrs/1"
}
],
"repo": "https://github.com/phoenixframework/phoenix_html",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "3.3.5",
"status": "affected",
"version": "1.0.0",
"versionType": "semver"
},
{
"lessThan": "4.4.0",
"status": "affected",
"version": "4.0.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.HTML\u0027",
"\u0027Elixir.Phoenix.HTML.Tag\u0027"
],
"packageName": "phoenixframework/phoenix_html",
"packageURL": "pkg:github/phoenixframework/phoenix_html",
"product": "phoenix_html",
"programFiles": [
"lib/phoenix_html.ex",
"lib/phoenix_html/tag.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:attributes_escape/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:build_attrs/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:nested_attrs/3"
},
{
"name": "\u0027Elixir.Phoenix.HTML\u0027:key_escape/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:tag/2"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:content_tag/3"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:attributes_escape/1"
},
{
"name": "\u0027Elixir.Phoenix.HTML.Tag\u0027:tag_attrs/1"
}
],
"repo": "https://github.com/phoenixframework/phoenix_html",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "a47dc8944a773b7e9273d9691dc6744ec793f1de",
"status": "unaffected"
},
{
"at": "d9e4e6b2d9be49e25fb6d6b4fdbb2008174f01a6",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "6ad3a1d7960891a468d54636054a98e11dfb5111",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:*",
"versionEndExcluding": "3.3.5",
"versionStartIncluding": "1.0.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.4.0",
"versionStartIncluding": "4.0.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Andrew Moore"
},
{
"lang": "en",
"type": "reporter",
"value": "Andrew Moore"
},
{
"lang": "en",
"type": "coordinator",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
}
],
"dateAssigned": "2026-10-30T12:20:04.000Z",
"datePublic": "2026-10-30T20:25:07.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027) vulnerability in phoenixframework phoenix_html allows an attacker who controls attribute names to inject attributes and script into rendered HTML via \u003ccode\u003ePhoenix.HTML.attributes_escape/1\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eattributes_escape/1\u003c/code\u003e in \u003ccode\u003elib/phoenix_html.ex\u003c/code\u003e escapes attribute values but not attribute names. \u003ccode\u003ekey_escape/1\u003c/code\u003e passes a binary key through \u003ccode\u003ehtml_escape\u003c/code\u003e, which neutralizes quotes and angle brackets but not whitespace, so a key such as \u003ccode\u003ex onmouseover\u003c/code\u003e ends the attribute and starts a new one. An atom key is only dasherized, so any character passes, including quotes and \u003ccode\u003e\u0026gt;\u003c/code\u003e. Nested \u003ccode\u003edata\u003c/code\u003e, \u003ccode\u003earia\u003c/code\u003e and \u003ccode\u003ephx\u003c/code\u003e keys take the same paths. An application is affected when it builds attribute keys from untrusted input and renders them through HEEx \u003ccode\u003e\u0026lt;tag {@attrs}\u0026gt;\u003c/code\u003e, \u003ccode\u003econtent_tag/3\u003c/code\u003e, or a direct call. Before 3.0.0 the same code lived in \u003ccode\u003ePhoenix.HTML.Tag\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix_html: from 1.0.0 before 3.3.5 and from 4.0.0 before 4.4.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027) vulnerability in phoenixframework phoenix_html allows an attacker who controls attribute names to inject attributes and script into rendered HTML via `Phoenix.HTML.attributes_escape/1`.\n\n`attributes_escape/1` in `lib/phoenix_html.ex` escapes attribute values but not attribute names. `key_escape/1` passes a binary key through `html_escape`, which neutralizes quotes and angle brackets but not whitespace, so a key such as `x onmouseover` ends the attribute and starts a new one. An atom key is only dasherized, so any character passes, including quotes and `\u003e`. Nested `data`, `aria` and `phx` keys take the same paths. An application is affected when it builds attribute keys from untrusted input and renders them through HEEx `\u003ctag {@attrs}\u003e`, `content_tag/3`, or a direct call. Before 3.0.0 the same code lived in `Phoenix.HTML.Tag`.\n\nThis issue affects phoenix_html: from 1.0.0 before 3.3.5 and from 4.0.0 before 4.4.0."
}
],
"value": "Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027) vulnerability in phoenixframework phoenix_html allows an attacker who controls attribute names to inject attributes and script into rendered HTML via Phoenix.HTML.attributes_escape/1.\n\nattributes_escape/1 in lib/phoenix_html.ex escapes attribute values but not attribute names. key_escape/1 passes a binary key through html_escape, which neutralizes quotes and angle brackets but not whitespace, so a key such as x onmouseover ends the attribute and starts a new one. An atom key is only dasherized, so any character passes, including quotes and \u003e. Nested data, aria and phx keys take the same paths. An application is affected when it builds attribute keys from untrusted input and renders them through HEEx \u003ctag {@attrs}\u003e, content_tag/3, or a direct call. Before 3.0.0 the same code lived in Phoenix.HTML.Tag.\n\nThis issue affects phoenix_html: from 1.0.0 before 3.3.5 and from 4.0.0 before 4.4.0."
}
],
"impacts": [
{
"capecId": "CAPEC-63",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who can influence the attribute names an application renders can add event-handler attributes or close the tag and run script in the browser of every user who views the page.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who can influence the attribute names an application renders can add event-handler attributes or close the tag and run script in the browser of every user who views the page."
}
],
"value": "An attacker who can influence the attribute names an application renders can add event-handler attributes or close the tag and run script in the browser of every user who views the page."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 5.3,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "LOW",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-79",
"description": "CWE-79 Improper Neutralization of Input During Web Page Generation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T05:59:50.999Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "EEF CNA record for CVE-2026-117645",
"tags": [
"related",
"third-party-advisory"
],
"url": "https://cna.erlef.org/cves/CVE-2026-117645.html"
},
{
"name": "OSV record EEF-CVE-2026-117645",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-117645"
},
{
"name": "Introducing commit 6ad3a1d in phoenixframework/phoenix_html",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix_html/commit/6ad3a1d7960891a468d54636054a98e11dfb5111"
},
{
"name": "Fix commit a47dc89 in phoenixframework/phoenix_html",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_html/commit/a47dc8944a773b7e9273d9691dc6744ec793f1de"
},
{
"name": "Fix commit d9e4e6b in phoenixframework/phoenix_html",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_html/commit/d9e4e6b2d9be49e25fb6d6b4fdbb2008174f01a6"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Phoenix.HTML vulnerable to attribute injection via unvalidated attribute names in attributes_escape/1",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eDo not derive attribute names from untrusted input. Where dynamic attribute keys are needed, check each key against an allow list, or against a pattern such as \u003ccode\u003e^[a-zA-Z][a-zA-Z0-9:._-]*$\u003c/code\u003e, before passing the map to \u003ccode\u003eattributes_escape/1\u003c/code\u003e or a HEEx \u003ccode\u003e{@attrs}\u003c/code\u003e expression. Do not create atoms from request data.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Do not derive attribute names from untrusted input. Where dynamic attribute keys are needed, check each key against an allow list, or against a pattern such as `^[a-zA-Z][a-zA-Z0-9:._-]*$`, before passing the map to `attributes_escape/1` or a HEEx `{@attrs}` expression. Do not create atoms from request data."
}
],
"value": "Do not derive attribute names from untrusted input. Where dynamic attribute keys are needed, check each key against an allow list, or against a pattern such as ^[a-zA-Z][a-zA-Z0-9:._-]*$, before passing the map to attributes_escape/1 or a HEEx {@attrs} expression. Do not create atoms from request data."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eInstall a vulnerable release, for example \u003ccode\u003eMix.install([{:phoenix_html, \"== 4.3.0\"}])\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eRender a binary name containing a space: \u003ccode\u003ePhoenix.HTML.attributes_escape(%{\"x onmouseover\" =\u0026gt; \"alert(1)\"}) |\u0026gt; Phoenix.HTML.safe_to_string()\u003c/code\u003e returns \u003ccode\u003e x onmouseover=\"alert(1)\"\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eRender an atom name containing a quote: \u003ccode\u003ePhoenix.HTML.attributes_escape([{:\"x\\\" onclick=\\\"alert(1)\", \"y\"}]) |\u0026gt; Phoenix.HTML.safe_to_string()\u003c/code\u003e returns \u003ccode\u003e x\" onclick=\"alert(1)=\"y\"\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eRender a nested atom name: \u003ccode\u003ePhoenix.HTML.attributes_escape(aria: [{:\"x\\\"\u0026gt;\u0026lt;script\u0026gt;\", \"y\"}]) |\u0026gt; Phoenix.HTML.safe_to_string()\u003c/code\u003e returns \u003ccode\u003e aria-x\"\u0026gt;\u0026lt;script\u0026gt;=\"y\"\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003ePlace any of these maps in a HEEx template as \u003ccode\u003e\u0026lt;div {@attrs}\u0026gt;\u003c/code\u003e to deliver the injected attribute to a browser.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Install a vulnerable release, for example `Mix.install([{:phoenix_html, \"== 4.3.0\"}])`.\n2. Render a binary name containing a space: `Phoenix.HTML.attributes_escape(%{\"x onmouseover\" =\u003e \"alert(1)\"}) |\u003e Phoenix.HTML.safe_to_string()` returns ` x onmouseover=\"alert(1)\"`.\n3. Render an atom name containing a quote: `Phoenix.HTML.attributes_escape([{:\"x\\\" onclick=\\\"alert(1)\", \"y\"}]) |\u003e Phoenix.HTML.safe_to_string()` returns ` x\" onclick=\"alert(1)=\"y\"`.\n4. Render a nested atom name: `Phoenix.HTML.attributes_escape(aria: [{:\"x\\\"\u003e\u003cscript\u003e\", \"y\"}]) |\u003e Phoenix.HTML.safe_to_string()` returns ` aria-x\"\u003e\u003cscript\u003e=\"y\"`.\n5. Place any of these maps in a HEEx template as `\u003cdiv {@attrs}\u003e` to deliver the injected attribute to a browser."
}
],
"value": "* Install a vulnerable release, for example Mix.install([{:phoenix_html, \"== 4.3.0\"}]).\n* Render a binary name containing a space: Phoenix.HTML.attributes_escape(%{\"x onmouseover\" =\u003e \"alert(1)\"}) |\u003e Phoenix.HTML.safe_to_string() returns x onmouseover=\"alert(1)\".\n* Render an atom name containing a quote: Phoenix.HTML.attributes_escape([{:\"x\\\" onclick=\\\"alert(1)\", \"y\"}]) |\u003e Phoenix.HTML.safe_to_string() returns x\" onclick=\"alert(1)=\"y\".\n* Render a nested atom name: Phoenix.HTML.attributes_escape(aria: [{:\"x\\\"\u003e\u003cscript\u003e\", \"y\"}]) |\u003e Phoenix.HTML.safe_to_string() returns aria-x\"\u003e\u003cscript\u003e=\"y\".\n* Place any of these maps in a HEEx template as \u003cdiv {@attrs}\u003e to deliver the injected attribute to a browser."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Attribute rendering.\u003c/strong\u003e \u003ccode\u003ePhoenix.HTML.attributes_escape/1\u003c/code\u003e walks the key-value pairs through \u003ccode\u003ebuild_attrs/1\u003c/code\u003e and \u003ccode\u003enested_attrs/3\u003c/code\u003e and emits each as \u003ccode\u003ekey_escape(k)=\"attr_escape(v)\"\u003c/code\u003e. Values are escaped. Names are not checked against the HTML attribute-name grammar.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Binary names.\u003c/strong\u003e \u003ccode\u003ekey_escape/1\u003c/code\u003e sends a binary through \u003ccode\u003ePhoenix.HTML.Engine.html_escape/1\u003c/code\u003e, which replaces \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\"\u003c/code\u003e and \u003ccode\u003e\u0027\u003c/code\u003e. Whitespace passes. HTML uses whitespace to separate attributes, so \u003ccode\u003e%{\"x onmouseover\" =\u0026gt; \"alert(1)\"}\u003c/code\u003e renders \u003ccode\u003e x onmouseover=\"alert(1)\"\u003c/code\u003e: a harmless \u003ccode\u003ex\u003c/code\u003e attribute followed by an attacker-chosen event handler.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Atom names.\u003c/strong\u003e \u003ccode\u003ekey_escape/1\u003c/code\u003e converts an atom with \u003ccode\u003eAtom.to_string/1\u003c/code\u003e and replaces \u003ccode\u003e_\u003c/code\u003e with \u003ccode\u003e-\u003c/code\u003e. Nothing is escaped, so \u003ccode\u003e[{:\"x\\\" onclick=\\\"alert(1)\", \"y\"}]\u003c/code\u003e renders \u003ccode\u003e x\" onclick=\"alert(1)=\"y\"\u003c/code\u003e and \u003ccode\u003earia: [{:\"x\\\"\u0026gt;\u0026lt;script\u0026gt;\", \"y\"}]\u003c/code\u003e renders \u003ccode\u003e aria-x\"\u0026gt;\u0026lt;script\u0026gt;=\"y\"\u003c/code\u003e, which leaves the tag entirely. This path needs the application to create atoms from untrusted input, for example \u003ccode\u003eJason.decode!(body, keys: :atoms)\u003c/code\u003e or \u003ccode\u003eString.to_atom/1\u003c/code\u003e on a parameter.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. Reachability.\u003c/strong\u003e HEEx compiles \u003ccode\u003e\u0026lt;div {@attrs}\u0026gt;\u003c/code\u003e to a call to \u003ccode\u003ePhoenix.HTML.attributes_escape/1\u003c/code\u003e through \u003ccode\u003ePhoenix.LiveView.HTMLEngine\u003c/code\u003e and \u003ccode\u003ePhoenix.LiveView.TagEngine\u003c/code\u003e. \u003ccode\u003etag/2\u003c/code\u003e and \u003ccode\u003econtent_tag/3\u003c/code\u003e in \u003ccode\u003ePhoenix.HTML.Tag\u003c/code\u003e (phoenix_html 1.x to 3.x) and in \u003ccode\u003ePhoenixHTMLHelpers.Tag\u003c/code\u003e (4.x) render attributes the same way. Versions before 3.0.0 emitted the dasherized name without any escaping at all.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Attribute rendering.** `Phoenix.HTML.attributes_escape/1` walks the key-value pairs through `build_attrs/1` and `nested_attrs/3` and emits each as `key_escape(k)=\"attr_escape(v)\"`. Values are escaped. Names are not checked against the HTML attribute-name grammar.\n\n**2. Binary names.** `key_escape/1` sends a binary through `Phoenix.HTML.Engine.html_escape/1`, which replaces `\u0026`, `\u003c`, `\u003e`, `\"` and `\u0027`. Whitespace passes. HTML uses whitespace to separate attributes, so `%{\"x onmouseover\" =\u003e \"alert(1)\"}` renders ` x onmouseover=\"alert(1)\"`: a harmless `x` attribute followed by an attacker-chosen event handler.\n\n**3. Atom names.** `key_escape/1` converts an atom with `Atom.to_string/1` and replaces `_` with `-`. Nothing is escaped, so `[{:\"x\\\" onclick=\\\"alert(1)\", \"y\"}]` renders ` x\" onclick=\"alert(1)=\"y\"` and `aria: [{:\"x\\\"\u003e\u003cscript\u003e\", \"y\"}]` renders ` aria-x\"\u003e\u003cscript\u003e=\"y\"`, which leaves the tag entirely. This path needs the application to create atoms from untrusted input, for example `Jason.decode!(body, keys: :atoms)` or `String.to_atom/1` on a parameter.\n\n**4. Reachability.** HEEx compiles `\u003cdiv {@attrs}\u003e` to a call to `Phoenix.HTML.attributes_escape/1` through `Phoenix.LiveView.HTMLEngine` and `Phoenix.LiveView.TagEngine`. `tag/2` and `content_tag/3` in `Phoenix.HTML.Tag` (phoenix_html 1.x to 3.x) and in `PhoenixHTMLHelpers.Tag` (4.x) render attributes the same way. Versions before 3.0.0 emitted the dasherized name without any escaping at all."
}
],
"value": "1. Attribute rendering. Phoenix.HTML.attributes_escape/1 walks the key-value pairs through build_attrs/1 and nested_attrs/3 and emits each as key_escape(k)=\"attr_escape(v)\". Values are escaped. Names are not checked against the HTML attribute-name grammar.\n\n2. Binary names. key_escape/1 sends a binary through Phoenix.HTML.Engine.html_escape/1, which replaces \u0026, \u003c, \u003e, \" and \u0027. Whitespace passes. HTML uses whitespace to separate attributes, so %{\"x onmouseover\" =\u003e \"alert(1)\"} renders x onmouseover=\"alert(1)\": a harmless x attribute followed by an attacker-chosen event handler.\n\n3. Atom names. key_escape/1 converts an atom with Atom.to_string/1 and replaces _ with -. Nothing is escaped, so [{:\"x\\\" onclick=\\\"alert(1)\", \"y\"}] renders x\" onclick=\"alert(1)=\"y\" and aria: [{:\"x\\\"\u003e\u003cscript\u003e\", \"y\"}] renders aria-x\"\u003e\u003cscript\u003e=\"y\", which leaves the tag entirely. This path needs the application to create atoms from untrusted input, for example Jason.decode!(body, keys: :atoms) or String.to_atom/1 on a parameter.\n\n4. Reachability. HEEx compiles \u003cdiv {@attrs}\u003e to a call to Phoenix.HTML.attributes_escape/1 through Phoenix.LiveView.HTMLEngine and Phoenix.LiveView.TagEngine. tag/2 and content_tag/3 in Phoenix.HTML.Tag (phoenix_html 1.x to 3.x) and in PhoenixHTMLHelpers.Tag (4.x) render attributes the same way. Versions before 3.0.0 emitted the dasherized name without any escaping at all."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-117645",
"datePublished": "2026-10-30T20:25:06.758Z",
"dateReserved": "2026-10-30T12:15:02.726Z",
"dateUpdated": "2026-11-20T05:59:50.999Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-64941 (GCVE-0-2026-64941)
Vulnerability from cvelistv5 – Published: 2026-08-10 11:05 – Updated: 2026-11-19 08:44
VLAI
EPSS
VEX
Title
Open redirect in Phoenix.LiveView.validate_local_url!/2 via ASCII tab, LF and CR
Summary
URL Redirection to Untrusted Site ('Open Redirect') vulnerability in phoenixframework phoenix_live_view allows an attacker to send a victim's browser to an origin of the attacker's choosing via a :to value containing ASCII tab, LF or CR.
redirect/2 validates :to through the private validate_local_url!/2 in lib/phoenix_live_view.ex, which is intended to guarantee the target is a path within the application. It rejects a leading // and any backslash, but not ASCII tab, LF or CR. Browsers strip those three characters before parsing a URL, so a value such as /<TAB>/example.com passes validation as a path and is then resolved as the scheme-relative URL //example.com. The live navigation functions share the guard but are not affected, because the client expands their target against the current origin. push_patch/2 is also affected before 0.7.0, which is when that expansion was added.
This issue affects phoenix_live_view: from 0.5.0 before 1.0.19, from 1.1.0-rc.0 before 1.1.33, and from 1.2.0-rc.0 before 1.2.9.
Severity
SSVC
Exploitation: poc
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-08-10 13:00 UTC
CWE
- CWE-601 - URL Redirection to Untrusted Site
Assigner
References
7 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix_live_view |
Affected:
0.5.0 , < 1.0.19
(semver)
Affected: 1.1.0-rc.0 , < 1.1.33 (semver) Affected: 1.2.0-rc.0 , < 1.2.9 (semver) cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix_live_view |
Affected:
b20dba3f65a380b2e4868dae03397f13d2daa070 , < *
(git)
cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:* |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-64941",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-08-10T13:00:10.932600Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-08-10T13:00:33.543Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-36m4-rm57-3prf"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView\u0027"
],
"packageName": "phoenix_live_view",
"packageURL": "pkg:hex/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView\u0027:redirect/2"
},
{
"name": "\u0027Elixir.Phoenix.LiveView\u0027:push_patch/2"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.0.19",
"status": "affected",
"version": "0.5.0",
"versionType": "semver"
},
{
"lessThan": "1.1.33",
"status": "affected",
"version": "1.1.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.2.9",
"status": "affected",
"version": "1.2.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView\u0027"
],
"packageName": "phoenixframework/phoenix_live_view",
"packageURL": "pkg:github/phoenixframework/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView\u0027:redirect/2"
},
{
"name": "\u0027Elixir.Phoenix.LiveView\u0027:push_patch/2"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "0b8c733133466912f81adecaea72b6712370242e",
"status": "unaffected"
},
{
"at": "1c164f83df0bb922dfff9c60d125da5b0cfd6619",
"status": "unaffected"
},
{
"at": "2068b304d71907064b159b6bc60c5ad85a876ecf",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "b20dba3f65a380b2e4868dae03397f13d2daa070",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must pass an externally influenced value as \u003ccode\u003e:to\u003c/code\u003e to \u003ccode\u003eredirect/2\u003c/code\u003e, or to \u003ccode\u003epush_patch/2\u003c/code\u003e before 0.7.0, for example a \u003ccode\u003ereturn_to\u003c/code\u003e parameter carried through sign-in or a navigation target taken from a \u003ccode\u003ehandle_event/3\u003c/code\u003e payload.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must pass an externally influenced value as `:to` to `redirect/2`, or to `push_patch/2` before 0.7.0, for example a `return_to` parameter carried through sign-in or a navigation target taken from a `handle_event/3` payload."
}
],
"value": "The application must pass an externally influenced value as :to to redirect/2, or to push_patch/2 before 0.7.0, for example a return_to parameter carried through sign-in or a navigation target taken from a handle_event/3 payload."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.0.19",
"versionStartIncluding": "0.5.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.1.33",
"versionStartIncluding": "1.1.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.2.9",
"versionStartIncluding": "1.2.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Eurico Nicacio"
},
{
"lang": "en",
"type": "analyst",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
},
{
"lang": "en",
"type": "remediation reviewer",
"value": "Jos\u00e9 Valim"
}
],
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eURL Redirection to Untrusted Site (\u0027Open Redirect\u0027) vulnerability in phoenixframework phoenix_live_view allows an attacker to send a victim\u0027s browser to an origin of the attacker\u0027s choosing via a \u003ccode\u003e:to\u003c/code\u003e value containing ASCII tab, LF or CR.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eredirect/2\u003c/code\u003e validates \u003ccode\u003e:to\u003c/code\u003e through the private \u003ccode\u003evalidate_local_url!/2\u003c/code\u003e in \u003ccode\u003elib/phoenix_live_view.ex\u003c/code\u003e, which is intended to guarantee the target is a path within the application. It rejects a leading \u003ccode\u003e//\u003c/code\u003e and any backslash, but not ASCII tab, LF or CR. Browsers strip those three characters before parsing a URL, so a value such as \u003ccode\u003e/\u0026lt;TAB\u0026gt;/example.com\u003c/code\u003e passes validation as a path and is then resolved as the scheme-relative URL \u003ccode\u003e//example.com\u003c/code\u003e. The live navigation functions share the guard but are not affected, because the client expands their target against the current origin. \u003ccode\u003epush_patch/2\u003c/code\u003e is also affected before 0.7.0, which is when that expansion was added.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix_live_view: from 0.5.0 before 1.0.19, from 1.1.0-rc.0 before 1.1.33, and from 1.2.0-rc.0 before 1.2.9.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "URL Redirection to Untrusted Site (\u0027Open Redirect\u0027) vulnerability in phoenixframework phoenix_live_view allows an attacker to send a victim\u0027s browser to an origin of the attacker\u0027s choosing via a `:to` value containing ASCII tab, LF or CR.\n\n`redirect/2` validates `:to` through the private `validate_local_url!/2` in `lib/phoenix_live_view.ex`, which is intended to guarantee the target is a path within the application. It rejects a leading `//` and any backslash, but not ASCII tab, LF or CR. Browsers strip those three characters before parsing a URL, so a value such as `/\u003cTAB\u003e/example.com` passes validation as a path and is then resolved as the scheme-relative URL `//example.com`. The live navigation functions share the guard but are not affected, because the client expands their target against the current origin. `push_patch/2` is also affected before 0.7.0, which is when that expansion was added.\n\nThis issue affects phoenix_live_view: from 0.5.0 before 1.0.19, from 1.1.0-rc.0 before 1.1.33, and from 1.2.0-rc.0 before 1.2.9."
}
],
"value": "URL Redirection to Untrusted Site (\u0027Open Redirect\u0027) vulnerability in phoenixframework phoenix_live_view allows an attacker to send a victim\u0027s browser to an origin of the attacker\u0027s choosing via a :to value containing ASCII tab, LF or CR.\n\nredirect/2 validates :to through the private validate_local_url!/2 in lib/phoenix_live_view.ex, which is intended to guarantee the target is a path within the application. It rejects a leading // and any backslash, but not ASCII tab, LF or CR. Browsers strip those three characters before parsing a URL, so a value such as /\u003cTAB\u003e/example.com passes validation as a path and is then resolved as the scheme-relative URL //example.com. The live navigation functions share the guard but are not affected, because the client expands their target against the current origin. push_patch/2 is also affected before 0.7.0, which is when that expansion was added.\n\nThis issue affects phoenix_live_view: from 0.5.0 before 1.0.19, from 1.1.0-rc.0 before 1.1.33, and from 1.2.0-rc.0 before 1.2.9."
}
],
"impacts": [
{
"capecId": "CAPEC-3",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-3 Using Leading \u0027Ghost\u0027 Character Sequences to Bypass Input Filters"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 2.1,
"baseSeverity": "LOW",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "LOW",
"subIntegrityImpact": "LOW",
"userInteraction": "ACTIVE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-601",
"description": "CWE-601 URL Redirection to Untrusted Site",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T08:44:28.157Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-36m4-rm57-3prf"
},
{
"name": "EEF CNA record for CVE-2026-64941",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-64941.html"
},
{
"name": "OSV record EEF-CVE-2026-64941",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-64941"
},
{
"name": "Introducing commit b20dba3 in phoenixframework/phoenix_live_view",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/b20dba3f65a380b2e4868dae03397f13d2daa070"
},
{
"name": "Fix commit 0b8c733 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/0b8c733133466912f81adecaea72b6712370242e"
},
{
"name": "Fix commit 1c164f8 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/1c164f83df0bb922dfff9c60d125da5b0cfd6619"
},
{
"name": "Fix commit 2068b30 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/2068b304d71907064b159b6bc60c5ad85a876ecf"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Open redirect in Phoenix.LiveView.validate_local_url!/2 via ASCII tab, LF and CR",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eReject any untrusted value containing ASCII tab, LF or CR before passing it as \u003ccode\u003e:to\u003c/code\u003e to \u003ccode\u003eredirect/2\u003c/code\u003e, or to \u003ccode\u003epush_patch/2\u003c/code\u003e before 0.7.0. Alternatively, map client-supplied navigation targets to a fixed set of known-good paths rather than forwarding the value.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Reject any untrusted value containing ASCII tab, LF or CR before passing it as `:to` to `redirect/2`, or to `push_patch/2` before 0.7.0. Alternatively, map client-supplied navigation targets to a fixed set of known-good paths rather than forwarding the value."
}
],
"value": "Reject any untrusted value containing ASCII tab, LF or CR before passing it as :to to redirect/2, or to push_patch/2 before 0.7.0. Alternatively, map client-supplied navigation targets to a fixed set of known-good paths rather than forwarding the value."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-64941",
"datePublished": "2026-08-10T11:05:14.571Z",
"dateReserved": "2026-08-09T16:30:01.572Z",
"dateUpdated": "2026-11-19T08:44:28.157Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-58228 (GCVE-0-2026-58228)
Vulnerability from cvelistv5 – Published: 2026-07-13 18:04 – Updated: 2026-11-24 05:20
VLAI
EPSS
VEX
Title
Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via <.link>
Summary
Cross-site scripting vulnerability in phoenixframework phoenix_live_view allows an attacker to bypass URL scheme validation and execute JavaScript in a victim's browser session.
The Phoenix.LiveView.Utils.valid_destination!/2 and Phoenix.LiveView.Utils.valid_live_navigation_destination!/2 functions in lib/phoenix_live_view/utils.ex rely on an internal uri_scheme/1 helper that only detects a scheme when the input's first byte is an ASCII letter. Inputs beginning with an ASCII control character or space fall through to a nil-returning clause, causing the URL to be treated as a safe relative path.
Standard browsers implement the WHATWG URL parser, which strips leading C0 control and space characters before parsing. As a result, an input such as " javascript:alert(1)" is passed unchanged into <.link href={...}> and, when clicked, is parsed by the browser as a javascript: URL that executes attacker-controlled script in the victim's session.
Applications that render user-supplied URLs (for example profile links, redirect targets, or external references) via <.link href={...}> are affected.
This issue affects phoenix_live_view: from 1.2.2 before 1.2.7.
Severity
SSVC
Exploitation: poc
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-07-13 18:58 UTC
CWE
- CWE-79 - Improper Neutralization of Input During Web Page Generation
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/phoenixframework/phoenix_live_… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-58228.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-58228 | related |
| https://github.com/phoenixframework/phoenix_live_… | related |
| https://github.com/phoenixframework/phoenix_live_… | patch |
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix_live_view |
Affected:
1.2.2 , < 1.2.7
(semver)
cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix_live_view |
Affected:
4b63216ae68886db99cf7772af23372d76c40e7e , < 86165533e311469a1b62093fd182d9d874de8106
(git)
cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:* |
Date Public
2026-07-13 18:04
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-58228",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-07-13T18:58:11.563760Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-07-13T18:58:51.407Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView.Utils\u0027"
],
"packageName": "phoenix_live_view",
"packageURL": "pkg:hex/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view/utils.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView.Utils\u0027:valid_destination!/2"
},
{
"name": "\u0027Elixir.Phoenix.LiveView.Utils\u0027:valid_live_navigation_destination!/2"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.2.7",
"status": "affected",
"version": "1.2.2",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.LiveView.Utils\u0027"
],
"packageName": "phoenixframework/phoenix_live_view",
"packageURL": "pkg:github/phoenixframework/phoenix_live_view",
"product": "phoenix_live_view",
"programFiles": [
"lib/phoenix_live_view/utils.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.LiveView.Utils\u0027:valid_destination!/2"
},
{
"name": "\u0027Elixir.Phoenix.LiveView.Utils\u0027:valid_live_navigation_destination!/2"
}
],
"repo": "https://github.com/phoenixframework/phoenix_live_view",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "86165533e311469a1b62093fd182d9d874de8106",
"status": "affected",
"version": "4b63216ae68886db99cf7772af23372d76c40e7e",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.2.7",
"versionStartIncluding": "1.2.2",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Barna Kovacs"
},
{
"lang": "en",
"type": "analyst",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "analyst",
"value": "Jos\u00e9 Valim"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
}
],
"datePublic": "2026-07-13T18:04:30.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eCross-site scripting vulnerability in phoenixframework phoenix_live_view allows an attacker to bypass URL scheme validation and execute JavaScript in a victim\u0027s browser session.\u003c/p\u003e\n\u003cp\u003eThe \u003ccode\u003ePhoenix.LiveView.Utils.valid_destination!/2\u003c/code\u003e and \u003ccode\u003ePhoenix.LiveView.Utils.valid_live_navigation_destination!/2\u003c/code\u003e functions in \u003ccode\u003elib/phoenix_live_view/utils.ex\u003c/code\u003e rely on an internal \u003ccode\u003euri_scheme/1\u003c/code\u003e helper that only detects a scheme when the input\u0027s first byte is an ASCII letter. Inputs beginning with an ASCII control character or space fall through to a nil-returning clause, causing the URL to be treated as a safe relative path.\u003c/p\u003e\n\u003cp\u003eStandard browsers implement the WHATWG URL parser, which strips leading C0 control and space characters before parsing. As a result, an input such as \u003ccode\u003e\" javascript:alert(1)\"\u003c/code\u003e is passed unchanged into \u003ccode\u003e\u0026lt;.link href={...}\u0026gt;\u003c/code\u003e and, when clicked, is parsed by the browser as a \u003ccode\u003ejavascript:\u003c/code\u003e URL that executes attacker-controlled script in the victim\u0027s session.\u003c/p\u003e\n\u003cp\u003eApplications that render user-supplied URLs (for example profile links, redirect targets, or external references) via \u003ccode\u003e\u0026lt;.link href={...}\u0026gt;\u003c/code\u003e are affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix_live_view: from 1.2.2 before 1.2.7.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Cross-site scripting vulnerability in phoenixframework phoenix_live_view allows an attacker to bypass URL scheme validation and execute JavaScript in a victim\u0027s browser session.\n\nThe `Phoenix.LiveView.Utils.valid_destination!/2` and `Phoenix.LiveView.Utils.valid_live_navigation_destination!/2` functions in `lib/phoenix_live_view/utils.ex` rely on an internal `uri_scheme/1` helper that only detects a scheme when the input\u0027s first byte is an ASCII letter. Inputs beginning with an ASCII control character or space fall through to a nil-returning clause, causing the URL to be treated as a safe relative path.\n\nStandard browsers implement the WHATWG URL parser, which strips leading C0 control and space characters before parsing. As a result, an input such as `\" javascript:alert(1)\"` is passed unchanged into `\u003c.link href={...}\u003e` and, when clicked, is parsed by the browser as a `javascript:` URL that executes attacker-controlled script in the victim\u0027s session.\n\nApplications that render user-supplied URLs (for example profile links, redirect targets, or external references) via `\u003c.link href={...}\u003e` are affected.\n\nThis issue affects phoenix_live_view: from 1.2.2 before 1.2.7."
}
],
"value": "Cross-site scripting vulnerability in phoenixframework phoenix_live_view allows an attacker to bypass URL scheme validation and execute JavaScript in a victim\u0027s browser session.\n\nThe Phoenix.LiveView.Utils.valid_destination!/2 and Phoenix.LiveView.Utils.valid_live_navigation_destination!/2 functions in lib/phoenix_live_view/utils.ex rely on an internal uri_scheme/1 helper that only detects a scheme when the input\u0027s first byte is an ASCII letter. Inputs beginning with an ASCII control character or space fall through to a nil-returning clause, causing the URL to be treated as a safe relative path.\n\nStandard browsers implement the WHATWG URL parser, which strips leading C0 control and space characters before parsing. As a result, an input such as \" javascript:alert(1)\" is passed unchanged into \u003c.link href={...}\u003e and, when clicked, is parsed by the browser as a javascript: URL that executes attacker-controlled script in the victim\u0027s session.\n\nApplications that render user-supplied URLs (for example profile links, redirect targets, or external references) via \u003c.link href={...}\u003e are affected.\n\nThis issue affects phoenix_live_view: from 1.2.2 before 1.2.7."
}
],
"impacts": [
{
"capecId": "CAPEC-63",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-63 Cross-Site Scripting (XSS)"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 5.1,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "HIGH",
"subIntegrityImpact": "HIGH",
"userInteraction": "ACTIVE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "LOW",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-79",
"description": "CWE-79 Improper Neutralization of Input During Web Page Generation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T05:20:41.604Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via \u003c.link\u003e",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq"
},
{
"name": "EEF CNA record for CVE-2026-58228",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-58228.html"
},
{
"name": "OSV record EEF-CVE-2026-58228",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-58228"
},
{
"name": "Introducing commit 4b63216 in phoenixframework/phoenix_live_view",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/4b63216ae68886db99cf7772af23372d76c40e7e"
},
{
"name": "Fix commit 8616553 in phoenixframework/phoenix_live_view",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix_live_view/commit/86165533e311469a1b62093fd182d9d874de8106"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via \u003c.link\u003e",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eStrip leading ASCII control and space bytes (code points 0x00 through 0x20) from any untrusted URL before passing it to \u003ccode\u003e\u0026lt;.link href={...}\u0026gt;\u003c/code\u003e, or reject such inputs outright. This aligns application-level validation with the WHATWG URL parser used by browsers and prevents the scheme-detection bypass.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Strip leading ASCII control and space bytes (code points 0x00 through 0x20) from any untrusted URL before passing it to `\u003c.link href={...}\u003e`, or reject such inputs outright. This aligns application-level validation with the WHATWG URL parser used by browsers and prevents the scheme-detection bypass."
}
],
"value": "Strip leading ASCII control and space bytes (code points 0x00 through 0x20) from any untrusted URL before passing it to \u003c.link href={...}\u003e, or reject such inputs outright. This aligns application-level validation with the WHATWG URL parser used by browsers and prevents the scheme-detection bypass."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-58228",
"datePublished": "2026-07-13T18:04:30.636Z",
"dateReserved": "2026-06-29T18:54:08.633Z",
"dateUpdated": "2026-11-24T05:20:41.604Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-56812 (GCVE-0-2026-56812)
Vulnerability from cvelistv5 – Published: 2026-07-07 15:22 – Updated: 2026-09-24 21:29
VLAI
EPSS
VEX
Title
Phoenix JavaScript presence client crashes on presence keys colliding with Object.prototype members in Presence.syncState/syncDiff
Summary
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.
Severity
SSVC
Exploitation: poc
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-07-07 16:11 UTC
CWE
- CWE-754 - Improper Check for Unusual or Exceptional Conditions
Assigner
References
8 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix |
Affected:
1.2.0-rc.0 , < 1.5.15
(semver)
Affected: 1.6.0-rc.0 , < 1.6.17 (semver) Affected: 1.7.0-rc.0 , < 1.7.24 (semver) Affected: 1.8.0-rc.0 , < 1.8.9 (semver) cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix |
Affected:
2270aaf21bd02c6a6a1022820564efb605a97655 , < *
(git)
cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
Date Public
2026-07-07 15:22
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-56812",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-07-07T16:11:03.353715Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-07-07T16:11:10.938Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-63mc-hw7g-86rr"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"Presence"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"assets/js/phoenix/presence.js"
],
"programRoutines": [
{
"name": "Presence.syncState"
},
{
"name": "Presence.syncDiff"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.15",
"status": "affected",
"version": "1.2.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.6.17",
"status": "affected",
"version": "1.6.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.7.24",
"status": "affected",
"version": "1.7.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.8.9",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://registry.npmjs.org",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"Presence"
],
"packageName": "phoenix",
"packageURL": "pkg:npm/phoenix",
"product": "phoenix",
"programFiles": [
"assets/js/phoenix/presence.js"
],
"programRoutines": [
{
"name": "Presence.syncState"
},
{
"name": "Presence.syncDiff"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.15",
"status": "affected",
"version": "1.2.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.6.17",
"status": "affected",
"version": "1.6.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.7.24",
"status": "affected",
"version": "1.7.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.8.9",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"Presence"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"assets/js/phoenix/presence.js"
],
"programRoutines": [
{
"name": "Presence.syncState"
},
{
"name": "Presence.syncDiff"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "7f7b971c1ea0994e3fbd1c11ddb05e780bd38ad8",
"status": "unaffected"
},
{
"at": "89a1c4be161e436241e12b2378a719904b9bd96f",
"status": "unaffected"
},
{
"at": "b90b22521465ece00eb5a19d5aa2b9465b209c85",
"status": "unaffected"
},
{
"at": "beffc4da1e787e572121f68902c63daf4fe7d9c2",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "2270aaf21bd02c6a6a1022820564efb605a97655",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must use \u003ccode\u003ePhoenix.Presence\u003c/code\u003e (or otherwise drive the Phoenix JavaScript presence client) and track presences under keys that are influenced by untrusted client input, for example a username or id chosen by the connecting user. Applications that derive presence keys exclusively from server-controlled, validated values are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must use `Phoenix.Presence` (or otherwise drive the Phoenix JavaScript presence client) and track presences under keys that are influenced by untrusted client input, for example a username or id chosen by the connecting user. Applications that derive presence keys exclusively from server-controlled, validated values are not affected."
}
],
"value": "The application must use Phoenix.Presence (or otherwise drive the Phoenix JavaScript presence client) and track presences under keys that are influenced by untrusted client input, for example a username or id chosen by the connecting user. Applications that derive presence keys exclusively from server-controlled, validated values are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.5.15",
"versionStartIncluding": "1.2.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.6.17",
"versionStartIncluding": "1.6.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.7.24",
"versionStartIncluding": "1.7.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.8.9",
"versionStartIncluding": "1.8.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "analyst",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "analyst",
"value": "Jos\u00e9 Valim"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
}
],
"datePublic": "2026-07-07T15:22:46.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper 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.\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program files \u003ccode\u003eassets/js/phoenix/presence.js\u003c/code\u003e and program routines \u003ccode\u003ePresence.syncState\u003c/code\u003e and \u003ccode\u003ePresence.syncDiff\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThe Phoenix JavaScript presence client checks whether a presence already exists with a bare truthiness test (\u003ccode\u003estate[key]\u003c/code\u003e) 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 \u003ccode\u003eObject.prototype\u003c/code\u003e member name (\u003ccode\u003e__proto__\u003c/code\u003e, \u003ccode\u003econstructor\u003c/code\u003e, \u003ccode\u003etoString\u003c/code\u003e, \u003ccode\u003ehasOwnProperty\u003c/code\u003e, and similar) makes that lookup return JavaScript\u0027s built-in \u003ccode\u003eObject.prototype\u003c/code\u003e instead of \u003ccode\u003eundefined\u003c/code\u003e. Because the prototype is truthy, the code treats it as an existing presence and reads \u003ccode\u003e.metas.map(...)\u003c/code\u003e off it, which throws an uncaught \u003ccode\u003eTypeError\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThe exception propagates out of the presence message handler, so the local state is never updated and \u003ccode\u003eonSync()\u003c/code\u003e 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 \u003ccode\u003esyncState\u003c/code\u003e and \u003ccode\u003esyncDiff\u003c/code\u003e 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 \u003ccode\u003eObject.prototype\u003c/code\u003e (it is not prototype pollution).\u003c/p\u003e\n\u003cp\u003eThis 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.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "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\u0027s 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."
}
],
"value": "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\u0027s 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."
}
],
"impacts": [
{
"capecId": "CAPEC-153",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-153 Input Data Manipulation"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-754",
"description": "CWE-754 Improper Check for Unusual or Exceptional Conditions",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-09-24T21:29:18.181Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-63mc-hw7g-86rr"
},
{
"name": "EEF CNA record for CVE-2026-56812",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-56812.html"
},
{
"name": "OSV record EEF-CVE-2026-56812",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-56812"
},
{
"name": "Introducing commit 2270aaf in phoenixframework/phoenix",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix/commit/2270aaf21bd02c6a6a1022820564efb605a97655"
},
{
"name": "Fix commit 7f7b971 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/7f7b971c1ea0994e3fbd1c11ddb05e780bd38ad8"
},
{
"name": "Fix commit 89a1c4b in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/89a1c4be161e436241e12b2378a719904b9bd96f"
},
{
"name": "Fix commit b90b225 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/b90b22521465ece00eb5a19d5aa2b9465b209c85"
},
{
"name": "Fix commit beffc4d in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/beffc4da1e787e572121f68902c63daf4fe7d9c2"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Phoenix JavaScript presence client crashes on presence keys colliding with Object.prototype members in Presence.syncState/syncDiff",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eReject or sanitize presence keys that collide with JavaScript \u003ccode\u003eObject.prototype\u003c/code\u003e member names (for example \u003ccode\u003e__proto__\u003c/code\u003e, \u003ccode\u003econstructor\u003c/code\u003e, \u003ccode\u003eprototype\u003c/code\u003e, \u003ccode\u003etoString\u003c/code\u003e, \u003ccode\u003ehasOwnProperty\u003c/code\u003e) before calling \u003ccode\u003ePhoenix.Presence.track\u003c/code\u003e, 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.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "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."
}
],
"value": "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."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-56812",
"datePublished": "2026-07-07T15:22:46.933Z",
"dateReserved": "2026-06-23T12:29:02.507Z",
"dateUpdated": "2026-09-24T21:29:18.181Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-56811 (GCVE-0-2026-56811)
Vulnerability from cvelistv5 – Published: 2026-07-07 15:09 – Updated: 2026-11-20 06:02
VLAI
EPSS
VEX
Title
Phoenix transports do not limit channel joins per connection, enabling process-exhaustion denial of service
Summary
Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix (Phoenix.Socket module) allows an unauthenticated attacker to cause a denial of service against any endpoint that mounts a Phoenix socket with a reachable channel transport (WebSocket or LongPoll).
This vulnerability is associated with program files lib/phoenix/socket.ex and program routine 'Elixir.Phoenix.Socket':handle_in/4.
Phoenix transports do not limit the number of channels that a single transport process may join. Every phx_join message a client sends over one connection starts a persistent channel process, and the socket process accepts an unbounded number of them. A single unauthenticated client can therefore open one WebSocket or LongPoll connection and stream a large number of phx_join messages, spawning hundreds of thousands of channel processes over that one connection and eventually reaching the BEAM maximum process limit. Once the process table is exhausted the virtual machine can no longer start new processes, denying service to legitimate traffic across the whole node. Because the amplification happens inside a single connection, network-layer connection caps and rate limiting do not mitigate it.
The fix adds a :max_channels_per_transport option (default 100) that bounds the number of channels a single transport process can join, forcing abusive clients to open many connections instead, where external load balancers and reverse proxies can throttle them.
This issue affects phoenix: from 0.11.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.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-07-07 16:12 UTC
CWE
- CWE-770 - Allocation of Resources Without Limits or Throttling
Assigner
References
8 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix |
Affected:
0.11.0 , < 1.5.15
(semver)
Affected: 1.6.0-rc.0 , < 1.6.17 (semver) Affected: 1.7.0-rc.0 , < 1.7.24 (semver) Affected: 1.8.0-rc.0 , < 1.8.9 (semver) cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix |
Affected:
14a297e88023cb280a577962a49a0bbdeef9f4eb , < *
(git)
cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
Date Public
2026-07-07 15:09
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-56811",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-07-07T16:12:27.662417Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-07-07T16:12:37.299Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Socket\u0027"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/socket.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Socket\u0027:handle_in/4"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.15",
"status": "affected",
"version": "0.11.0",
"versionType": "semver"
},
{
"lessThan": "1.6.17",
"status": "affected",
"version": "1.6.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.7.24",
"status": "affected",
"version": "1.7.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.8.9",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Socket\u0027"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/socket.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Socket\u0027:handle_in/4"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "16e295d2fccab185d1292322e2bee5d46c725c8a",
"status": "unaffected"
},
{
"at": "a612100cd8a4279091abc1a2ef8fb98a6d01c0a1",
"status": "unaffected"
},
{
"at": "c498ba8cf49f6accbbd0c643a5340b58db891218",
"status": "unaffected"
},
{
"at": "d19ca0a8d9f82c130b7ed339b9f033433e2dea5e",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "14a297e88023cb280a577962a49a0bbdeef9f4eb",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must mount a Phoenix socket that defines channels and expose it over HTTP so that a client can reach a channel transport (WebSocket or LongPoll) and send \u003ccode\u003ephx_join\u003c/code\u003e messages. The WebSocket transport is enabled by default on a mounted socket, while the LongPoll transport is opt-in. Applications that do not mount a socket with channels are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must mount a Phoenix socket that defines channels and expose it over HTTP so that a client can reach a channel transport (WebSocket or LongPoll) and send `phx_join` messages. The WebSocket transport is enabled by default on a mounted socket, while the LongPoll transport is opt-in. Applications that do not mount a socket with channels are not affected."
}
],
"value": "The application must mount a Phoenix socket that defines channels and expose it over HTTP so that a client can reach a channel transport (WebSocket or LongPoll) and send phx_join messages. The WebSocket transport is enabled by default on a mounted socket, while the LongPoll transport is opt-in. Applications that do not mount a socket with channels are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.5.15",
"versionStartIncluding": "0.11.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.6.17",
"versionStartIncluding": "1.6.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.7.24",
"versionStartIncluding": "1.7.0-rc.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.8.9",
"versionStartIncluding": "1.8.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "analyst",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "analyst",
"value": "Jos\u00e9 Valim"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Steffen Deusch"
}
],
"datePublic": "2026-07-07T15:09:57.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAllocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix (\u003ccode\u003ePhoenix.Socket\u003c/code\u003e module) allows an unauthenticated attacker to cause a denial of service against any endpoint that mounts a Phoenix socket with a reachable channel transport (WebSocket or LongPoll).\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program files \u003ccode\u003elib/phoenix/socket.ex\u003c/code\u003e and program routine \u003ccode\u003e\u0027Elixir.Phoenix.Socket\u0027:handle_in/4\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003ePhoenix transports do not limit the number of channels that a single transport process may join. Every \u003ccode\u003ephx_join\u003c/code\u003e message a client sends over one connection starts a persistent channel process, and the socket process accepts an unbounded number of them. A single unauthenticated client can therefore open one WebSocket or LongPoll connection and stream a large number of \u003ccode\u003ephx_join\u003c/code\u003e messages, spawning hundreds of thousands of channel processes over that one connection and eventually reaching the BEAM maximum process limit. Once the process table is exhausted the virtual machine can no longer start new processes, denying service to legitimate traffic across the whole node. Because the amplification happens inside a single connection, network-layer connection caps and rate limiting do not mitigate it.\u003c/p\u003e\n\u003cp\u003eThe fix adds a \u003ccode\u003e:max_channels_per_transport\u003c/code\u003e option (default \u003ccode\u003e100\u003c/code\u003e) that bounds the number of channels a single transport process can join, forcing abusive clients to open many connections instead, where external load balancers and reverse proxies can throttle them.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix: from 0.11.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.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix (`Phoenix.Socket` module) allows an unauthenticated attacker to cause a denial of service against any endpoint that mounts a Phoenix socket with a reachable channel transport (WebSocket or LongPoll).\n\nThis vulnerability is associated with program files `lib/phoenix/socket.ex` and program routine `\u0027Elixir.Phoenix.Socket\u0027:handle_in/4`.\n\nPhoenix transports do not limit the number of channels that a single transport process may join. Every `phx_join` message a client sends over one connection starts a persistent channel process, and the socket process accepts an unbounded number of them. A single unauthenticated client can therefore open one WebSocket or LongPoll connection and stream a large number of `phx_join` messages, spawning hundreds of thousands of channel processes over that one connection and eventually reaching the BEAM maximum process limit. Once the process table is exhausted the virtual machine can no longer start new processes, denying service to legitimate traffic across the whole node. Because the amplification happens inside a single connection, network-layer connection caps and rate limiting do not mitigate it.\n\nThe fix adds a `:max_channels_per_transport` option (default `100`) that bounds the number of channels a single transport process can join, forcing abusive clients to open many connections instead, where external load balancers and reverse proxies can throttle them.\n\nThis issue affects phoenix: from 0.11.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."
}
],
"value": "Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix (Phoenix.Socket module) allows an unauthenticated attacker to cause a denial of service against any endpoint that mounts a Phoenix socket with a reachable channel transport (WebSocket or LongPoll).\n\nThis vulnerability is associated with program files lib/phoenix/socket.ex and program routine \u0027Elixir.Phoenix.Socket\u0027:handle_in/4.\n\nPhoenix transports do not limit the number of channels that a single transport process may join. Every phx_join message a client sends over one connection starts a persistent channel process, and the socket process accepts an unbounded number of them. A single unauthenticated client can therefore open one WebSocket or LongPoll connection and stream a large number of phx_join messages, spawning hundreds of thousands of channel processes over that one connection and eventually reaching the BEAM maximum process limit. Once the process table is exhausted the virtual machine can no longer start new processes, denying service to legitimate traffic across the whole node. Because the amplification happens inside a single connection, network-layer connection caps and rate limiting do not mitigate it.\n\nThe fix adds a :max_channels_per_transport option (default 100) that bounds the number of channels a single transport process can join, forcing abusive clients to open many connections instead, where external load balancers and reverse proxies can throttle them.\n\nThis issue affects phoenix: from 0.11.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."
}
],
"impacts": [
{
"capecId": "CAPEC-130",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-130 Excessive Allocation"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 8.7,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-770",
"description": "CWE-770 Allocation of Resources Without Limits or Throttling",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T06:02:03.163Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-6983-jfq8-485w"
},
{
"name": "EEF CNA record for CVE-2026-56811",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-56811.html"
},
{
"name": "OSV record EEF-CVE-2026-56811",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-56811"
},
{
"name": "Introducing commit 14a297e in phoenixframework/phoenix",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix/commit/14a297e88023cb280a577962a49a0bbdeef9f4eb"
},
{
"name": "Fix commit 16e295d in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/16e295d2fccab185d1292322e2bee5d46c725c8a"
},
{
"name": "Fix commit a612100 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/a612100cd8a4279091abc1a2ef8fb98a6d01c0a1"
},
{
"name": "Fix commit c498ba8 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/c498ba8cf49f6accbbd0c643a5340b58db891218"
},
{
"name": "Fix commit d19ca0a in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/d19ca0a8d9f82c130b7ed339b9f033433e2dea5e"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Phoenix transports do not limit channel joins per connection, enabling process-exhaustion denial of service",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eFront the socket endpoint with a reverse proxy that limits the number and rate of channel-join frames per connection, or disable transports that are not needed (for example remove \u003ccode\u003elongpoll: true\u003c/code\u003e from the \u003ccode\u003esocket\u003c/code\u003e declaration where the LongPoll transport is not required). Lowering the BEAM \u003ccode\u003e+P\u003c/code\u003e maximum process limit does not prevent the exhaustion and can make it easier to trigger.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Front the socket endpoint with a reverse proxy that limits the number and rate of channel-join frames per connection, or disable transports that are not needed (for example remove `longpoll: true` from the `socket` declaration where the LongPoll transport is not required). Lowering the BEAM `+P` maximum process limit does not prevent the exhaustion and can make it easier to trigger."
}
],
"value": "Front the socket endpoint with a reverse proxy that limits the number and rate of channel-join frames per connection, or disable transports that are not needed (for example remove longpoll: true from the socket declaration where the LongPoll transport is not required). Lowering the BEAM +P maximum process limit does not prevent the exhaustion and can make it easier to trigger."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-56811",
"datePublished": "2026-07-07T15:09:57.581Z",
"dateReserved": "2026-06-23T12:29:02.507Z",
"dateUpdated": "2026-11-20T06:02:03.163Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-32689 (GCVE-0-2026-32689)
Vulnerability from cvelistv5 – Published: 2026-05-05 15:17 – Updated: 2026-11-20 05:55
VLAI
EPSS
VEX
Title
Long-poll NDJSON body splitting causes unbounded memory allocation in Phoenix
Summary
Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix allows a denial of service via the long-poll transport's NDJSON body handling.
In Phoenix.Transports.LongPoll.publish/4, when a POST request is received with Content-Type: application/x-ndjson, the request body is split on newline characters using String.split/2 with no limit on the number of resulting segments. An attacker can send a body consisting entirely of newline bytes, causing a 1:1 amplification into a list of empty binaries — a 1 MB body produces approximately one million list elements, an 8 MB body approximately 8.4 million. Each element is then walked by Enum.map, materializing another list of the same size. This exhausts BEAM memory and schedulers, crashing the node and terminating all active sessions.
A session token required to reach the vulnerable endpoint is freely obtainable by any client via an unauthenticated GET request to the same URL with a matching Origin header, making this attack effectively unauthenticated.
This issue affects phoenix: from 1.7.0 before 1.7.22 and from 1.8.0-rc.0 before 1.8.6.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-05-05 18:37 UTC
CWE
- CWE-770 - Allocation of Resources Without Limits or Throttling
Assigner
References
6 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix |
Affected:
1.7.0 , < 1.7.22
(semver)
Affected: 1.8.0-rc.0 , < 1.8.6 (semver) cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
|
| phoenixframework | phoenix |
Affected:
2674c6ea30634667f9b09966b90269393b445953 , < *
(git)
cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
Date Public
2026-05-05 15:17
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-32689",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-05-05T18:37:12.444769Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-05-06T15:25:17.607Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Transports.LongPoll\u0027"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/transports/long_poll.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Transports.LongPoll\u0027:publish/4"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.7.22",
"status": "affected",
"version": "1.7.0",
"versionType": "semver"
},
{
"lessThan": "1.8.6",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Transports.LongPoll\u0027"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/transports/long_poll.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Transports.LongPoll\u0027:publish/4"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "1a67c61ff9ce0a7711662ac7354861917a7c80f7",
"status": "unaffected"
},
{
"at": "912ea181fd247c21dbcc49fb97d0053b947d81bf",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "2674c6ea30634667f9b09966b90269393b445953",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eA \u003ccode\u003ePhoenix.Socket\u003c/code\u003e must be configured with the \u003ccode\u003elongpoll\u003c/code\u003e option enabled. Phoenix LiveView applications enable the longpoll transport by default via the \u003ccode\u003e/live\u003c/code\u003e socket.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "A `Phoenix.Socket` must be configured with the `longpoll` option enabled. Phoenix LiveView applications enable the longpoll transport by default via the `/live` socket."
}
],
"value": "A Phoenix.Socket must be configured with the longpoll option enabled. Phoenix LiveView applications enable the longpoll transport by default via the /live socket."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.7.22",
"versionStartIncluding": "1.7.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.8.6",
"versionStartIncluding": "1.8.0-rc.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Peter Ullrich"
}
],
"datePublic": "2026-05-05T15:17:30.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAllocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix allows a denial of service via the long-poll transport\u0027s NDJSON body handling.\u003c/p\u003e\n\u003cp\u003eIn \u003ccode\u003ePhoenix.Transports.LongPoll.publish/4\u003c/code\u003e, when a POST request is received with \u003ccode\u003eContent-Type: application/x-ndjson\u003c/code\u003e, the request body is split on newline characters using \u003ccode\u003eString.split/2\u003c/code\u003e with no limit on the number of resulting segments. An attacker can send a body consisting entirely of newline bytes, causing a 1:1 amplification into a list of empty binaries \u2014 a 1 MB body produces approximately one million list elements, an 8 MB body approximately 8.4 million. Each element is then walked by \u003ccode\u003eEnum.map\u003c/code\u003e, materializing another list of the same size. This exhausts BEAM memory and schedulers, crashing the node and terminating all active sessions.\u003c/p\u003e\n\u003cp\u003eA session token required to reach the vulnerable endpoint is freely obtainable by any client via an unauthenticated GET request to the same URL with a matching \u003ccode\u003eOrigin\u003c/code\u003e header, making this attack effectively unauthenticated.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix: from 1.7.0 before 1.7.22 and from 1.8.0-rc.0 before 1.8.6.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix allows a denial of service via the long-poll transport\u0027s NDJSON body handling.\n\nIn `Phoenix.Transports.LongPoll.publish/4`, when a POST request is received with `Content-Type: application/x-ndjson`, the request body is split on newline characters using `String.split/2` with no limit on the number of resulting segments. An attacker can send a body consisting entirely of newline bytes, causing a 1:1 amplification into a list of empty binaries \u2014 a 1 MB body produces approximately one million list elements, an 8 MB body approximately 8.4 million. Each element is then walked by `Enum.map`, materializing another list of the same size. This exhausts BEAM memory and schedulers, crashing the node and terminating all active sessions.\n\nA session token required to reach the vulnerable endpoint is freely obtainable by any client via an unauthenticated GET request to the same URL with a matching `Origin` header, making this attack effectively unauthenticated.\n\nThis issue affects phoenix: from 1.7.0 before 1.7.22 and from 1.8.0-rc.0 before 1.8.6."
}
],
"value": "Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix allows a denial of service via the long-poll transport\u0027s NDJSON body handling.\n\nIn Phoenix.Transports.LongPoll.publish/4, when a POST request is received with Content-Type: application/x-ndjson, the request body is split on newline characters using String.split/2 with no limit on the number of resulting segments. An attacker can send a body consisting entirely of newline bytes, causing a 1:1 amplification into a list of empty binaries \u2014 a 1 MB body produces approximately one million list elements, an 8 MB body approximately 8.4 million. Each element is then walked by Enum.map, materializing another list of the same size. This exhausts BEAM memory and schedulers, crashing the node and terminating all active sessions.\n\nA session token required to reach the vulnerable endpoint is freely obtainable by any client via an unauthenticated GET request to the same URL with a matching Origin header, making this attack effectively unauthenticated.\n\nThis issue affects phoenix: from 1.7.0 before 1.7.22 and from 1.8.0-rc.0 before 1.8.6."
}
],
"impacts": [
{
"capecId": "CAPEC-130",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-130 Excessive Allocation"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 8.7,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-770",
"description": "CWE-770 Allocation of Resources Without Limits or Throttling",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T05:55:09.084Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Long-poll NDJSON body splitting causes large memory allocation in Phoenix",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-628h-q48j-jr6q"
},
{
"name": "EEF CNA record for CVE-2026-32689",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-32689.html"
},
{
"name": "OSV record EEF-CVE-2026-32689",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-32689"
},
{
"name": "Introducing commit 2674c6e in phoenixframework/phoenix",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix/commit/2674c6ea30634667f9b09966b90269393b445953"
},
{
"name": "Fix commit 1a67c61 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/1a67c61ff9ce0a7711662ac7354861917a7c80f7"
},
{
"name": "Fix commit 912ea18 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/912ea181fd247c21dbcc49fb97d0053b947d81bf"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Long-poll NDJSON body splitting causes unbounded memory allocation in Phoenix",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eDisable the longpoll transport on all \u003ccode\u003ePhoenix.Socket\u003c/code\u003e declarations, including the LiveView \u003ccode\u003e/live\u003c/code\u003e socket, by removing or setting \u003ccode\u003elongpoll: false\u003c/code\u003e. Note that this prevents clients that cannot use WebSockets from connecting.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Disable the longpoll transport on all `Phoenix.Socket` declarations, including the LiveView `/live` socket, by removing or setting `longpoll: false`. Note that this prevents clients that cannot use WebSockets from connecting."
}
],
"value": "Disable the longpoll transport on all Phoenix.Socket declarations, including the LiveView /live socket, by removing or setting longpoll: false. Note that this prevents clients that cannot use WebSockets from connecting."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-32689",
"datePublished": "2026-05-05T15:17:30.664Z",
"dateReserved": "2026-03-13T09:12:14.475Z",
"dateUpdated": "2026-11-20T05:55:09.084Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2021-46871 (GCVE-0-2021-46871)
Vulnerability from cvelistv5 – Published: 2023-01-10 00:00 – Updated: 2025-04-09 17:21
VLAI
EPSS
VEX
Summary
tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes.
Severity
6.1 (Medium)
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2025-04-09 17:20 UTC
CWE
- n/a
- CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Assigner
References
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-04T05:17:42.955Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://github.com/advisories/GHSA-j3gg-r6gp-95q2"
},
{
"tags": [
"x_transferred"
],
"url": "https://github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
}
},
{
"other": {
"content": {
"id": "CVE-2021-46871",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-04-09T17:20:34.911859Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-79",
"description": "CWE-79 Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2025-04-09T17:21:41.118Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "n/a",
"vendor": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes."
}
],
"problemTypes": [
{
"descriptions": [
{
"description": "n/a",
"lang": "en",
"type": "text"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2023-01-10T00:00:00.000Z",
"orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
"shortName": "mitre"
},
"references": [
{
"url": "https://github.com/advisories/GHSA-j3gg-r6gp-95q2"
},
{
"url": "https://github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620"
}
]
}
},
"cveMetadata": {
"assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
"assignerShortName": "mitre",
"cveId": "CVE-2021-46871",
"datePublished": "2023-01-10T00:00:00.000Z",
"dateReserved": "2023-01-10T00:00:00.000Z",
"dateUpdated": "2025-04-09T17:21:41.118Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
CVE-2022-42975 (GCVE-0-2022-42975)
Vulnerability from cvelistv5 – Published: 2022-10-17 00:00 – Updated: 2025-05-10 03:06
VLAI
EPSS
VEX
Summary
socket/transport.ex in Phoenix before 1.6.14 mishandles check_origin wildcarding. NOTE: LiveView applications are unaffected by default because of the presence of a LiveView CSRF token.
Severity
7.5 (High)
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2025-05-10 03:03 UTC
CWE
- n/a
- CWE-863 - Incorrect Authorization
Assigner
References
1 reference
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-03T13:19:05.555Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://github.com/phoenixframework/phoenix/commit/6e7185b33a59e0b1d1c0b4223adf340a73e963ae"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"version": "3.1"
}
},
{
"other": {
"content": {
"id": "CVE-2022-42975",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-05-10T03:03:26.090952Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-863",
"description": "CWE-863 Incorrect Authorization",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2025-05-10T03:06:11.566Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "n/a",
"vendor": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "socket/transport.ex in Phoenix before 1.6.14 mishandles check_origin wildcarding. NOTE: LiveView applications are unaffected by default because of the presence of a LiveView CSRF token."
}
],
"problemTypes": [
{
"descriptions": [
{
"description": "n/a",
"lang": "en",
"type": "text"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2022-10-17T00:00:00.000Z",
"orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
"shortName": "mitre"
},
"references": [
{
"url": "https://github.com/phoenixframework/phoenix/commit/6e7185b33a59e0b1d1c0b4223adf340a73e963ae"
}
]
}
},
"cveMetadata": {
"assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
"assignerShortName": "mitre",
"cveId": "CVE-2022-42975",
"datePublished": "2022-10-17T00:00:00.000Z",
"dateReserved": "2022-10-17T00:00:00.000Z",
"dateUpdated": "2025-05-10T03:06:11.566Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
CVE-2017-1000163 (GCVE-0-2017-1000163)
Vulnerability from cvelistv5 – Published: 2017-11-17 21:00 – Updated: 2024-09-17 03:59
VLAI
EPSS
VEX
Summary
The Phoenix Framework versions 1.0.0 through 1.0.4, 1.1.0 through 1.1.6, 1.2.0, 1.2.2 and 1.3.0-rc.0 are vulnerable to unvalidated URL redirection, which may result in phishing or social engineering attacks.
Severity
No CVSS data available.
CWE
- n/a
Assigner
References
1 reference
| URL | Tags |
|---|---|
| https://elixirforum.com/t/security-releases-for-p… | x_refsource_CONFIRM |
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-05T21:53:07.095Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
],
"url": "https://elixirforum.com/t/security-releases-for-phoenix/4143"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"product": "n/a",
"vendor": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"dateAssigned": "2017-08-22T00:00:00.000Z",
"descriptions": [
{
"lang": "en",
"value": "The Phoenix Framework versions 1.0.0 through 1.0.4, 1.1.0 through 1.1.6, 1.2.0, 1.2.2 and 1.3.0-rc.0 are vulnerable to unvalidated URL redirection, which may result in phishing or social engineering attacks."
}
],
"problemTypes": [
{
"descriptions": [
{
"description": "n/a",
"lang": "en",
"type": "text"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2017-11-17T21:00:00.000Z",
"orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
"shortName": "mitre"
},
"references": [
{
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://elixirforum.com/t/security-releases-for-phoenix/4143"
}
],
"x_legacyV4Record": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"DATE_ASSIGNED": "2017-08-22T17:29:33.374827",
"ID": "CVE-2017-1000163",
"REQUESTER": "griffin.byatt@nccgroup.trust",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "n/a",
"version": {
"version_data": [
{
"version_value": "n/a"
}
]
}
}
]
},
"vendor_name": "n/a"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "The Phoenix Framework versions 1.0.0 through 1.0.4, 1.1.0 through 1.1.6, 1.2.0, 1.2.2 and 1.3.0-rc.0 are vulnerable to unvalidated URL redirection, which may result in phishing or social engineering attacks."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "n/a"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://elixirforum.com/t/security-releases-for-phoenix/4143",
"refsource": "CONFIRM",
"url": "https://elixirforum.com/t/security-releases-for-phoenix/4143"
}
]
}
}
}
},
"cveMetadata": {
"assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
"assignerShortName": "mitre",
"cveId": "CVE-2017-1000163",
"datePublished": "2017-11-17T21:00:00.000Z",
"dateReserved": "2017-11-17T00:00:00.000Z",
"dateUpdated": "2024-09-17T03:59:53.617Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
FKIE_CVE-2026-56811
Vulnerability from fkie_nvd - Published: 2026-07-07 16:16 - Updated: 2026-11-20 06:17
Severity
Summary
Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix (Phoenix.Socket module) allows an unauthenticated attacker to cause a denial of service against any endpoint that mounts a Phoenix socket with a reachable channel transport (WebSocket or LongPoll).
This vulnerability is associated with program files lib/phoenix/socket.ex and program routine 'Elixir.Phoenix.Socket':handle_in/4.
Phoenix transports do not limit the number of channels that a single transport process may join. Every phx_join message a client sends over one connection starts a persistent channel process, and the socket process accepts an unbounded number of them. A single unauthenticated client can therefore open one WebSocket or LongPoll connection and stream a large number of phx_join messages, spawning hundreds of thousands of channel processes over that one connection and eventually reaching the BEAM maximum process limit. Once the process table is exhausted the virtual machine can no longer start new processes, denying service to legitimate traffic across the whole node. Because the amplification happens inside a single connection, network-layer connection caps and rate limiting do not mitigate it.
The fix adds a :max_channels_per_transport option (default 100) that bounds the number of channels a single transport process can join, forcing abusive clients to open many connections instead, where external load balancers and reverse proxies can throttle them.
This issue affects phoenix: from 0.11.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.
References
Impacted products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix | * | |
| phoenixframework | phoenix | * | |
| phoenixframework | phoenix | * | |
| phoenixframework | phoenix | * |
{
"affected": [
{
"affectedData": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Socket\u0027"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/socket.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Socket\u0027:handle_in/4"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.15",
"status": "affected",
"version": "0.11.0",
"versionType": "semver"
},
{
"lessThan": "1.6.17",
"status": "affected",
"version": "1.6.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.7.24",
"status": "affected",
"version": "1.7.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.8.9",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Socket\u0027"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/socket.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Socket\u0027:handle_in/4"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "16e295d2fccab185d1292322e2bee5d46c725c8a",
"status": "unaffected"
},
{
"at": "a612100cd8a4279091abc1a2ef8fb98a6d01c0a1",
"status": "unaffected"
},
{
"at": "c498ba8cf49f6accbbd0c643a5340b58db891218",
"status": "unaffected"
},
{
"at": "d19ca0a8d9f82c130b7ed339b9f033433e2dea5e",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "14a297e88023cb280a577962a49a0bbdeef9f4eb",
"versionType": "git"
}
]
}
],
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
}
],
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"matchCriteriaId": "3CF8EA55-C063-4742-87ED-53E1998977B5",
"versionEndExcluding": "1.5.15",
"versionStartIncluding": "1.2.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"matchCriteriaId": "809E49A8-D727-4E05-BBF9-F9E34077E4A4",
"versionEndExcluding": "1.6.17",
"versionStartIncluding": "1.6.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"matchCriteriaId": "3257C901-8FC3-4107-95C6-C57F909FFE40",
"versionEndExcluding": "1.7.24",
"versionStartIncluding": "1.7.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"matchCriteriaId": "8F98C1AC-1593-43EB-929A-4D3B7597C9BC",
"versionEndExcluding": "1.8.9",
"versionStartIncluding": "1.8.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix (Phoenix.Socket module) allows an unauthenticated attacker to cause a denial of service against any endpoint that mounts a Phoenix socket with a reachable channel transport (WebSocket or LongPoll).\n\nThis vulnerability is associated with program files lib/phoenix/socket.ex and program routine \u0027Elixir.Phoenix.Socket\u0027:handle_in/4.\n\nPhoenix transports do not limit the number of channels that a single transport process may join. Every phx_join message a client sends over one connection starts a persistent channel process, and the socket process accepts an unbounded number of them. A single unauthenticated client can therefore open one WebSocket or LongPoll connection and stream a large number of phx_join messages, spawning hundreds of thousands of channel processes over that one connection and eventually reaching the BEAM maximum process limit. Once the process table is exhausted the virtual machine can no longer start new processes, denying service to legitimate traffic across the whole node. Because the amplification happens inside a single connection, network-layer connection caps and rate limiting do not mitigate it.\n\nThe fix adds a :max_channels_per_transport option (default 100) that bounds the number of channels a single transport process can join, forcing abusive clients to open many connections instead, where external load balancers and reverse proxies can throttle them.\n\nThis issue affects phoenix: from 0.11.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."
},
{
"lang": "es",
"value": "La vulnerabilidad de asignaci\u00f3n de recursos sin l\u00edmites ni estrangulamiento en phoenixframework phoenix (m\u00f3dulo Phoenix.Socket) permite a un atacante no autenticado causar una denegaci\u00f3n de servicio contra cualquier punto final que monte un socket Phoenix con un transporte de canal accesible (WebSocket o LongPoll).\n\nEsta vulnerabilidad est\u00e1 asociada con los archivos de programa lib/phoenix/socket.ex y la rutina de programa \u2019Elixir.Phoenix.Socket\u2019:handle_in/4.\n\nLos transportes de Phoenix no limitan el n\u00famero de canales a los que puede unirse un \u00fanico proceso de transporte. Cada mensaje phx_join que un cliente env\u00eda a trav\u00e9s de una conexi\u00f3n inicia un proceso de canal persistente, y el proceso de socket acepta un n\u00famero ilimitado de ellos. Por lo tanto, un \u00fanico cliente no autenticado puede abrir una conexi\u00f3n WebSocket o LongPoll y transmitir un gran n\u00famero de mensajes phx_join, generando cientos de miles de procesos de canal a trav\u00e9s de esa \u00fanica conexi\u00f3n y finalmente alcanzando el l\u00edmite m\u00e1ximo de procesos de BEAM. Una vez que la tabla de procesos se agota, la m\u00e1quina virtual ya no puede iniciar nuevos procesos, denegando el servicio al tr\u00e1fico leg\u00edtimo en todo el nodo. Debido a que la amplificaci\u00f3n ocurre dentro de una \u00fanica conexi\u00f3n, los l\u00edmites de conexi\u00f3n de la capa de red y la limitaci\u00f3n de velocidad no lo mitigan.\n\nLa soluci\u00f3n a\u00f1ade una opci\u00f3n :max_channels_per_transport (por defecto 100) que limita el n\u00famero de canales a los que puede unirse un \u00fanico proceso de transporte, obligando a los clientes abusivos a abrir muchas conexiones en su lugar, donde los balanceadores de carga externos y los proxies inversos pueden estrangularlos.\n\nEste problema afecta a phoenix: desde 0.11.0 antes de 1.5.15, desde 1.6.0-rc.0 antes de 1.6.17, desde 1.7.0-rc.0 antes de 1.7.24, y desde 1.8.0-rc.0 antes de 1.8.9."
}
],
"id": "CVE-2026-56811",
"lastModified": "2026-11-20T06:17:32.653",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
},
"exploitabilityScore": 3.9,
"impactScore": 3.6,
"source": "nvd@nist.gov",
"type": "Primary"
}
],
"cvssMetricV40": [
{
"cvssData": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"availabilityRequirement": "NOT_DEFINED",
"baseScore": 8.7,
"baseSeverity": "HIGH",
"confidentialityRequirement": "NOT_DEFINED",
"exploitMaturity": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary"
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2026-56811",
"options": [
{
"exploitation": "none"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-07-07T16:12:27.662417Z",
"version": "2.0.3"
}
}
]
},
"published": "2026-07-07T16:16:40.710",
"references": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"tags": [
"Mitigation",
"Patch",
"Third Party Advisory"
],
"url": "https://cna.erlef.org/cves/CVE-2026-56811.html"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/phoenixframework/phoenix/commit/14a297e88023cb280a577962a49a0bbdeef9f4eb"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"tags": [
"Patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/16e295d2fccab185d1292322e2bee5d46c725c8a"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"tags": [
"Patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/a612100cd8a4279091abc1a2ef8fb98a6d01c0a1"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"tags": [
"Patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/c498ba8cf49f6accbbd0c643a5340b58db891218"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"tags": [
"Patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/d19ca0a8d9f82c130b7ed339b9f033433e2dea5e"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"tags": [
"Patch",
"Vendor Advisory"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-6983-jfq8-485w"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"tags": [
"Mitigation",
"Third Party Advisory"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-56811"
}
],
"sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"vulnStatus": "Modified",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-770"
}
],
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary"
}
]
}
FKIE_CVE-2026-56812
Vulnerability from fkie_nvd - Published: 2026-07-07 16:16 - Updated: 2026-10-25 20:10
Severity
Summary
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.
References
Impacted products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix | * | |
| phoenixframework | phoenix | * | |
| phoenixframework | phoenix | * | |
| phoenixframework | phoenix | * |
{
"affected": [
{
"affectedData": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"Presence"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"assets/js/phoenix/presence.js"
],
"programRoutines": [
{
"name": "Presence.syncState"
},
{
"name": "Presence.syncDiff"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.15",
"status": "affected",
"version": "1.2.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.6.17",
"status": "affected",
"version": "1.6.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.7.24",
"status": "affected",
"version": "1.7.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.8.9",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://registry.npmjs.org",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"Presence"
],
"packageName": "phoenix",
"packageURL": "pkg:npm/phoenix",
"product": "phoenix",
"programFiles": [
"assets/js/phoenix/presence.js"
],
"programRoutines": [
{
"name": "Presence.syncState"
},
{
"name": "Presence.syncDiff"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.15",
"status": "affected",
"version": "1.2.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.6.17",
"status": "affected",
"version": "1.6.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.7.24",
"status": "affected",
"version": "1.7.0-rc.0",
"versionType": "semver"
},
{
"lessThan": "1.8.9",
"status": "affected",
"version": "1.8.0-rc.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"Presence"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"assets/js/phoenix/presence.js"
],
"programRoutines": [
{
"name": "Presence.syncState"
},
{
"name": "Presence.syncDiff"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "7f7b971c1ea0994e3fbd1c11ddb05e780bd38ad8",
"status": "unaffected"
},
{
"at": "89a1c4be161e436241e12b2378a719904b9bd96f",
"status": "unaffected"
},
{
"at": "b90b22521465ece00eb5a19d5aa2b9465b209c85",
"status": "unaffected"
},
{
"at": "beffc4da1e787e572121f68902c63daf4fe7d9c2",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "2270aaf21bd02c6a6a1022820564efb605a97655",
"versionType": "git"
}
]
}
],
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
}
],
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"matchCriteriaId": "3CF8EA55-C063-4742-87ED-53E1998977B5",
"versionEndExcluding": "1.5.15",
"versionStartIncluding": "1.2.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"matchCriteriaId": "809E49A8-D727-4E05-BBF9-F9E34077E4A4",
"versionEndExcluding": "1.6.17",
"versionStartIncluding": "1.6.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"matchCriteriaId": "3257C901-8FC3-4107-95C6-C57F909FFE40",
"versionEndExcluding": "1.7.24",
"versionStartIncluding": "1.7.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"matchCriteriaId": "8F98C1AC-1593-43EB-929A-4D3B7597C9BC",
"versionEndExcluding": "1.8.9",
"versionStartIncluding": "1.8.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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\u0027s 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."
},
{
"lang": "es",
"value": "La vulnerabilidad \u2019Comprobaci\u00f3n Incorrecta de Condiciones Inusuales o Excepcionales\u2019 en phoenixframework phoenix (cliente JavaScript de Presencia) permite a un atacante con acceso ordinario al canal causar una denegaci\u00f3n de servicio persistente del lado del cliente contra cada espectador de un tema de canal de presencia.\n\nEsta vulnerabilidad est\u00e1 asociada con los archivos de programa assets/js/phoenix/presence.js y las rutinas de programa Presence.syncState y Presence.syncDiff.\n\nEl cliente de presencia JavaScript de Phoenix comprueba si una presencia ya existe con una simple prueba de veracidad (state[key]) en lugar de una comprobaci\u00f3n de propiedad propia. Las claves de presencia pueden ser controladas por el atacante, porque las aplicaciones rastrean las presencias bajo un nombre de usuario o ID suministrado por el cliente. Un usuario que se une a un canal eligiendo una clave que es un nombre de miembro de Object.prototype (__proto__, constructor, toString, hasOwnProperty, y similares) hace que esa b\u00fasqueda devuelva el Object.prototype incorporado de JavaScript en lugar de undefined. Debido a que el prototipo es verdadero, el c\u00f3digo lo trata como una presencia existente y lee .metas.map(...) de \u00e9l, lo que lanza un TypeError no capturado.\n\nLa excepci\u00f3n se propaga fuera del gestor de mensajes de presencia, por lo que el estado local nunca se actualiza y onSync() nunca se dispara. Debido a que la clave maliciosa es rastreada en el servidor, se vuelve a enviar en cada actualizaci\u00f3n de presencia y sigue lanzando errores, por lo que la sincronizaci\u00f3n de presencia permanece rota para cada espectador de ese tema de canal hasta que el atacante se va. Tanto syncState como syncDiff utilizan el mismo patr\u00f3n inseguro de comprobaci\u00f3n de existencia. El impacto se limita al tema afectado y es una confusi\u00f3n en tiempo de lectura del objeto prototipo, no una mutaci\u00f3n de Object.prototype (no es contaminaci\u00f3n de prototipos).\n\nEste problema afecta a phoenix: desde 1.2.0-rc.0 antes de 1.5.15, desde 1.6.0-rc.0 antes de 1.6.17, desde 1.7.0-rc.0 antes de 1.7.24, y desde 1.8.0-rc.0 antes de 1.8.9."
}
],
"id": "CVE-2026-56812",
"lastModified": "2026-10-25T20:10:00.147",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
},
"exploitabilityScore": 3.9,
"impactScore": 3.6,
"source": "nvd@nist.gov",
"type": "Primary"
}
],
"cvssMetricV40": [
{
"cvssData": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"availabilityRequirement": "NOT_DEFINED",
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"confidentialityRequirement": "NOT_DEFINED",
"exploitMaturity": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary"
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2026-56812",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-07-07T16:11:03.353715Z",
"version": "2.0.3"
}
}
]
},
"published": "2026-07-07T16:16:40.920",
"references": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"tags": [
"Mitigation",
"Patch",
"Third Party Advisory"
],
"url": "https://cna.erlef.org/cves/CVE-2026-56812.html"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/phoenixframework/phoenix/commit/2270aaf21bd02c6a6a1022820564efb605a97655"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"tags": [
"Patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/7f7b971c1ea0994e3fbd1c11ddb05e780bd38ad8"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"tags": [
"Patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/89a1c4be161e436241e12b2378a719904b9bd96f"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"tags": [
"Patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/b90b22521465ece00eb5a19d5aa2b9465b209c85"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"tags": [
"Patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/beffc4da1e787e572121f68902c63daf4fe7d9c2"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"tags": [
"Exploit",
"Patch",
"Vendor Advisory"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-63mc-hw7g-86rr"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"tags": [
"Mitigation",
"Third Party Advisory"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-56812"
},
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"tags": [
"Exploit",
"Patch",
"Vendor Advisory"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-63mc-hw7g-86rr"
}
],
"sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"vulnStatus": "Modified",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-754"
}
],
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary"
}
]
}
FKIE_CVE-2022-42975
Vulnerability from fkie_nvd - Published: 2022-10-17 06:15 - Updated: 2026-06-17 05:05
Severity
7.5 (High) - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
7.5 (High) - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
7.5 (High) - CVSS:3.1/
Summary
socket/transport.ex in Phoenix before 1.6.14 mishandles check_origin wildcarding. NOTE: LiveView applications are unaffected by default because of the presence of a LiveView CSRF token.
References
| URL | Tags | ||
|---|---|---|---|
| cve@mitre.org | https://github.com/phoenixframework/phoenix/commit/6e7185b33a59e0b1d1c0b4223adf340a73e963ae | Patch, Third Party Advisory | |
| af854a3a-2127-422b-91ae-364da2661108 | https://github.com/phoenixframework/phoenix/commit/6e7185b33a59e0b1d1c0b4223adf340a73e963ae | Patch, Third Party Advisory |
Impacted products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix | * |
{
"affected": [
{
"affectedData": [
{
"product": "n/a",
"vendor": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"source": "cve@mitre.org"
}
],
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"matchCriteriaId": "3B4737AB-52F2-471C-AA48-07DD6BD27A0D",
"versionEndExcluding": "1.6.14",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "socket/transport.ex in Phoenix before 1.6.14 mishandles check_origin wildcarding. NOTE: LiveView applications are unaffected by default because of the presence of a LiveView CSRF token."
},
{
"lang": "es",
"value": "El archivo socket/transport.ex en Phoenix versiones anteriores a 1.6.14, maneja inapropiadamente el comod\u00edn check_origin. NOTA: Las aplicaciones LiveView no est\u00e1n afectadas por defecto debido a la presencia de un token LiveView CSRF"
}
],
"id": "CVE-2022-42975",
"lastModified": "2026-06-17T05:05:42.213",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"version": "3.1"
},
"exploitabilityScore": 3.9,
"impactScore": 3.6,
"source": "nvd@nist.gov",
"type": "Primary"
},
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"version": "3.1"
},
"exploitabilityScore": 3.9,
"impactScore": 3.6,
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"type": "Secondary"
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2022-42975",
"options": [
{
"exploitation": "none"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-05-10T03:03:26.090952Z",
"version": "2.0.3"
}
}
]
},
"published": "2022-10-17T06:15:08.740",
"references": [
{
"source": "cve@mitre.org",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/phoenixframework/phoenix/commit/6e7185b33a59e0b1d1c0b4223adf340a73e963ae"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/phoenixframework/phoenix/commit/6e7185b33a59e0b1d1c0b4223adf340a73e963ae"
}
],
"sourceIdentifier": "cve@mitre.org",
"vulnStatus": "Modified",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "NVD-CWE-Other"
}
],
"source": "nvd@nist.gov",
"type": "Primary"
},
{
"description": [
{
"lang": "en",
"value": "CWE-863"
}
],
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"type": "Secondary"
}
]
}
FKIE_CVE-2021-46871
Vulnerability from fkie_nvd - Published: 2023-01-10 06:15 - Updated: 2026-06-17 04:15
Severity
6.1 (Medium) - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
6.1 (Medium) - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
6.1 (Medium) - CVSS:3.1/
Summary
tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes.
References
| URL | Tags | ||
|---|---|---|---|
| cve@mitre.org | https://github.com/advisories/GHSA-j3gg-r6gp-95q2 | Patch, Third Party Advisory | |
| cve@mitre.org | https://github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620 | Patch, Third Party Advisory | |
| af854a3a-2127-422b-91ae-364da2661108 | https://github.com/advisories/GHSA-j3gg-r6gp-95q2 | Patch, Third Party Advisory | |
| af854a3a-2127-422b-91ae-364da2661108 | https://github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620 | Patch, Third Party Advisory |
Impacted products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix_html | * |
{
"affected": [
{
"affectedData": [
{
"product": "n/a",
"vendor": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"source": "cve@mitre.org"
}
],
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:*",
"matchCriteriaId": "032E0B62-E510-41E6-A4CD-24B02FC93472",
"versionEndExcluding": "3.0.4",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes."
},
{
"lang": "es",
"value": "tag.ex en Phoenix Phoenix.HTML (tambi\u00e9n conocido como phoenix_html) anterior a 3.0.4 permite XSS en atributos de clase HEEx."
}
],
"id": "CVE-2021-46871",
"lastModified": "2026-06-17T04:15:41.650",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
},
"exploitabilityScore": 2.8,
"impactScore": 2.7,
"source": "nvd@nist.gov",
"type": "Primary"
},
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
},
"exploitabilityScore": 2.8,
"impactScore": 2.7,
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"type": "Secondary"
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2021-46871",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-04-09T17:20:34.911859Z",
"version": "2.0.3"
}
}
]
},
"published": "2023-01-10T06:15:09.870",
"references": [
{
"source": "cve@mitre.org",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/advisories/GHSA-j3gg-r6gp-95q2"
},
{
"source": "cve@mitre.org",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/advisories/GHSA-j3gg-r6gp-95q2"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620"
}
],
"sourceIdentifier": "cve@mitre.org",
"vulnStatus": "Modified",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-79"
}
],
"source": "nvd@nist.gov",
"type": "Primary"
},
{
"description": [
{
"lang": "en",
"value": "CWE-79"
}
],
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"type": "Secondary"
}
]
}
FKIE_CVE-2017-1000163
Vulnerability from fkie_nvd - Published: 2017-11-17 21:29 - Updated: 2026-06-17 00:58
Severity
Summary
The Phoenix Framework versions 1.0.0 through 1.0.4, 1.1.0 through 1.1.6, 1.2.0, 1.2.2 and 1.3.0-rc.0 are vulnerable to unvalidated URL redirection, which may result in phishing or social engineering attacks.
References
| URL | Tags | ||
|---|---|---|---|
| cve@mitre.org | https://elixirforum.com/t/security-releases-for-phoenix/4143 | Mitigation, Third Party Advisory | |
| af854a3a-2127-422b-91ae-364da2661108 | https://elixirforum.com/t/security-releases-for-phoenix/4143 | Mitigation, Third Party Advisory |
Impacted products
| Vendor | Product | Version | |
|---|---|---|---|
| phoenixframework | phoenix | 1.0.0 | |
| phoenixframework | phoenix | 1.0.1 | |
| phoenixframework | phoenix | 1.0.2 | |
| phoenixframework | phoenix | 1.0.3 | |
| phoenixframework | phoenix | 1.0.4 | |
| phoenixframework | phoenix | 1.1.0 | |
| phoenixframework | phoenix | 1.1.1 | |
| phoenixframework | phoenix | 1.1.2 | |
| phoenixframework | phoenix | 1.1.3 | |
| phoenixframework | phoenix | 1.1.4 | |
| phoenixframework | phoenix | 1.1.5 | |
| phoenixframework | phoenix | 1.1.6 | |
| phoenixframework | phoenix | 1.2.0 | |
| phoenixframework | phoenix | 1.2.2 | |
| phoenixframework | phoenix | 1.3.0-rc.0 |
{
"affected": [
{
"affectedData": [
{
"product": "n/a",
"vendor": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"source": "cve@mitre.org"
}
],
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.0.0:*:*:*:*:*:*:*",
"matchCriteriaId": "4672C6D3-0746-4835-A3A1-15997F2089BF",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.0.1:*:*:*:*:*:*:*",
"matchCriteriaId": "F6762474-3D59-4852-A446-5A58422B25C6",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.0.2:*:*:*:*:*:*:*",
"matchCriteriaId": "587B60D6-46F5-4207-9497-BD5F5832793A",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.0.3:*:*:*:*:*:*:*",
"matchCriteriaId": "1F8D04D5-395B-4DBD-9F40-3695E3F686A6",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.0.4:*:*:*:*:*:*:*",
"matchCriteriaId": "2AFAB065-FBA9-4F4E-AC14-43BD5BDFF913",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.1.0:*:*:*:*:*:*:*",
"matchCriteriaId": "3D831398-6BA5-48FD-917C-C4CE1326FEFF",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.1.1:*:*:*:*:*:*:*",
"matchCriteriaId": "25556CB0-C34C-40E4-B145-206D4F2C531A",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.1.2:*:*:*:*:*:*:*",
"matchCriteriaId": "5A86738F-D932-408E-A7F8-EBCAB17826C7",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.1.3:*:*:*:*:*:*:*",
"matchCriteriaId": "FAD417AB-F92D-49E6-8ACA-B3AF39BD9189",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.1.4:*:*:*:*:*:*:*",
"matchCriteriaId": "7AC84FA4-C91E-42BC-91BA-242285BDDF6B",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.1.5:*:*:*:*:*:*:*",
"matchCriteriaId": "70A7714C-EB75-431C-BC11-419D881F2EEC",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.1.6:*:*:*:*:*:*:*",
"matchCriteriaId": "92FEAA80-9311-48E3-8DC5-C97521CA64F1",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.2.0:*:*:*:*:*:*:*",
"matchCriteriaId": "5AA612EA-4120-4F0C-997C-BB94BB14C110",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.2.2:*:*:*:*:*:*:*",
"matchCriteriaId": "C0EE2D32-1627-4ACB-8E4B-EB01BD378AAA",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:1.3.0-rc.0:*:*:*:*:*:*:*",
"matchCriteriaId": "B4E56E38-3DEC-4398-A403-DD7C205B4768",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "The Phoenix Framework versions 1.0.0 through 1.0.4, 1.1.0 through 1.1.6, 1.2.0, 1.2.2 and 1.3.0-rc.0 are vulnerable to unvalidated URL redirection, which may result in phishing or social engineering attacks."
},
{
"lang": "es",
"value": "El framework Phoenix, en sus versiones 1.0.0 hasta la 1.0.4, versiones 1.1.0 hasta la 1.1.6, versiones 1.2.0, 1.2.2 y 1.3.0-rc.0, es vulnerable a una redirecci\u00f3n de URL no validada, lo que puede resultar en ataques de phishing o de ingenier\u00eda social."
}
],
"id": "CVE-2017-1000163",
"lastModified": "2026-06-17T00:58:51.037",
"metrics": {
"cvssMetricV2": [
{
"acInsufInfo": false,
"baseSeverity": "MEDIUM",
"cvssData": {
"accessComplexity": "MEDIUM",
"accessVector": "NETWORK",
"authentication": "NONE",
"availabilityImpact": "NONE",
"baseScore": 5.8,
"confidentialityImpact": "PARTIAL",
"integrityImpact": "PARTIAL",
"vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:N",
"version": "2.0"
},
"exploitabilityScore": 8.6,
"impactScore": 4.9,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"source": "nvd@nist.gov",
"type": "Primary",
"userInteractionRequired": true
}
],
"cvssMetricV30": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.0"
},
"exploitabilityScore": 2.8,
"impactScore": 2.7,
"source": "nvd@nist.gov",
"type": "Primary"
}
]
},
"published": "2017-11-17T21:29:00.230",
"references": [
{
"source": "cve@mitre.org",
"tags": [
"Mitigation",
"Third Party Advisory"
],
"url": "https://elixirforum.com/t/security-releases-for-phoenix/4143"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Mitigation",
"Third Party Advisory"
],
"url": "https://elixirforum.com/t/security-releases-for-phoenix/4143"
}
],
"sourceIdentifier": "cve@mitre.org",
"vulnStatus": "Modified",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-601"
}
],
"source": "nvd@nist.gov",
"type": "Primary"
}
]
}