🛡️ CVE-2026-58228 — phoenix-live-view

⚪ Unknown ✅ No Known Exploit CWE-79 NVD
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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.

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 this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must actively cooperate. Rated impact: confidentiality low, integrity low, availability none.

Weakness class

CVE-2026-58228 is classified as CWE-79: Cross-site Scripting (XSS). User-supplied data is written into a page without escaping, so attacker script runs in the browser of anyone who views it.

Affected software

CVE-2026-58228 is recorded against 2 packages.

  • phoenix-live-view
  • unknown

Timeline and source

Published on 13 July 2026 and last revised on 30 July 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

github.com (Advisory)
cna.erlef.org (Web)
github.com (Fix)
hex.pm (Package)

Details

Severity Unknown
CVSS Score N/A
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
CWE CWE-79
Public Exploit ✅ No
Source NVD
Published 2026-07-13
Updated 2026-08-12
Modified 2026-07-30

Affected Packages

Software From version Fixed in
phoenix-live-view
unknown

Similar Threats

Free Vulnerability Check

Is your site affected by CVE-2026-58228?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2026-58228 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.