Search

Find a vulnerability

Search criteria

    6 vulnerabilities found for phoenix_live_view by phoenixframework

    CVE-2026-126334 (GCVE-0-2026-126334)

    Vulnerability from nvd – Published: 2026-11-20 14:44 – Updated: 2026-11-24 04:39
    VLAI
    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.
    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
    Impacted 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:*:*:*:*:*:*:*:*
    Create a notification for this product.
    phoenixframework phoenix_live_view Affected: 3d1eb6752399060eebdaa7112f959ee81e7d630d , < * (git)
        cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-20 14:44
    Show details on NVD website

    {
      "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-64941 (GCVE-0-2026-64941)

    Vulnerability from nvd – Published: 2026-08-10 11:05 – Updated: 2026-11-19 08:44
    VLAI
    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.
    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
    Impacted 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:*:*:*:*:*:*:*:*
    Create a notification for this product.
    phoenixframework phoenix_live_view Affected: b20dba3f65a380b2e4868dae03397f13d2daa070 , < * (git)
        cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Show details on NVD website

    {
      "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
    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.
    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
    Impacted products
    Vendor Product Version
    phoenixframework phoenix_live_view Affected: 1.2.2 , < 1.2.7 (semver)
        cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*
    Create a notification for this product.
    phoenixframework phoenix_live_view Affected: 4b63216ae68886db99cf7772af23372d76c40e7e , < 86165533e311469a1b62093fd182d9d874de8106 (git)
        cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-07-13 18:04
    Show details on NVD website

    {
      "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-126334 (GCVE-0-2026-126334)

    Vulnerability from cvelistv5 – Published: 2026-11-20 14:44 – Updated: 2026-11-24 04:39
    VLAI
    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.
    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
    Impacted 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:*:*:*:*:*:*:*:*
    Create a notification for this product.
    phoenixframework phoenix_live_view Affected: 3d1eb6752399060eebdaa7112f959ee81e7d630d , < * (git)
        cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-20 14:44
    Show details on NVD website

    {
      "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-64941 (GCVE-0-2026-64941)

    Vulnerability from cvelistv5 – Published: 2026-08-10 11:05 – Updated: 2026-11-19 08:44
    VLAI
    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.
    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
    Impacted 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:*:*:*:*:*:*:*:*
    Create a notification for this product.
    phoenixframework phoenix_live_view Affected: b20dba3f65a380b2e4868dae03397f13d2daa070 , < * (git)
        cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Show details on NVD website

    {
      "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
    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.
    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
    Impacted products
    Vendor Product Version
    phoenixframework phoenix_live_view Affected: 1.2.2 , < 1.2.7 (semver)
        cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*
    Create a notification for this product.
    phoenixframework phoenix_live_view Affected: 4b63216ae68886db99cf7772af23372d76c40e7e , < 86165533e311469a1b62093fd182d9d874de8106 (git)
        cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-07-13 18:04
    Show details on NVD website

    {
      "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"
    }