Home › CVE › Vulnerabilities
CVE-2026-131906 — leandrocp mdex
One of 10 leandrocp mdex vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesSummary
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.
Severity breakdown
Medium · 6.9
An attacker without an account can exploit this with local access, without any user action.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- no
- Impact
- high on availability, none on confidentiality and integrity
- Impact on other systems
- none
Weakness
- CWE-407: Inefficient Algorithmic Complexity
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| leandrocp mdex | ≥ 0.13.1, < 0.15.0 | 0.15.0 |
References by type
Patches and fixed releases
- github.com/leandrocp/mdex/commit/0be090a78dbe587a90814a7481b039d1099686…
- github.com/leandrocp/mdex/commit/22a0c7b6614f84648e72699f3e426f20b7f04b…
Other references
Affected
- leandrocp mdex
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-131906?
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.toslack/2. renderquote/2 in lib/mdex/slackconverter.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. Weakness type: Inefficient Algorithmic Complexity (CWE-407).
How severe is CVE-2026-131906?
CVE-2026-131906 has a CVSS 4.0 base score of 6.9 (medium), from the CNA. An attacker without an account can exploit this with local access, without any user action.
Is CVE-2026-131906 being exploited?
Not as far as is known: CVE-2026-131906 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026. EPSS estimates a 0.3% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-131906?
leandrocp mdex ≥ 0.13.1, < 0.15.0 (fixed in 0.15.0).
How do I fix CVE-2026-131906?
Update to a fixed release: leandrocp mdex 0.15.0.