Skip to content

phoenix

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

CVE-2026-58228Published 13 Jul 2026, 18:04 UTC

Real-world risk

0.9/ 10Low

Routine

If the vulnerable configuration applies to you: 2.0

PreliminaryFrom the CVSS vector only · confidence low

CVSS

5.1

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from EEF)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
phoenixNiche>= 1.2.2, < 1.2.71.2.7

What to do

Update to a fixed version: 1.2.7.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T3: Public proof of concept (× 0.95)

A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit

  • Reference tagged as exploit (link)
  • CISA SSVC: proof of concept

EPSS 0.5% chance of exploitation in 30 days (percentile 43), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.315
  2. Threat T3: Public proof of concept0.950
  3. 10 × impact 0.3 × prerequisites 0.315 × threat 0.950.898
  4. Rounded to one decimal between 0.1 and 100.9

How the score works

Exploitation and evidence timeline

  1. 13 Jul 2026 Published
  2. 3 Dec 2026 Reference tagged as exploit first seen
  3. 3 Dec 2026 CISA SSVC: proof of concept first seen
  4. 3 Dec 2026 Risk 0.9 (cvss fallback)

Weakness

CWE-79

References

Get alerts for phoenix

Free email or text alerts when a vulnerability in phoenix reaches risk 8 or higher. Nothing else.