Skip to main content

MDEx EUVDEUVD-2026-139647

| CVE-2026-131906 MEDIUM
Inefficient Algorithmic Complexity (CWE-407)
2026-11-30 6b3ad84c-e1a6-4bf7-a703-f496b71e49db GHSA-vfj7-jxvp-5fjc
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
    Submit crafted Markdown via Slack-conversion endpoint
  2. Exploit
    Deeply nested block quotes trigger quadratic render in to_slack
  3. Impact
    CPU and memory exhausted, service denied

Vulnerability Assessment

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

The affected application must call MDEx.to_slack/2 or MDEx.to_slack!/2 on untrusted Markdown; applications using only other MDEx converters are unaffected. The concrete trigger is a crafted input with d leading '>' characters (unbounded block-quote nesting, which is not depth-limited) followed by m lazy-continuation lines ending in a backslash hard break, producing time proportional to d²·m. Limiting factors: only mdex versions 0.13.1 through 0.14.x are vulnerable (fixed in 0.15.0); exploitation requires that attacker-controlled Markdown actually reaches the Slack converter. The vendor rated this AV:L, but where an app exposes to_slack to remote input the flaw is reachable without authentication or user interaction.

Impact

This is an algorithmic-complexity denial-of-service (CWE-407) in the mdex Slack converter, rated CVSS 4.0 6.9 (medium) by the Erlang Ecosystem Foundation CNA. The signals are consistent and modest: impact is availability-only (VA:H, VC:N/VI:N) - no code execution or data exposure - and the vuln.today decision label is 'this_month,' not act_now or emergency. It is not listed in CISA KEV and no EPSS score was provided, and no public working exploit was identified (only the vendor fix commits are referenced). The main conflict is the attack vector: the CNA assigned AV:L (local), yet the description centers on 'untrusted Markdown' converted via MDEx.to_slack for Slack integrations, which in practice means attacker-controlled input arriving over the network (e.g., a Slack bot or web service) - so the realistic reachability is network, and I assess AV:N below; verify against the specific deployment. Net: a genuine but non-emergency DoS worth patching in a normal maintenance window, with priority rising sharply for any service that feeds untrusted Markdown into to_slack, because a single ~16 KB request costs ~16 seconds of CPU and the cost grows roughly eightfold as input doubles.

Exploit ScenarioDerived

An application exposes a Slack-formatting endpoint (bot, webhook, or web form) that passes user-supplied Markdown to MDEx.to_slack/2 or to_slack!/2. An attacker submits a ~16 KB message consisting of deeply nested block quotes (many leading '>' characters) followed by lazy-continuation lines ending in backslash hard breaks, forcing quadratic (d²·m) rendering that burns ~16 seconds of CPU and emits ~32 MB of output per request; a handful of such requests exhaust CPU and memory and deny service. No public working exploit was identified at time of analysis - only the vendor fix commits are referenced.

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

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

Alert me

AnalysisAIv1 – Nov 30, 2026

Denial of service in MDEx, the Elixir Markdown library, where the Slack mrkdwn converter (MDEx.to_slack/2 and MDEx.to_slack!/2) re-renders the entire child subtree of a block quote at every nesting level, so a small crafted message can pin a CPU core for many seconds and allocate tens of megabytes of output. Only mdex 0.13.1 through 0.14.x that passes untrusted Markdown into the Slack converter is affected; applications using MDEx's other converters are not, and 0.15.0 fixes the flaw. Attacker-controlled Markdown must actually reach to_slack, but once it does the CVSS vectors (CVSS 4.0 from the CNA and CVSS 3.1 AV:N/AC:L/PR:N/UI:N from this assessment) carry PR:N and UI:N, so no credentials or user interaction are needed; no public exploit code has been identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade mdex to 0.15.0 or later, which contains the algorithmic-complexity fix in the Slack converter (commits 0be090a78dbe587a90814a7481b039d10996863c and 22a0c7b6614f84648e72699f3e426f20b7f04ba6), and verify via the CNA advisory at https://cna.erlef.org/cves/CVE-2026-131906.html or https://osv.dev/vulnerability/EEF-CVE-2026-131906. Where upgrading is not immediately possible, stop feeding untrusted Markdown into MDEx.to_slack/2 and MDEx.to_slack!/2 - the trade-off is that Slack output must then come from trusted or pre-sanitized content, or be produced by a different converter - and, as a second layer, cap inbound message size and block-quote nesting depth before conversion, accepting that legitimately deep quoted threads will be rejected or truncated. Given the CNA's AV:L score versus this assessment's AV:N/AC:L/PR:N/UI:N view, prioritize hosts where user- or network-supplied Markdown reaches the Slack converter, and note that a single 16 KB request can consume about 16 seconds of CPU, so modest request rates are enough to exhaust capacity.

