# CVE-2026-134916: Quadratic CPU consumption in MDEx Quill Delta conversion of nested block quotes

- Severity: Medium 6.9 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2026-11-30T18:43:38.840Z
- Modified: 2026-11-30T19:17:47.350Z
- Also known as: EEF-CVE-2026-134916
- Weaknesses: CWE-407
- Assigned by: EEF

## 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.

(As written by CVE List.)

## Affected

- mdex: from 0.8.3 before 0.15.0
- leandrocp/mdex: from 9852db2456fdc9d856eb636603a7f608e22e3793 before 75e735a26859f93c36f10d17a3119f856fe69009
- mdex (Hex): from 0.8.3 before 0.15.0
- https://github.com/leandrocp/mdex: from 9852db2456fdc9d856eb636603a7f608e22e3793 before 75e735a26859f93c36f10d17a3119f856fe69009

## Every score

- EEF: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://cna.erlef.org/cves/CVE-2026-134916.html> (related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-134916> (related)
- <https://github.com/leandrocp/mdex/commit/9852db2456fdc9d856eb636603a7f608e22e3793> (related, web)
- <https://github.com/leandrocp/mdex/commit/75e735a26859f93c36f10d17a3119f856fe69009> (fix, patch)
- <https://hex.pm/packages/mdex> (package)

## Sources

- CVE List: [CVE-2026-134916](https://www.cve.org/CVERecord?id=CVE-2026-134916), CVE Terms of Use, modified 2026-11-30
- Erlang Ecosystem Foundation: [EEF-CVE-2026-134916](https://osv.dev/vulnerability/EEF-CVE-2026-134916), CC-BY-4.0, modified 2026-11-30
- NVD: [CVE-2026-134916](https://nvd.nist.gov/vuln/detail/CVE-2026-134916), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-134916 · Whole record: https://cve.day/CVE-2026-134916.json · Rebuilt by cve.day 2026-11-30T19:32:42.557Z
