Home › CVE › JavaScript
CVE-2026-136129 — leandrocp mdex
One of 10 leandrocp mdex vulnerabilities published together by NVD: our article covers all of them.
JavaScriptWebBrowsersVulnerabilitiesSummary
Incorrect Behavior Order: Validate Before Canonicalize vulnerability in leandrocp mdex allows an attacker who controls Markdown input to place javascript: and data: URLs into Quill Delta output via entity-encoded control characters. MDEx.to_delta/2 blanks link, wikilink and image URLs that its dangerous-URL check flags, but render_url/2 in lib/mdex/delta_converter.ex runs that prefix check on the entity-decoded URL without first normalizing it as a browser would. A destination such as java script:alert(1) reaches the check with a tab inside the scheme, passes, and is emitted unchanged. Browsers remove tab, carriage return and line feed and trim leading C0 control characters and spaces when parsing a URL, so the value runs as javascript:. Only applications that place the Delta link or image value into an href or src without their own URL check are exposed. Stock Quill re-sanitizes link protocols and is not affected. This issue affects mdex: from 0.13.2 before 0.15.0.
Severity breakdown
Low · 2.1
An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- yes, a user must deliberately do something
- Impact
- none
- Impact on other systems
- low on confidentiality and integrity, none on availability
Weakness
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| leandrocp mdex | ≥ 0.13.2, < 0.15.0 | 0.15.0 |
References by type
Patches and fixed releases
- github.com/leandrocp/mdex/commit/2817147f5b87ce7186aa604c9ee72499485b8f…
- github.com/leandrocp/mdex/commit/75e735a26859f93c36f10d17a3119f856fe690…
Other references
Affected
- leandrocp mdex
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-136129?
Incorrect Behavior Order: Validate Before Canonicalize vulnerability in leandrocp mdex allows an attacker who controls Markdown input to place javascript: and data: URLs into Quill Delta output via entity-encoded control characters.
How severe is CVE-2026-136129?
CVE-2026-136129 has a CVSS 4.0 base score of 2.1 (low), from the CNA. An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.
Is CVE-2026-136129 being exploited?
Not as far as is known: CVE-2026-136129 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026. EPSS estimates a 0.9% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-136129?
leandrocp mdex ≥ 0.13.2, < 0.15.0 (fixed in 0.15.0).
How do I fix CVE-2026-136129?
Update to a fixed release: leandrocp mdex 0.15.0.