All vulnerabilities

Hex

CVE-2026-54889

Unsanitized URL schemes in MDEx Quill Delta output allow javascript: injection (XSS)

Severity
Medium 5.1
Published
29 Jun 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Fixed in
0.13.2
Exploit chance
0.4% in the next 30 daysHigher than 33% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Read some data · Change some data
CVSS vector
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
Sources
CVE Program

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)) 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 or , and the javascript: scheme executes in the browser of anyone who views the rendered content.

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
mdexHex · osv:Hex:mdex
  • From 0.8.3 before 0.13.2

About mdex

Vulnerabilities in mdex

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
0
Known exploited
0
Search the list for mdex

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-54889