CVE-2026-58228 (GCVE-0-2026-58228)

Vulnerability from cvelistv5 – Published: 2026-07-13 18:04 – Updated: 2026-07-14 04:15
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 (v2.0.3)
CWE
  • CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Assigner
EEF
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.
Credits
Barna Kovacs Steffen Deusch José Valim Jonatan Männchen / EEF
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": "remediation developer",
          "value": "Steffen Deusch"
        },
        {
          "lang": "en",
          "type": "analyst",
          "value": "Jos\u00e9 Valim"
        },
        {
          "lang": "en",
          "type": "analyst",
          "value": "Jonatan M\u00e4nnchen / EEF"
        }
      ],
      "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\u003cp\u003eThe \u003ctt\u003ePhoenix.LiveView.Utils.valid_destination!/2\u003c/tt\u003e and \u003ctt\u003ePhoenix.LiveView.Utils.valid_live_navigation_destination!/2\u003c/tt\u003e functions in \u003ctt\u003elib/phoenix_live_view/utils.ex\u003c/tt\u003e rely on an internal \u003ctt\u003euri_scheme/1\u003c/tt\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\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 \u003ctt\u003e\u0026quot; javascript:alert(1)\u0026quot;\u003c/tt\u003e is passed unchanged into \u003ctt\u003e\u0026lt;.link href={...}\u0026gt;\u003c/tt\u003e and, when clicked, is parsed by the browser as a \u003ctt\u003ejavascript:\u003c/tt\u003e URL that executes attacker-controlled script in the victim\u0027s session.\u003c/p\u003e\u003cp\u003eApplications that render user-supplied URLs (for example profile links, redirect targets, or external references) via \u003ctt\u003e\u0026lt;.link href={...}\u0026gt;\u003c/tt\u003e are affected.\u003c/p\u003e\u003cp\u003eThis issue affects phoenix_live_view: from 1.2.2 before 1.2.7.\u003c/p\u003e"
            }
          ],
          "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": {
            "attackComplexity": "LOW",
            "attackRequirements": "PRESENT",
            "attackVector": "NETWORK",
            "baseScore": 5.1,
            "baseSeverity": "MEDIUM",
            "privilegesRequired": "NONE",
            "subAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "HIGH",
            "subIntegrityImpact": "HIGH",
            "userInteraction": "ACTIVE",
            "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"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-79",
              "description": "CWE-79 Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-07-14T04:15:01.996Z",
        "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "shortName": "EEF"
      },
      "references": [
        {
          "tags": [
            "vendor-advisory",
            "related"
          ],
          "url": "https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq"
        },
        {
          "tags": [
            "related"
          ],
          "url": "https://cna.erlef.org/cves/CVE-2026-58228.html"
        },
        {
          "tags": [
            "related"
          ],
          "url": "https://osv.dev/vulnerability/EEF-CVE-2026-58228"
        },
        {
          "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 \u003ctt\u003e\u0026lt;.link href={...}\u0026gt;\u003c/tt\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"
            }
          ],
          "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."
        }
      ],
      "x_generator": {
        "engine": "cvelib 1.8.0"
      }
    }
  },
  "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-07-14T04:15:01.996Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-58228",
      "date": "2026-07-14",
      "epss": "0.00382",
      "percentile": "0.30276"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-58228\",\"sourceIdentifier\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\",\"published\":\"2026-07-13T19:17:30.317\",\"lastModified\":\"2026-07-13T20:37:48.157\",\"vulnStatus\":\"Deferred\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"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.\"}],\"affected\":[{\"source\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\",\"affectedData\":[{\"vendor\":\"phoenixframework\",\"product\":\"phoenix_live_view\",\"defaultStatus\":\"unaffected\",\"collectionURL\":\"https://repo.hex.pm\",\"packageName\":\"phoenix_live_view\",\"cpes\":[\"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*\"],\"modules\":[\"\u0027Elixir.Phoenix.LiveView.Utils\u0027\"],\"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\",\"packageURL\":\"pkg:hex/phoenix_live_view\",\"versions\":[{\"version\":\"1.2.2\",\"lessThan\":\"1.2.7\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"phoenixframework\",\"product\":\"phoenix_live_view\",\"defaultStatus\":\"unaffected\",\"collectionURL\":\"https://github.com\",\"packageName\":\"phoenixframework/phoenix_live_view\",\"cpes\":[\"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*\"],\"modules\":[\"\u0027Elixir.Phoenix.LiveView.Utils\u0027\"],\"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\",\"packageURL\":\"pkg:github/phoenixframework/phoenix_live_view\",\"versions\":[{\"version\":\"4b63216ae68886db99cf7772af23372d76c40e7e\",\"lessThan\":\"86165533e311469a1b62093fd182d9d874de8106\",\"versionType\":\"git\",\"status\":\"affected\"}]}]}],\"metrics\":{\"cvssMetricV40\":[{\"source\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"4.0\",\"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X\",\"baseScore\":5.1,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"attackRequirements\":\"PRESENT\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"ACTIVE\",\"vulnConfidentialityImpact\":\"LOW\",\"vulnIntegrityImpact\":\"LOW\",\"vulnAvailabilityImpact\":\"NONE\",\"subConfidentialityImpact\":\"HIGH\",\"subIntegrityImpact\":\"HIGH\",\"subAvailabilityImpact\":\"NONE\",\"exploitMaturity\":\"NOT_DEFINED\",\"confidentialityRequirement\":\"NOT_DEFINED\",\"integrityRequirement\":\"NOT_DEFINED\",\"availabilityRequirement\":\"NOT_DEFINED\",\"modifiedAttackVector\":\"NOT_DEFINED\",\"modifiedAttackComplexity\":\"NOT_DEFINED\",\"modifiedAttackRequirements\":\"NOT_DEFINED\",\"modifiedPrivilegesRequired\":\"NOT_DEFINED\",\"modifiedUserInteraction\":\"NOT_DEFINED\",\"modifiedVulnConfidentialityImpact\":\"NOT_DEFINED\",\"modifiedVulnIntegrityImpact\":\"NOT_DEFINED\",\"modifiedVulnAvailabilityImpact\":\"NOT_DEFINED\",\"modifiedSubConfidentialityImpact\":\"NOT_DEFINED\",\"modifiedSubIntegrityImpact\":\"NOT_DEFINED\",\"modifiedSubAvailabilityImpact\":\"NOT_DEFINED\",\"Safety\":\"NOT_DEFINED\",\"Automatable\":\"NOT_DEFINED\",\"Recovery\":\"NOT_DEFINED\",\"valueDensity\":\"NOT_DEFINED\",\"vulnerabilityResponseEffort\":\"NOT_DEFINED\",\"providerUrgency\":\"NOT_DEFINED\"}}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2026-07-13T18:58:11.563760Z\",\"id\":\"CVE-2026-58228\",\"options\":[{\"exploitation\":\"poc\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"partial\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-79\"}]}],\"references\":[{\"url\":\"https://cna.erlef.org/cves/CVE-2026-58228.html\",\"source\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\"},{\"url\":\"https://github.com/phoenixframework/phoenix_live_view/commit/86165533e311469a1b62093fd182d9d874de8106\",\"source\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\"},{\"url\":\"https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq\",\"source\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\"},{\"url\":\"https://osv.dev/vulnerability/EEF-CVE-2026-58228\",\"source\":\"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\"},{\"url\":\"https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq\",\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\"}]}}",
    "vulnrichment": {
      "containers": "{\"adp\": [{\"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:43.613Z\"}}], \"cna\": {\"title\": \"Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via \u003c.link\u003e\", \"source\": {\"discovery\": \"EXTERNAL\"}, \"credits\": [{\"lang\": \"en\", \"type\": \"finder\", \"value\": \"Barna Kovacs\"}, {\"lang\": \"en\", \"type\": \"remediation developer\", \"value\": \"Steffen Deusch\"}, {\"lang\": \"en\", \"type\": \"analyst\", \"value\": \"Jos\\u00e9 Valim\"}, {\"lang\": \"en\", \"type\": \"analyst\", \"value\": \"Jonatan M\\u00e4nnchen / EEF\"}], \"impacts\": [{\"capecId\": \"CAPEC-63\", \"descriptions\": [{\"lang\": \"en\", \"value\": \"CAPEC-63 Cross-Site Scripting (XSS)\"}]}], \"metrics\": [{\"format\": \"CVSS\", \"cvssV4_0\": {\"version\": \"4.0\", \"baseScore\": 5.1, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"MEDIUM\", \"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\", \"userInteraction\": \"ACTIVE\", \"attackComplexity\": \"LOW\", \"attackRequirements\": \"PRESENT\", \"privilegesRequired\": \"NONE\", \"subIntegrityImpact\": \"HIGH\", \"vulnIntegrityImpact\": \"LOW\", \"subAvailabilityImpact\": \"NONE\", \"vulnAvailabilityImpact\": \"NONE\", \"subConfidentialityImpact\": \"HIGH\", \"vulnConfidentialityImpact\": \"LOW\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"GENERAL\"}]}], \"affected\": [{\"cpes\": [\"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*\"], \"repo\": \"https://github.com/phoenixframework/phoenix_live_view\", \"vendor\": \"phoenixframework\", \"modules\": [\"\u0027Elixir.Phoenix.LiveView.Utils\u0027\"], \"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\": \"\u0027Elixir.Phoenix.LiveView.Utils\u0027:valid_destination!/2\"}, {\"name\": \"\u0027Elixir.Phoenix.LiveView.Utils\u0027: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\": [\"\u0027Elixir.Phoenix.LiveView.Utils\u0027\"], \"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\": \"\u0027Elixir.Phoenix.LiveView.Utils\u0027:valid_destination!/2\"}, {\"name\": \"\u0027Elixir.Phoenix.LiveView.Utils\u0027:valid_live_navigation_destination!/2\"}]}], \"references\": [{\"url\": \"https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq\", \"tags\": [\"vendor-advisory\", \"related\"]}, {\"url\": \"https://cna.erlef.org/cves/CVE-2026-58228.html\", \"tags\": [\"related\"]}, {\"url\": \"https://osv.dev/vulnerability/EEF-CVE-2026-58228\", \"tags\": [\"related\"]}, {\"url\": \"https://github.com/phoenixframework/phoenix_live_view/commit/86165533e311469a1b62093fd182d9d874de8106\", \"tags\": [\"patch\"]}], \"workarounds\": [{\"lang\": \"en\", \"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.\", \"supportingMedia\": [{\"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 \u003ctt\u003e\u0026lt;.link href={...}\u0026gt;\u003c/tt\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}]}], \"x_generator\": {\"engine\": \"cvelib 1.8.0\"}, \"descriptions\": [{\"lang\": \"en\", \"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.\", \"supportingMedia\": [{\"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\u003cp\u003eThe \u003ctt\u003ePhoenix.LiveView.Utils.valid_destination!/2\u003c/tt\u003e and \u003ctt\u003ePhoenix.LiveView.Utils.valid_live_navigation_destination!/2\u003c/tt\u003e functions in \u003ctt\u003elib/phoenix_live_view/utils.ex\u003c/tt\u003e rely on an internal \u003ctt\u003euri_scheme/1\u003c/tt\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\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 \u003ctt\u003e\u0026quot; javascript:alert(1)\u0026quot;\u003c/tt\u003e is passed unchanged into \u003ctt\u003e\u0026lt;.link href={...}\u0026gt;\u003c/tt\u003e and, when clicked, is parsed by the browser as a \u003ctt\u003ejavascript:\u003c/tt\u003e URL that executes attacker-controlled script in the victim\u0027s session.\u003c/p\u003e\u003cp\u003eApplications that render user-supplied URLs (for example profile links, redirect targets, or external references) via \u003ctt\u003e\u0026lt;.link href={...}\u0026gt;\u003c/tt\u003e are affected.\u003c/p\u003e\u003cp\u003eThis issue affects phoenix_live_view: from 1.2.2 before 1.2.7.\u003c/p\u003e\", \"base64\": false}]}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-79\", \"description\": \"CWE-79 Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)\"}]}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:a:phoenixframework:phoenix_live_view:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"1.2.7\", \"versionStartIncluding\": \"1.2.2\"}], \"operator\": \"OR\"}], \"operator\": \"AND\"}], \"providerMetadata\": {\"orgId\": \"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\", \"shortName\": \"EEF\", \"dateUpdated\": \"2026-07-13T18:04:30.636Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2026-58228\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-07-13T18:58:51.407Z\", \"dateReserved\": \"2026-06-29T18:54:08.633Z\", \"assignerOrgId\": \"6b3ad84c-e1a6-4bf7-a703-f496b71e49db\", \"datePublished\": \"2026-07-13T18:04:30.636Z\", \"assignerShortName\": \"EEF\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…