# CVE-2026-58228: Scheme validation bypass in Phoenix.LiveView.Utils leads to XSS via \<.link\>

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.1
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.57% (percentile 41, 2026-11-26)
- **CWE:** CWE-79
- **Published:** 2026-07-13T18:04:30.636Z
- **Modified:** 2026-11-24T06:17:08.643Z

## Who should check

- Anyone running phoenixframework phoenix\_live\_view \>= 1.2.2, \< 1.2.7
- Anyone running phoenixframework phoenix\_live\_view \>= 4b63216ae68886db99cf7772af23372d76c40e7e, \< 86165533e311469a1b62093fd182d9d874de8106

## 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

- phoenixframework phoenix\_live\_view: \>= 1.2.2, \< 1.2.7 (cvelist)
- phoenixframework phoenix\_live\_view: \>= 4b63216ae68886db99cf7772af23372d76c40e7e, \< 86165533e311469a1b62093fd182d9d874de8106 (cvelist)

## 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/phoenixframework/phoenix_live_view/security/advisories/GHSA-5cgh-g58j-m9cq>
- patch: <https://github.com/phoenixframework/phoenix_live_view/commit/4b63216ae68886db99cf7772af23372d76c40e7e>
- patch: <https://github.com/phoenixframework/phoenix_live_view/commit/86165533e311469a1b62093fd182d9d874de8106>
- other: <https://cna.erlef.org/cves/CVE-2026-58228.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-58228>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-58228>

HTML: <https://flawdb.com/CVE-2026-58228> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-58228>
