Home › CVE › Vulnerabilities
CVE-2026-134915 — 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 who controls Markdown passed to MDEx.stream/2 to exhaust CPU via unmatched HTML closing tags. MDEx.stream/2 tracks open HTML tags with MDEx.FragmentParser.continue_html_context/2 in lib/mdex/fragment_parser.ex. Every non-void opening tag is pushed onto an unbounded list, and close_html_tag/2 scans the whole list for each closing tag. A closer with no matching opener leaves the list unchanged, so the next closer scans it again. An HTML block of N openers followed by N unmatched closers therefore costs O(N²), and about 270 KB of input keeps a scheduler busy for tens of seconds. The tracking runs on every HTML block and inline HTML literal regardless of the auto_close option and the render unsafe setting. MDEx.to_html/1 and the other non-streaming entry points are not affected. This issue affects mdex: from 0.14.0 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.14.0, < 0.15.0 | 0.15.0 |
References by type
Patches and fixed releases
- github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9…
- github.com/leandrocp/mdex/commit/a88793cb0fc5caf75bf878b92c64d368178247…
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-134915?
Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls Markdown passed to MDEx.stream/2 to exhaust CPU via unmatched HTML closing tags. MDEx.stream/2 tracks open HTML tags with MDEx.FragmentParser.continuehtmlcontext/2 in lib/mdex/fragmentparser.ex. Every non-void opening tag is pushed onto an unbounded list, and closehtmltag/2 scans the whole list for each closing tag. Weakness type: Inefficient Algorithmic Complexity (CWE-407).
How severe is CVE-2026-134915?
CVE-2026-134915 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-134915 being exploited?
Not as far as is known: CVE-2026-134915 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-134915?
leandrocp mdex ≥ 0.14.0, < 0.15.0 (fixed in 0.15.0).
How do I fix CVE-2026-134915?
Update to a fixed release: leandrocp mdex 0.15.0.