# CVE-2026-54889: Unsanitized URL schemes in MDEx Quill Delta output allow javascript: injection (XSS)

> 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:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: Active; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: Low; Integrity impact on other systems: Low; 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.54% (percentile 39, 2026-11-26)
- **CWE:** CWE-79
- **Published:** 2026-06-29T19:10:49.841Z
- **Modified:** 2026-11-24T05:18:25.087Z

## Who should check

- Anyone running leandrocp mdex \>= 0.8.3, \< 0.13.2
- Anyone running leandrocp mdex \>= 9852db2456fdc9d856eb636603a7f608e22e3793, \< 2817147f5b87ce7186aa604c9ee72499485b8f2f

## Description

Improper Neutralization of Input During Web Page Generation (XSS) vulnerability in leandrocp mdex allows cross-site scripting via unsanitized URL schemes in Quill Delta output.

MDEx.to\_delta/2 converts Markdown into a Quill Delta. MDEx.DeltaConverter.default\_convert\_node/3 in lib/mdex/delta\_converter.ex copies the URL of a link, wikilink, or image node directly from the parsed Markdown into the Delta "link" or "image" attribute without applying a scheme allowlist or any normalization.

An attacker who controls the Markdown text can supply a javascript: URL (for example \[click\](javascript:alert(document.cookie))) that survives verbatim into the Delta attribute. When the Delta is rendered to HTML by a downstream renderer (such as quill-delta-to-html or the Quill client), the attribute becomes an \<a href\> or \<img src\>, and the javascript: scheme executes in the browser of anyone who views the rendered content. The link and wikilink cases are the strongest vectors because javascript: in an href executes on click; the image case is lower impact because javascript: in \<img src\> generally does not execute in modern browsers.

This issue affects mdex: from 0.8.3 before 0.13.2.

## Affected and fixed versions

- leandrocp mdex: \>= 0.8.3, \< 0.13.2 (cvelist)
- leandrocp mdex: \>= 9852db2456fdc9d856eb636603a7f608e22e3793, \< 2817147f5b87ce7186aa604c9ee72499485b8f2f (cvelist)

## Mitigation

- Upgrade mdex to 0.13.2 or later.
- Upgrade mdex to 2817147f5b87ce7186aa604c9ee72499485b8f2f or later.
- Vendor workaround: Sanitize the Quill Delta produced by MDEx.to\_delta/2 before rendering it: drop or blank any "link" or "image" value whose URL scheme is not in a safe allowlist (http, https, mailto, tel).

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-54889.md
Affected: leandrocp mdex >= 0.8.3, < 0.13.2; leandrocp mdex >= 9852db2456fdc9d856eb636603a7f608e22e3793, < 2817147f5b87ce7186aa604c9ee72499485b8f2f
Fixed in: leandrocp mdex 0.13.2, leandrocp mdex 2817147f5b87ce7186aa604c9ee72499485b8f2f

Steps:
1. Search this machine and project for leandrocp mdex: 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-54889 being exploited?

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

### How serious is CVE-2026-54889?

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-54889?

leandrocp mdex \>= 0.8.3, \< 0.13.2; leandrocp mdex \>= 9852db2456fdc9d856eb636603a7f608e22e3793, \< 2817147f5b87ce7186aa604c9ee72499485b8f2f.

### Is there a fix for CVE-2026-54889?

Yes. Fixed in leandrocp mdex 0.13.2, leandrocp mdex 2817147f5b87ce7186aa604c9ee72499485b8f2f. Upgrade mdex to 0.13.2 or later. Upgrade mdex to 2817147f5b87ce7186aa604c9ee72499485b8f2f or later. Vendor workaround: Sanitize the Quill Delta produced by MDEx.to\_delta/2 before rendering it: drop or blank any "link" or "image" value whose URL scheme is not in a safe allowlist (http, https, mailto, tel).

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

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/leandrocp/mdex/security/advisories/GHSA-4383-7xfp-gpph>
- patch: <https://github.com/leandrocp/mdex/commit/9852db2456fdc9d856eb636603a7f608e22e3793>
- patch: <https://github.com/leandrocp/mdex/commit/2817147f5b87ce7186aa604c9ee72499485b8f2f>
- other: <https://cna.erlef.org/cves/CVE-2026-54889.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-54889>

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

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