Affected VersionsENISA

mdex 0.13.1 <0.15.0
mdex 0be090a78dbe587a90814a7481b039d10996863c <22a0c7b6614f84648e72699f3e426f20b7f04ba6

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 that parses input into an MDEx.Document AST and then runs format-specific converters over the node tree; the previously added Slack mrkdwn path (MDEx.to_slack/2, MDEx.to_slack!/2, backed by MDEx.SlackConverter in lib/mdex/slack_converter.ex) walks that tree in convert_nodes/convert_node. The defect is CWE-407, inefficient algorithmic complexity: render_quote/2 renders the whole child subtree of a block quote to a binary, splits that binary on newlines and rejoins it with a "> " prefix, and does this again at every nesting level. Because block-quote depth is not limited, an input consisting of d leading ">" characters followed by m lazy-continuation lines ending in a backslash hard break costs time proportional to d²·m. The practical amplification is severe: a 16 KB message consumes roughly 16 seconds of CPU and produces about 32 MB of output, with cost growing roughly eightfold each time the input size doubles, meaning a stream of small inputs can saturate scheduler and memory resources on the host. The fix (0.15.0, commits 0be090a78dbe587a90814a7481b039d10996863c and 22a0c7b6614f84648e72699f3e426f20b7f04ba6) bounds that nesting behaviour; the exact trigger for a bounded variant is not described further in the available sources.

Know when Elixir gets its next vulnerability

  • 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

Realistic delivery is network-borne untrusted Markdown with no auth or interaction and a trivially crafted single input (AV:N/AC:L/PR:N/UI:N); impact is availability-only (A:H, C:N/I:N) - I diverge from the vendor's AV:L.

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

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Low
niche Elixir Markdown library; Slack-converter feature newly added and narrowly used
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.3%
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
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

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.

More in Elixir

View all
CVE-2026-54451 HIGH POC
8.2 Jul 15

Unbounded recursion in the Elixir `protobuf` Hex package (versions >= 0.8.0, < 0.16.1) lets unauthenticated remote attac

CVE-2026-130411 CRITICAL
9.2 Nov 24

Remote code execution in the Elixir Flop pagination library affects versions 0.8.0 through 0.26.6, 0.27.0 through 0.27.2

CVE-2026-91187 CRITICAL
9.3 Sep 24

Improper JWT signature verification in Dashbit's nimble_zta (0.1.2 up to but not including 0.1.3) lets an unauthenticate

CVE-2026-76949 CRITICAL
9.1 Sep 17

Session-swapping authentication bypass in the Elixir library AshAuthentication (versions 4.10.0 before 4.15.0 and 5.0.0-

CVE-2026-88952 CRITICAL
9.1 Sep 17

Account takeover in AshAuthentication (Elixir/Ash) 4.14.0 through 4.14.x and 5.0.0-rc.10 through 5.0.0-rc.13 lets unauth

CVE-2026-91039 CRITICAL
9.1 Sep 17

Authentication bypass in the Elixir library ash_authentication lets an attacker who operates one federated identity-prov

CVE-2026-77866 CRITICAL
9.0 Sep 15

Server-Side Request Forgery protection bypass in the Elixir safeurl library (versions 0.1.0 and later) allows unauthenti

CVE-2026-133555 HIGH
8.9 Nov 24

Arbitrary code execution in applications running the Elixir db_connection library 1.1.0 through 2.10.2 is possible when

CVE-2026-108529 HIGH
8.7 Oct 26

Unauthenticated remote CPU exhaustion in mtrudel Bandit's HTTP/2 server (versions before 1.14.0) is achievable by holdin

CVE-2026-110499 HIGH
8.7 Oct 26

Unbounded per-connection memory and CPU growth in the Elixir Bandit HTTP/2 server (0.3.6 up to 1.14.0) lets an unauthent

CVE-2026-111101 HIGH
8.7 Oct 26

Unauthenticated remote denial of service in the Elixir HTTP server Bandit (mtrudel/bandit) from 0.1.0 before 1.14.0 lets

CVE-2026-113436 HIGH
8.7 Oct 26

Unauthenticated remote attackers can consume disproportionate server CPU on Bandit (mtrudel/bandit, Elixir/Erlang) by se

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