Inefficient Algorithmic Complexity vulnerability in leandrocp mdex allows an attacker who controls Markdown passed to MDEx.stream/2 to…
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. 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 autoclose option and the render unsafe setting. MDEx.tohtml/1 and the other non-streaming entry points are not affected. This issue affects mdex: from 0.14.0 before 0.15.0.
Assessment
- CVSS
- 6.9 (v4.0)
- Severity
- Medium
- EPSS
- 0% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 30 November 2026
- Last updated
- 30 November 2026
- Weakness
- CWE-407
- Assigner
- EEF
CVSS vectorCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
At the source
References
- https://cna.erlef.org/cves/CVE-2026-134915.html
- https://osv.dev/vulnerability/EEF-CVE-2026-134915
- https://github.com/leandrocp/mdex/commit/a88793cb0fc5caf75bf878b92c64d36817824765
- https://github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9af
- https://nvd.nist.gov/vuln/detail/CVE-2026-134915
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-134915