CVE-2026-136129: leandrocp mdex · Incorrect Behavior Order: Validate Before Canonicalize
Affects leandrocp mdexSource CVE Database V5
Not known to be exploited · CVSS 2.1 Low : upgrade to 0.15.0 when convenient.
Data as of 30 Nov 2026, 19:00 UTC
Thin evidence
One scorer or none| CNA (EEF) | CVSS 4.0 | 2.1 |
|---|
- Patch
- Available – fixed in 0.15.0, 75e735a26859f93c36f10d17a3119f856fe69009
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.
What to do
Upgrade mdex to 0.15.0; mdex to 75e735a26859f93c36f10d17a3119f856fe69009.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| leandrocpmdex | Affected
| Fixed in
|
| mdexleandrocp/mdex | Affected
| Fixed in
|
Hexmdexpkg:hex/mdexOther threats | Affected
| Fixed in
|
CPE configurations (1)
cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- cna.erlef.org/cves/CVE-2026-136129.html (opens in a new tab)
- osv.dev/vulnerability/EEF-CVE-2026-136129 (opens in a new tab)
- github.com/leandrocp/mdex/commit/2817147f5b87ce7186aa604c9ee72499485b8f2f (opens in a new tab)
- github.com/leandrocp/mdex/commit/75e735a26859f93c36f10d17a3119f856fe69009 (opens in a new tab)