Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-54889: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in leandrocp mdex

0
Medium
VulnerabilityCVE-2026-54889cvecve-2026-54889cwe-79
Published: 06/29/2026 (06/29/2026, 19:10:49 UTC)
Source: CVE Database V5
Vendor/Project: leandrocp
Product: mdex

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. 'Elixir.MDEx':to_delta/2 converts Markdown into a Quill Delta. 'Elixir.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.

CVSS v4.0

Score 5.1medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
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

Affected software

mdex
pkg:hex/mdex
Affected versions
>=0.8.3 <0.13.2
GitHub Actionsmore threats →cve
leandrocp/mdex
pkg:github/leandrocp/mdex
CPE configurations
cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/29/2026, 19:51:27 UTC

Technical Analysis

The vulnerability in leandrocp mdex (CVE-2026-54889) is an improper neutralization of input during web page generation, classified as CWE-79 (Cross-site Scripting). The function 'Elixir.MDEx':to_delta/2 converts Markdown into Quill Delta format, and 'Elixir.MDEx.DeltaConverter':default_convert_node/3 copies URLs from Markdown nodes directly into Delta attributes without applying any scheme allowlist or normalization. This allows malicious Markdown input containing javascript: URLs to persist into the Delta output. When this Delta is rendered to HTML by downstream renderers such as quill-delta-to-html or the Quill client, the javascript: scheme executes in the browser context of users viewing the content. The vulnerability affects mdex versions starting at 0.8.3 and before 0.13.2.

Potential Impact

An attacker who can supply Markdown content can inject javascript: URLs that execute arbitrary JavaScript in the browsers of users who view the rendered content. This can lead to theft of cookies, session tokens, or other malicious actions executed in the context of the vulnerable site. The link and wikilink vectors are the most impactful because javascript: URLs in href attributes execute on click. The image vector is less impactful as modern browsers typically block javascript: in image src attributes. The CVSS 4.0 base score is 5.1 (medium severity), reflecting network attack vector, low complexity, no privileges required, user interaction needed, and low impact on confidentiality, integrity, and availability.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch has been documented at this time. Until a fix is available, users should avoid rendering untrusted Markdown content with mdex or ensure that downstream renderers apply strict URL scheme allowlists and normalization to prevent javascript: URLs from executing. Applying input validation or sanitization on Markdown input before processing can reduce risk. Monitor vendor channels for updates regarding an official fix.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-06-16T10:47:13.915Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a42c94c27e9c797196503e2

Added to database: 06/29/2026, 19:36:44 UTC

Last enriched: 06/29/2026, 19:51:27 UTC

Last updated: 06/29/2026, 20:59:27 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses