Read the docs

Cubic-time nested block quote rendering in MDEx enables denial of service

Priority LOW 28CWE-407Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-407.

Summary

The MDEx Elixir package for Markdown rendering is affected from 0.13.1 before 0.15.0. Its to_slack conversion renders each nested block quote by re-processing the whole child subtree, so crafted deeply nested block quotes with lazy continuation lines cost quadratic CPU time (CWE-407). A remote attacker can send a crafted Markdown message to an application that converts untrusted input with MDEx.to_slack/2 or MDEx.to_slack!/2, causing a denial of service through excessive CPU consumption.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker to cause a denial of service through excessive CPU consumption via crafted nested block quotes passed to MDEx.to_slack/2. render_quote/2 in lib/mdex/slack_converter.ex renders the whole child subtree of a block quote to a binary, splits it on newlines and rejoins it with a > prefix, and repeats this at every nesting level. Block quote depth is not limited, so an input with d leading > characters followed by m lazy-continuation lines ending in a backslash hard break costs time proportional to d²·m. A 16 KB message takes about 16 seconds of CPU and produces 32 MB of output, and the cost grows about eightfold each time the input doubles. Any application that converts untrusted Markdown with MDEx.to_slack/2 or MDEx.to_slack!/2 is affected. This issue affects mdex: from 0.13.1 before 0.15.0.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
Fix Fixed mdex (leandrocp): 0.15.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
leandrocpmdex0.13.1 to before 0.15.00.15.0Patch availableCNA
  • mdex Vendorleandrocp Affected 0.13.1 to before 0.15.0 Fixed in 0.15.0 Patch available CNA

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*——leandrocp
  • cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:* Versions — — ·leandrocp

Remediation

Upgrade mdex to version 0.15.0 or later, which fixes the issue. The sources list no fixed version for other products.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

  • Fix · CNA mdex (leandrocp) Fixed in 0.15.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    leandrocp mdex 0.15.0

    10 records Highest priority Priority MEDIUM 2 MEDIUM, 8 LOW

    Other records, highest priority first

    • TI-2026-101149 Quadratic CPU consumption in MDEx Quill Delta conversion of nested block quotesPriority MEDIUM 46
    • TI-2026-101148 Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustionPriority MEDIUM 46
    • TI-2026-101154 Code block fence breakout in MDEx injects Slack mentions and linksPriority LOW 38
  • Release ·

    leandrocp mdex 22a0c7b6614f84648e72699f3e426f20b7f04ba6

    3 records Highest priority Priority LOW 3 LOW

    Other records, highest priority first

    • TI-2026-101154 Code block fence breakout in MDEx injects Slack mentions and linksPriority LOW 38
    • TI-2026-101153 Slack mention injection via link destinations in mdexPriority LOW 26

Timeline

  1. 2026-11-30 Threatist record created from CVE-2026-131906
  2. 2026-11-30 CISA SSVC decision points changed
  3. 2026-11-30 Alias added: GHSA-vfj7-jxvp-5fjc

References

  • TI-2026-39661 Uncontrolled recursion over deeply nested Markdown crashes the BEAM in mdex CVSS 4.0MEDIUM 6.9
  • TI-2026-38511 Unbounded native memory leak in mdex escaped-tag rendering enables unauthenticated denial of service CVSS 4.0MEDIUM 6.9
  • TI-2026-39662 Unsanitized URL schemes in MDEx Quill Delta output allow javascript: injection (XSS) CVSS 4.0MEDIUM 5.1
  • TI-2026-101149 Quadratic CPU consumption in MDEx Quill Delta conversion of nested block quotes CVSS 4.0MEDIUM 6.9
  • TI-2026-101148 Quadratic HTML tag tracking in MDEx.stream/2 allows CPU exhaustion CVSS 4.0MEDIUM 6.9
  • TI-2026-101154 Code block fence breakout in MDEx injects Slack mentions and links CVSS 4.0MEDIUM 5.1
See all 15 →

Sources