CVEMETERBack to radar
OFFICIAL RECORD · Erlang/Elixir packages

CVE-2026-58228

PUBLISHEDOfficial status check: verifiedCVSS 4.0: 5.1 · medium

Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via <.link>

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.475% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.

CVSS 4.0 · 5.1 · published by EEF
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
Assessment source · checked 2026-11-19T12:58:55.582Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T12:58:55.582ZCVE Program
epssverified2026-11-19T16:04:53.106ZFIRST EPSS
patchesverified2026-11-19T12:52:54.226ZOSV
affectedverified2026-11-19T12:58:55.582ZCVE Program
lifecycleverified2026-11-19T12:58:55.582ZCVE Program

Affected versions and configuration

phoenixframework phoenix_live_view; modules: 'Elixir.Phoenix.LiveView.Utils'; default status: unaffected: 1.2.2 to < 1.2.7 [affected; scheme: semver] phoenixframework phoenix_live_view; modules: 'Elixir.Phoenix.LiveView.Utils'; default status: unaffected: 4b63216ae68886db99cf7772af23372d76c40e7e to < 86165533e311469a1b62093fd182d9d874de8106 [affected; scheme: git]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "cpes": [
        "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
      ],
      "repo": "https://github.com/phoenixframework/phoenix_live_view",
      "vendor": "phoenixframework",
      "modules": [
        "'Elixir.Phoenix.LiveView.Utils'"
      ],
      "product": "phoenix_live_view",
      "versions": [
        {
          "status": "affected",
          "version": "1.2.2",
          "lessThan": "1.2.7",
          "versionType": "semver"
        }
      ],
      "packageURL": "pkg:hex/phoenix_live_view",
      "packageName": "phoenix_live_view",
      "programFiles": [
        "lib/phoenix_live_view/utils.ex"
      ],
      "collectionURL": "https://repo.hex.pm",
      "defaultStatus": "unaffected",
      "programRoutines": [
        {
          "name": "'Elixir.Phoenix.LiveView.Utils':valid_destination!/2"
        },
        {
          "name": "'Elixir.Phoenix.LiveView.Utils':valid_live_navigation_destination!/2"
        }
      ]
    },
    {
      "cpes": [
        "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
      ],
      "repo": "https://github.com/phoenixframework/phoenix_live_view",
      "vendor": "phoenixframework",
      "modules": [
        "'Elixir.Phoenix.LiveView.Utils'"
      ],
      "product": "phoenix_live_view",
      "versions": [
        {
          "status": "affected",
          "version": "4b63216ae68886db99cf7772af23372d76c40e7e",
          "lessThan": "86165533e311469a1b62093fd182d9d874de8106",
          "versionType": "git"
        }
      ],
      "packageURL": "pkg:github/phoenixframework/phoenix_live_view",
      "packageName": "phoenixframework/phoenix_live_view",
      "programFiles": [
        "lib/phoenix_live_view/utils.ex"
      ],
      "collectionURL": "https://github.com",
      "defaultStatus": "unaffected",
      "programRoutines": [
        {
          "name": "'Elixir.Phoenix.LiveView.Utils':valid_destination!/2"
        },
        {
          "name": "'Elixir.Phoenix.LiveView.Utils':valid_live_navigation_destination!/2"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2026-58228",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "poc"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2026-07-13T18:58:11.563760Z"
            }
          }
        }
      ],
      "references": [
        {
          "url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq",
          "tags": [
            "exploit"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2026-07-13T18:58:51.407Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "EEF-CVE-2026-58228",
  "aliases": [
    "CVE-2026-58228",
    "GHSA-5cgh-g58j-m9cq"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "1.2.2"
            },
            {
              "fixed": "1.2.7"
            }
          ]
        }
      ],
      "package": {
        "name": "phoenix_live_view",
        "purl": "pkg:hex/phoenix_live_view",
        "ecosystem": "Hex"
      },
      "versions": [
        "1.2.2",
        "1.2.3",
        "1.2.4",
        "1.2.5",
        "1.2.6"
      ],
      "database_specific": {
        "source": "https://cna.erlef.org/osv/EEF-CVE-2026-58228.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V4",
      "score": "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"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq",
      "type": "ADVISORY"
    },
    {
      "url": "https://cna.erlef.org/cves/CVE-2026-58228.html",
      "type": "WEB"
    },
    {
      "url": "https://github.com/phoenixframework/phoenix_live_view/commit/86165533e311469a1b62093fd182d9d874de8106",
      "type": "FIX"
    },
    {
      "url": "https://hex.pm/packages/phoenix_live_view",
      "type": "PACKAGE"
    }
  ],
  "relatedGitRanges": [
    {
      "ranges": [
        {
          "repo": "https://github.com/phoenixframework/phoenix_live_view",
          "type": "GIT",
          "events": [
            {
              "introduced": "4b63216ae68886db99cf7772af23372d76c40e7e"
            },
            {
              "fixed": "86165533e311469a1b62093fd182d9d874de8106"
            }
          ]
        }
      ],
      "versions": [
        "v1.2.6",
        "v1.2.5",
        "v1.2.4",
        "v1.2.3",
        "v1.2.2"
      ],
      "database_specific": {
        "source": "https://cna.erlef.org/osv/EEF-CVE-2026-58228.json"
      }
    }
  ],
  "database_specific": {
    "cpe_ids": [
      "cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*"
    ],
    "cwe_ids": [
      "CWE-79"
    ],
    "capec_ids": [
      "CAPEC-63"
    ]
  }
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryHex / packagephoenix_live_viewNot a distribution channel1.2.7Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history