CVE-2026-129522 — Technical Security Advisory & CVSS Profile
Inefficient Algorithmic Complexity vulnerability in MDEx.FragmentParser in leandrocp mdex allows an attacker who controls streamed or auto-closed Markdown to cause a denial of service through CPU exhaustion. Any application that renders untrusted Markdown with MDEx.stream/2 or the auto_close option is affected, for example live previews or streamed LLM output. While auto-closing the last paragraph, close_bracket/5 in lib/mdex/fragment_parser.ex runs an unbounded forward scan of the link tail for every ](. When that scan finds no valid link, scanning resumes just after the ], so the next ]( rescans the same tail. Each closed link also re-filters every pending image opener. Repeated [](x (, [](x(, or ![ openers in one paragraph therefore cost quadratic time, and about 100 KB of input occupies a scheduler for over ten seconds. This issue affects mdex: from 0.14.2 before 0.15.0.
Technical Metadata
| Identifier | CVE-2026-129522 |
|---|---|
| Base Severity / Score | LOW (2.1 / 10.0) |
| CVSS Vector | CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| Weakness Classification | CWE-407 |
| Archive Categories | LOW Advisories · 2026 Index |
Operational Mitigation Guidance
Monitor upstream vendor advisories and address during standard dependency upgrades. For architectural isolation principles, review per-process namespace isolation.
Upstream References
- https://cna.erlef.org/cves/CVE-2026-129522.html
- https://github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9af
- https://github.com/leandrocp/mdex/commit/bea359152bc1f63f3256ee86ca207151b815940d
- https://osv.dev/vulnerability/EEF-CVE-2026-129522