SecurityContext

CVE-2026-58228: Phoenixframework phoenix_live_view - Stored XSS

  • Cve: CVE-2026-58228
  • Name: Phoenixframework phoenix_live_view - Stored XSS
  • 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. 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.
  • Impact: Attackers can execute arbitrary JavaScript in victim's browser, leading to session hijacking or other malicious actions.
  • Remediation: Upgrade to phoenix_live_view version 1.2.7 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs victim to click a crafted link
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.1
  • Cvss 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/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
  • Epss score: 0.00475
  • Epss percentile: 0.41583
  • Assignee: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
  • Published at: 2026-07-13T19:17:30Z
  • Age in days: 134
  • Modified at: 2026-11-24T06:17:08Z
  • Patch available: yes
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-58228
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://cna.erlef.org/cves/CVE-2026-58228.html
https://github.com/phoenixframework/phoenix_live_view/commit/4b63216ae68886db99cf7772af23372d76c40e7e
https://github.com/phoenixframework/phoenix_live_view/commit/86165533e311469a1b62093fd182d9d874de8106
https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq
https://osv.dev/vulnerability/EEF-CVE-2026-58228

Products

ProductAffectedPlatform boundSourcesUrl
phoenixframework:phoenix_live_view>= 1.2.2, < 1.2.7nocna/v1/products/phoenixframework/phoenix_live_view

Projects

RepositoryLink kindsIndexedUrl
phoenixframework/phoenix_live_viewcna_commit, commit, fix, security_advisoryyes/v1/repositories/phoenixframework/phoenix_live_view

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts