{"answers":{"affected":"1 open source package ship an affected version, including phoenix_live_view.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58228 exists.","fix":"Upgrade phoenix_live_view to 1.2.7 or later.","what":"CVE-2026-58228 is a medium-severity cross-site scripting vulnerability in phoenixframework phoenix_live_view, published on 13 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-58228 and fix it if it is affected.\n\nWhat it is: CVE-2026-58228 is a medium-severity cross-site scripting vulnerability in phoenixframework phoenix_live_view, published on 13 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58228 exists.\n\nAffected packages and fixed versions:\n- phoenix_live_view (Hex): affected from 1.2.2; fixed in 1.2.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-58228/ (Markdown: https://insights.sbomify.com/CVE-2026-58228/index.md)","id":"CVE-2026-58228","markdown":"https://insights.sbomify.com/CVE-2026-58228/index.md","name":"CVE-2026-58228","record":{"aliases":["EEF-CVE-2026-58228","GHSA-5cgh-g58j-m9cq"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Phoenix LiveView library","requires_auth":"none","summary":"Attackers can execute JavaScript in victim sessions by bypassing URL scheme validation in Phoenix LiveView links, affecting applications rendering user-supplied URLs.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[],"cvss":{"score":5.1,"severity":"medium","source":"cna","vector":"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"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"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.\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'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.\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's 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.","ecosystems":["Hex"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via \u003c.link\u003e","id":"CVE-2026-58228","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":1,"n_references":4,"next":{"headline":"Unbounded HTTP/1 response-header and chunked-trailer accumulation in Mint causes memory-exhaustion DoS","id":"CVE-2026-58229"},"packages":[{"ecosystem":"Hex","fixed":["1.2.7"],"introduced":["1.2.2"],"last_affected":[],"package":"phoenix_live_view","purl":"pkg:hex/phoenix_live_view","source":"EEF-CVE-2026-58228"}],"prev":{"headline":"TLS/DTLS denial of service via unbounded recursion on cross-signed peer certificate chain","id":"CVE-2026-58227"},"products":["phoenix_live_view"],"published":"2026-07-13","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Erlang Ecosystem Foundation","prefix":"EEF"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-14","vendors":["phoenixframework"]},"summary":"Attackers can execute JavaScript in victim sessions by bypassing URL scheme validation in Phoenix LiveView links, affecting applications rendering user-supplied URLs.","url":"https://insights.sbomify.com/CVE-2026-58228/"}