Skip to main content

MDEx EUVDEUVD-2026-139641

| CVE-2026-134916 MEDIUM
Inefficient Algorithmic Complexity (CWE-407)
2026-11-30 6b3ad84c-e1a6-4bf7-a703-f496b71e49db GHSA-gm7x-r7x4-grpm
6.9
CVSS 4.0 · Vendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach endpoint calling MDEx.to_delta/2
  2. Delivery
    Submit deeply nested block-quote Markdown
  3. Exploit
    Trigger repeated op rewriting per nesting level
  4. Execution
    Exhaust CPU / pin BEAM scheduler for minutes
  5. Impact
    Denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

The application must call MDEx.to_delta/2 (Quill Delta conversion) on attacker-controlled Markdown; the DoS is specific to that conversion path, because MDEx.DeltaConverter.default_convert_node/3 invokes apply_block_format/2 for every BlockQuote and Alert node and rewrites every op produced by descendants, and the parser imposes no limit on block-quote nesting depth. The exploit requires deeply nested block quotes (or Alert nodes) in the input. LIMITING FACTORS: applications that only parse or render Markdown to HTML are unaffected; the native parse_time budget does NOT bound the conversion, so that control provides no protection; and exposure depends on whether the to_delta/2 call is reachable by untrusted input. No special authentication is required per the CVSS PR:N, but the vulnerable to_delta/2 feature must be in use.

Impact

Signals point to a real but bounded availability-only issue, not a top-tier emergency. The input CVSS 4.0 score is 6.9 (Medium) with impact confined to VA:H (availability high) and VC/VI/VA-subsequent all None - so no confidentiality or integrity exposure, only CPU-exhaustion denial of service. The vendor vector is AV:L/AC:L/AT:N/PR:N/UI:N, meaning low complexity and no privileges, but the AV:L (local) label conflicts with the mechanism described: the flaw triggers on any attacker-controlled Markdown passed to MDEx.to_delta/2, which in typical deployments (web apps converting user Markdown to Quill Delta) is reachable remotely - verify the attack vector with the host application's exposure, as many real deployments would be AV:N. Exploitation status: no public exploit identified at time of analysis - the only code references are the two vendor fix commits, not PoC/exploit code; no KEV listing and no EPSS score were provided, so widespread opportunistic exploitation cannot be inferred. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a patch-on-normal-cycle priority. Net: credible, low-effort DoS against the specific subset of apps using the Delta-conversion path, but limited blast radius (availability only) and a niche library footprint keep real-world risk moderate rather than critical.

Exploit ScenarioDerived

An attacker submits a Markdown document of a few hundred kilobytes containing deeply nested block quotes (or Alert nodes) to an application that calls MDEx.to_delta/2 to convert Markdown into a Quill Delta. Because apply_block_format rewrites every descendant op at every nesting level, conversion cost scales with depth times op count, pinning a BEAM scheduler for minutes while the same input parses and renders to HTML in milliseconds. Attack complexity is low and no authentication is required per the CVSS vector; no public exploit code was identified, only the vendor fix commits.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 30, 2026

CPU exhaustion denial of service in the MDEx Elixir Markdown library affects versions 0.8.3 through 0.14.x whenever an application passes attacker-controlled Markdown to MDEx.to_delta/2: deeply nested block quotes (or Alert nodes) make the Quill Delta conversion cost grow with nesting depth times the number of ops inside the node, so a document of a few hundred kilobytes can occupy a scheduler for minutes while parsing and HTML rendering of the same input finish in milliseconds. Only the to_delta/2 conversion path is affected, so applications that merely parse or render Markdown to HTML are not exposed, and the native parse_time budget does not bound the conversion. Remote attackers need no authentication per the assessed vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N, availability-only impact), and no public exploit code was identified at time of analysis; the issue is availability-only and depends on the to_delta/2 feature being reachable by untrusted input.

RemediationAI

Upgrade the mdex dependency to 0.15.0 or later, which is the fixed release boundary for the stated affected range and incorporates the converter rework in commits 75e735a26859f93c36f10d17a3119f856fe69009 and 9852db2456fdc9d856eb636603a7f608e22e3793; consult the Erlef CNA advisory (https://cna.erlef.org/cves/CVE-2026-134916.html) and the OSV entry (https://osv.dev/vulnerability/EEF-CVE-2026-134916) when tracking the update. Until the upgrade ships, do not call MDEx.to_delta/2 on untrusted Markdown, or remove Delta output entirely if it is not required, since parse and HTML rendering paths do not exhibit the blowup. Where Delta output is required, pre-validate or pre-scan incoming Markdown and reject documents whose block-quote nesting depth exceeds a small fixed bound (for example single digits) or whose size exceeds a strict limit; this costs you legitimate deeply quoted content and requires maintaining your own depth counter that mirrors the parser's nesting, so it is a stopgap rather than a complete fix. Raising or tuning parse_time is not a mitigation, because that budget only covers the native parse and does not bound the Delta conversion. Running the conversion in a separate process with a timeout limits how long a caller waits, but the CPU work is still performed while it runs, so it reduces blast radius rather than removing the load.

Affected VersionsENISA

mdex 0.8.3 <0.15.0
mdex 9852db2456fdc9d856eb636603a7f608e22e3793 <75e735a26859f93c36f10d17a3119f856fe69009

Affected Packages

euvd mdex fix: 0.15.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

MDEx is an Elixir Markdown library (leandrocp/mdex) built around a native parser and a set of converters, one of which produces Quill Delta documents. The flaw is CWE-407 (Inefficient Algorithmic Complexity): MDEx.DeltaConverter.default_convert_node/3 called apply_block_format/2 for every MDEx.BlockQuote and MDEx.Alert node, and that helper rewrote every op already emitted by the node's descendants, so conversion cost scaled with nesting depth times the number of descendant ops instead of scaling with the size of the document. The native parser places no limit on block-quote nesting depth, and the parse_time option only bounds the native parse step, not the Elixir-side Delta conversion, so an operator who tuned parse_time still gets no protection on this path. The upstream fixes rework the converter to thread block attributes downward via options (push_block_attributes) and to apply block formatting to individual ops at emission time, plus a single-child fast path that avoids a list concatenation which re-walked child ops at every nesting level; the practical effect is that deep nesting no longer multiplies the work already done by descendants. The trigger requires converting attacker-influenced Markdown to Delta; other conversion targets are unaffected.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db) PRIMARY 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
vuln.today AI 7.5 HIGH

Attacker-controlled Markdown is typically remote-supplied to a conversion endpoint (AV:N), needs no privileges or interaction, and causes availability-only impact; I diverge from the vendor's AV:L as deployment-dependent.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).

CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 30, 2026 - 20:05 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 82% exploitable
Prevalence
Low
Elixir Markdown library; only apps using the Delta-conversion path are affected
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy