Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-58228

MEDIUM 5.1EPSS 41%

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

Mitigation

  • Upgrade phoenix_live_view to 1.2.7 or later.
  • Upgrade phoenix_live_view to 86165533e311469a1b62093fd182d9d874de8106 or later.
  • Vendor workaround: Strip leading ASCII control and space bytes (code points 0x00 through 0x20) from any untrusted URL before passing it to <.link href={...}>, or reject such inputs outright. This aligns application-level validation with the WHATWG URL parser used by browsers and prevents the scheme-detection bypass.

Who should check

  • Anyone running phoenixframework phoenix_live_view >= 1.2.2, < 1.2.7
  • Anyone running phoenixframework phoenix_live_view >= 4b63216ae68886db99cf7772af23372d76c40e7e, < 86165533e311469a1b62093fd182d9d874de8106

Vulnerability facts

Affected
phoenixframework phoenix_live_view >= 1.2.2, < 1.2.7; phoenixframework phoenix_live_view >= 4b63216ae68886db99cf7772af23372d76c40e7e, < 86165533e311469a1b62093fd182d9d874de8106
Fixed in
phoenixframework phoenix_live_view 1.2.7, phoenixframework phoenix_live_view 86165533e311469a1b62093fd182d9d874de8106
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
5.1 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:H/SI:H/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: Active
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: None
  • Confidentiality impact on other systems: High
  • Integrity impact on other systems: High
  • Availability impact on other systems: None
EPSS
0.57% chance of exploitation in 30 days (percentile 41, 2026-11-26)
CWE
CWE-79
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
phoenixframework phoenix_live_view>= 1.2.2, < 1.2.7—cvelist
phoenixframework phoenix_live_view>= 4b63216ae68886db99cf7772af23372d76c40e7e, < 86165533e311469a1b62093fd182d9d874de8106—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-58228. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-58228.md
Affected: phoenixframework phoenix_live_view >= 1.2.2, < 1.2.7; phoenixframework phoenix_live_view >= 4b63216ae68886db99cf7772af23372d76c40e7e, < 86165533e311469a1b62093fd182d9d874de8106
Fixed in: phoenixframework phoenix_live_view 1.2.7, phoenixframework phoenix_live_view 86165533e311469a1b62093fd182d9d874de8106

Steps:
1. Search this machine and project for phoenixframework phoenix_live_view: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-58228 being exploited?

There is no confirmed exploitation: CVE-2026-58228 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.57% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-58228?

Medium: CVSS 5.1 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-58228?

phoenixframework phoenix_live_view >= 1.2.2, < 1.2.7; phoenixframework phoenix_live_view >= 4b63216ae68886db99cf7772af23372d76c40e7e, < 86165533e311469a1b62093fd182d9d874de8106.

Is there a fix for CVE-2026-58228?

Yes. Fixed in phoenixframework phoenix_live_view 1.2.7, phoenixframework phoenix_live_view 86165533e311469a1b62093fd182d9d874de8106. Upgrade phoenix_live_view to 1.2.7 or later. Upgrade phoenix_live_view to 86165533e311469a1b62093fd182d9d874de8106 or later. Vendor workaround: Strip leading ASCII control and space bytes (code points 0x00 through 0x20) from any untrusted URL before passing it to <.link href={...}>, or reject such inputs outright. This aligns application-level validation with the WHATWG URL parser used by browsers and prevents the scheme-detection bypass.

How do I check if I'm affected by CVE-2026-58228?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors