Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-54889

MEDIUM 5.1EPSS 39%

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

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

Who should check

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

Vulnerability facts

Affected
leandrocp mdex >= 0.8.3, < 0.13.2; leandrocp mdex >= 9852db2456fdc9d856eb636603a7f608e22e3793, < 2817147f5b87ce7186aa604c9ee72499485b8f2f
Fixed in
leandrocp mdex 0.13.2, leandrocp mdex 2817147f5b87ce7186aa604c9ee72499485b8f2f
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
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:NOpen in CVSS calculator
Show all 11 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
EPSS
0.54% chance of exploitation in 30 days (percentile 39, 2026-11-26)
CWE
CWE-79
Published
Modified

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

Package / productAffectedFixedSource
leandrocp mdex>= 0.8.3, < 0.13.2—cvelist
leandrocp mdex>= 9852db2456fdc9d856eb636603a7f608e22e3793, < 2817147f5b87ce7186aa604c9ee72499485b8f2f—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors