MDEx.FragmentParser · Inefficient Algorithmic Complexity Vulnerability
Source GCVE Database
Not known to be exploited · CVSS 2.1 Low : upgrade to 0.15.0 when convenient.
Data as of 1 Dec 2026, 01:16 UTC
Thin evidence
One scorer or none| CNA (EEF) | CVSS 4.0 | 2.1 |
|---|
- Patch
- Available – fixed in 0.15.0, 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.
What to do
Upgrade mdex to 0.15.0; mdex to 2c29b28cd0473c24347aa00b95d16f9ce5f9d9af.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| leandrocpmdex | Affected
| Fixed in
|
| mdexleandrocp/mdex | Affected
| Fixed in
|
Hexmdexpkg:hex/mdexOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Users should avoid rendering untrusted Markdown with MDEx.stream/2 or the auto_close option until a fix is available. Monitoring vendor advisories for updates is recommended. Since this is a denial of service vulnerability caused by specific Markdown input patterns, input validation or limiting the size and complexity of Markdown inputs may reduce exposure as a temporary measure.
Description
An inefficient algorithmic complexity vulnerability exists in the MDEx.FragmentParser component of the leandrocp mdex library. This flaw allows an attacker controlling streamed or auto-closed Markdown input to cause a denial of service by exhausting CPU resources. The issue arises from an unbounded forward scan in the link parsing logic that results in quadratic time complexity when processing repeated link or image openers in a paragraph. This affects applications rendering untrusted Markdown using MDEx.stream/2 or the auto_close option, such as live previews or streamed LLM outputs. The vulnerability affects mdex versions from 0.14.2 up to but not including 0.15.0. The CVSS score is low, reflecting limited impact and complexity.
References
- nvd.nist.gov/vuln/detail/CVE-2026-129522 (opens in a new tab)
- github.com/leandrocp/mdex/commit/2c29b28cd0473c24347aa00b95d16f9ce5f9d9af (opens in a new tab)
- github.com/leandrocp/mdex/commit/bea359152bc1f63f3256ee86ca207151b815940d (opens in a new tab)
- cna.erlef.org/cves/CVE-2026-129522.html (opens in a new tab)
- osv.dev/vulnerability/EEF-CVE-2026-129522 (opens in a new tab)