Quadratic CPU consumption in MDEx Quill Delta conversion of nested block quotes
- State
- Published
- Severity
- 6.9 Medium
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
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.
| Product | Versions |
|---|---|
| mdex leandrocp | 0.8.3 to before 0.15.0 Affected |
| mdex leandrocp | 9852db2456fdc9d856eb636603a7f608e22e3793 to before 75e735a26859f93c36f10d17a3119f856fe69009 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | EEF |
Weaknesses
- CWE-407 Inefficient Algorithmic Complexity
References
- EEF CNA record for CVE-2026-134916RelatedThird-Party Advisory
- OSV record EEF-CVE-2026-134916Related
- Introducing commit 9852db2 in leandrocp/mdexRelated
- Fix commit 75e735a in leandrocp/mdexPatch
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.