Home › CVE › Vulnerabilities
CVE-2026-134916 — leandrocp mdex
One of 10 leandrocp mdex vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesSummary
Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls Markdown input to cause a denial of service through CPU exhaustion via deeply nested block quotes passed to MDEx.to_delta/2. When converting a document to a Quill Delta, MDEx.DeltaConverter.default_convert_node/3 in lib/mdex/delta_converter.ex calls apply_block_format/2 for every MDEx.BlockQuote and MDEx.Alert node, and that function rewrites every op produced by the node's descendants. Conversion therefore costs the nesting depth times the number of ops inside, and the parser places no limit on block quote depth. A document of a few hundred kilobytes keeps a scheduler busy for minutes, while parsing and HTML rendering of the same input finish in milliseconds. The parse_time budget bounds only the native parse, not the conversion. This issue affects mdex: from 0.8.3 before 0.15.0.
Severity breakdown
Medium · 6.9
An attacker without an account can exploit this with local access, without any user action.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- no
- Impact
- high on availability, none on confidentiality and integrity
- Impact on other systems
- none
Weakness
- CWE-407: Inefficient Algorithmic Complexity
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| leandrocp mdex | ≥ 0.8.3, < 0.15.0 | 0.15.0 |
References by type
Patches and fixed releases
- github.com/leandrocp/mdex/commit/75e735a26859f93c36f10d17a3119f856fe690…
- github.com/leandrocp/mdex/commit/9852db2456fdc9d856eb636603a7f608e22e37…
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-134916?
Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls Markdown input to cause a denial of service through CPU exhaustion via deeply nested block quotes passed to MDEx.todelta/2. Weakness type: Inefficient Algorithmic Complexity (CWE-407).
How severe is CVE-2026-134916?
CVE-2026-134916 has a CVSS 4.0 base score of 6.9 (medium), from the CNA. An attacker without an account can exploit this with local access, without any user action.
Is CVE-2026-134916 being exploited?
Not as far as is known: CVE-2026-134916 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-134916?
leandrocp mdex ≥ 0.8.3, < 0.15.0 (fixed in 0.15.0).
How do I fix CVE-2026-134916?
Update to a fixed release: leandrocp mdex 0.15.0.